1002

Reset Network configuration

Summary

If you find yourself in a situation where NAbox has an incorrect network configuration and you cannot connect to it, you will have to log into the VMware console and manually configure the network

  1. Login to the console using the adminuser
  2. sudo bash
  3. cd into /etc/systemd/network
  4. Edit 10-nabox.network with vim

Here is an example for a DHCP configuration :

Note

In VMware environments, interface name is ens192, otherwise, it is eth0

[Match]
Name=ens192 # Should be eth0 for KVM and HyperV

[Network]
LinkLocalAddressing=no
IPv6AcceptRA=no
DHCP=ipv4
Domains=home.lab

Here is an example for a static IP :

[Match]
Name=ens192 # Should be eth0 for KVM and HyperV

[Network]
LinkLocalAddressing=no
IPv6AcceptRA=no
Address=10.1.0.133/24
Gateway=10.1.0.1
Domains=home.lab
DNS=10.0.1.2
  1. After saving the file, run systemctl restart systemd-networkd