Ubuntu 14.04 ignoring network settings performed in the UI?
Solution 1
I prefer to manage my interface through /etc/network/interfaces for static IP on eth0 you can set yours to
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.214
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8
dns-nameservers 8.8.4.4
if you prefer to use the network manager GUI comment it our per @chili555 answer
Solution 2
I suggest you comment out your eth0 setting in /etc/network/interfaces thus:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
Restart the computer and you should be all set.
Related videos on Youtube
Comments
-
Edy Bourne over 1 year
I have installed Ubuntu 14.04 LTS Server, and then added a minimal desktop like so:
sudo apt-get install ubuntu-desktop --no-install-recommends
Then I complemented the install with the following packages so I could get a usable UI:
sudo apt-get install gnome-disk-utility gnome-terminal libpam-gnome-keyring libproxy1-plugin-gsettings libproxy1-plugin-networkmanager network-manager-gnome network-manager-pptp network-manager-pptp-gnome ttf-ubuntu-font-family xdg-utils sudo apt-get install unity-control-center unity-lens-applications unity-lens-files indicator-session indicator-power indicator-keyboard indicator-datetime indicator-sound indicator-application indicator-appmenu hud
It almost works perfectly. except for the network.
I configured a wired connection using fixed IP address GUI as follows:
But regardless, my IP is always chosen at random and the connection keeps showing as never used in the UI despite multiple reboots.
If I click on the networking icon and the in "Connection Information" I get the following:
ipconfig -a
gives me this:administrator@ci-server:~$ ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0c:29:f2:c6:26 inet addr:192.168.0.22 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fef2:c626/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4991 errors:0 dropped:0 overruns:0 frame:0 TX packets:3162 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2295739 (2.2 MB) TX bytes:479519 (479.5 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:35233 errors:0 dropped:0 overruns:0 frame:0 TX packets:35233 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5458696 (5.4 MB) TX bytes:5458696 (5.4 MB)
What am I missing? Did I forget any packages to make this UI work?
**UPDATE: ** This is my
/etc/network/interfaces
file:administrator@ci-server:~$ cat /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp
Thank you!
-
meccooll almost 10 yearsPost your /etc/network/interfaces if that's configured it should overwrite network manager
-
Edy Bourne almost 10 yearsIt seems you got it! It is configured for dhcp... should I delete this file? Or just remove the configs for eth0?
-
Rmano almost 10 yearsIs the connection marked as "system connection" in Network Manager (I think it is under "general")? And --- there is a very old bug (can't find the reference now) that require you to change the name of the connection and save it to have it really saved...
-
-
Edy Bourne almost 10 yearsThanks again! Marking yours as the answer since I fixed it due to your comment.