2.7. Changing the IP Address

You can change ASGARD's IP address in /etc/network/interfaces. The IP address is configured with the address variable.

nextron@asgard:~$ sudoedit /etc/network/interfaces
auto ens32
iface ens32 inet static
address 192.0.2.7
netmask 255.255.255.0
gateway 192.0.2.254

The network adapter name can vary. In this example, the adapter is ens32.

Apply the new IP address with the command sudo systemctl restart networking.

2.7.1. Verifying DNS Settings

To verify whether ASGARD is using the correct DNS server, inspect /etc/resolv.conf:

nextron@asgard:~$ cat /etc/resolv.conf
search example.org
nameserver 172.16.200.2

If this configuration contains errors, change it with the following command:

nextron@asgard:~$ sudoedit /etc/resolv.conf