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
- Login to the console using the
adminuser sudo bashcdinto/etc/systemd/network- Edit
10-nabox.networkwithvim
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
- After saving the file, run
systemctl restart systemd-networkd