After restarting Ubuntu Server 20.04.2, use the wrong IP address. It is registered to DHCP for a MAC address such as this '9f6e852400020000ab117b61e29f5a2058bf'. When I run the command:
sudo dhclient -v -r ens160 && sudo dhclient -v ens160
the server obtains the correct registered IP address. The Server runs on VMware and the network uses only IPv4.
Does anyone know why this is happening and is there a solution to this?
Edit 19.9.2021: Problem isnt solved but I have "solution":
- install ifupdown
sudo apt install -y ifupdown
- edit /etc/network/interfaces
sudo nano /etc/network/interfaces
iface lo inet loopback
iface eth0 inet dhcp
post-up dhclient -r && dhclient
- purge netplan
sudo apt purge -y netplan.io
sudo ifup -a
sudo dhclient -r
restart network service or reboot
delete netplan directory with config files
sudo rm -vfr /usr/share/netplan /etc/netplan
Maybe before point 4. restart network.