Ubuntu: Ethernet- Device not managed after changing static ip



Question:

I have changed the ethernet static ip to the default wi-fi local ip. This is so that my local and public services work after switching from a wireless connection to ethernet. At first, the solution was to change the interfaces to:

auto lo  iface lo inet loopback  auto eth0  iface eth0 inet static  address 192.168.1.wifiaddresshere  netmask 255.255.255.0  gateway 192.168.1.routeraddresshere  

However, after a server restart, I can no longer connect via ethernet and the only way to do so is to revert interfaces back to its original state, i. e.:

auto lo  iface lo inet loopback  

Any suggestions as to how I can fix this issue?


Solution:1

Open terminal :

gksudo gedit /etc/NetworkManager/NetworkManager.conf   

You will see :

[ifupdown]  managed=false  

change it to true

Restart network manager

sudo service network-manger restart  


Solution:2

If you wish to use a static IP address, you may do so by editing connections in Network Manager or by specifying your details in /etc/network/interfaces. In either case, if you set up a fixed address, you are responsible to specify DNS nameservers, as well. I suggest:

auto lo   iface lo inet loopback     auto eth0   iface eth0 inet static   address 192.168.1.150   netmask 255.255.255.0   gateway 192.168.1.1  dns-nameservers 8.8.8.8 192.168.1.1  

Of course, substitute your details here.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »