Ubuntu Network Manager

From richud.com
Jump to: navigation, search

Fix networking when installed from NFS/Live CD to use network manager

remove this entry from "/etc/network/interfaces" which will have been created and stop network manager working, cursor down, ctrl-k deletes line, ctrl-o save

sudo nano -w /etc/network/interfaces

#remove these two lines and save
auto eth0
iface eth0 inet manual

#restart network manager, should pick up and perform dhcp
sudo service network-manager restart

If you network card isnt eth0, fix this here

sudo nano -w /etc/udev/rules.d/70-presistent-net.rules
# remove everything from below the # comment block bit, save reboot.

To see current network manager settings


Current connections

nmcli con

To add additional DNS servers in Ubuntu 12.04 , using dnsmasq by default, correctly;

DONT try adding to /etc/resolv.conf

DONT add anything in /etc/network/interfaces

DONT create files in /etc/resolvconf/resolv.conf.d/tail

edit /etc/dhcp/dhclient.conf and add or uncomment/change the prepend line, thus

#prepend domain-name-servers;
prepend domain-name-servers,;
request subnet-mask, broadcast-address, time-offset, routers,

nm-tool output should now list those additional dns servers.

  IPv4 Settings:
    Prefix:          24 (