Removing the mistake, that is called NETPLAN
netplan.io requires counter-intuitive and unnatural configuration syntax to configure network interfaces. It is a blight on the Linux platform, as such, it should be removed at first sight.
1) Install Network-Manager
apt-get install network-manager ifupdown -y
2) List the location of netplan.io files
dpkg -L netplan.io
3) Remove netplan.io
apt-get remove --purge netplan.io -y
4) Delete any remaining directories
rm -rf /etc/netplan
5) Ensure that your interfaces are configured:
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
or
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 1.1.1.1,8.8.8.8
6) Test your network
ifconfig eth0 down; ifconfig eth0 up, ifconfig eth0
/etc/init.d/network-manager restart
reboot
Please join me:
/ paulwpoteete
/ paulwpoteete
/ paulwpoteete
/ paulwpoteete
*all copyrighted materials in this video are the property of their respective owners.
#linux, #unix, #tutorial, #administration, #engineering, #beginner, #expert, #advanced, #intermediate, #training