Network Manager Applet Has Trouble With Static IP Address

Bug #202605 reported by alcohen
6
Affects Status Importance Assigned to Milestone
Network Manager Applet
Expired
Medium
network-manager-applet (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

This applies to nm-applet 0.6.6 running on Hardy alpha.

I have no problem setting a static IP address for my wired network using nm-applet.

However, whenever I restart the computer, nm-applet still has the correct IP address that I set, but my network connection no longer works. If I change the IP address in nm-applet to a different IP address and click "OK", the network connection now works fine. I can switch back to the original IP address at that point using nm-applet, and it works fine again.

Revision history for this message
Sofa (alexschultze) wrote :

This problem is not Ubuntu specific, but NetworkManager specific.
I have problems with NM too. But yours sound mainly like a configuration problem with the "/etc/networks/interfaces" file.

Bugs for Network Manager here:
http://bugzilla.gnome.org/enter_bug.cgi?product=NetworkManager

Revision history for this message
alcohen (amc79) wrote :

Actually, my "/etc/networks/interfaces" file looks fine - I think that there's an issue in reading it, or perhaps having the correct privileges to "make it happen"?

Revision history for this message
Harald Höller (harald-hoeller) wrote :

i got the same problem, my interfaces looks like

iface lo inet loopback

iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.100

i got a second configuration in my network-manager, after skipping to e.g. 192.168.1.3. network comes up but after reboot i have to change IP again.

Revision history for this message
Joseph Piché (josephpiche) wrote :

I linked this bug to gnome-bugs, and am setting it to confirmed. I have experienced this problem as well. Also, the steps to reproduce given in gnome-bugs seems to be very easy to follow.

Changed in network-manager-applet:
status: New → Confirmed
Changed in network-manager-applet:
status: Unknown → New
Revision history for this message
arnau (arnaullv) wrote :

I also confirm this problem

In order to setup the network we can do two things:
Assuming that our network interface is eth0, go to terminal and do:

sudo ifup eth0

everytime we boot our computer.

or we can also do as a permanent solution

Add to the /etc/network/interfaces file

auto eth0 as in the example below
----------------
auto lo
iface lo inet loopback

auto eth0 <-------------------------------- This line is missing in the original file.
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
---------------------------

REBOOT our computer.

In order to not having problems Network Manager should generate with the auto eth0 line included.

Revision history for this message
Roc Vallès Domènech (rocvalles) wrote :

I've installed from hardy-dvd-amd64.iso, 2008-04-09; configured the network before running the installer on the livedvd, and it kept that config in the same system.

I've also noticed auto eth0 was missing, and things went fine once I added it by hand; networkmanager should be able to do this much!

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Might be related to bug #178775 ...

Revision history for this message
Pēteris Krišjānis (pecisk-gmail) wrote :
Changed in network-manager-applet:
status: New → Incomplete
Revision history for this message
Peter Cherriman (pjcherriman) wrote :

I can confirm the same.

I tried to configure my wired connection as a static ip address with the gui. It seemed to change the IP address, but I couldn't access the internet since the scripts didn't add a default route.

I had to hand edit /etc/network/interface from:

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0

to:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1

Manually moving the "auto eth0" before the "iface eth0 inet static" line fixed it so that the default route was created.

Once the changes are made, use "sudo /etc/init.d/networking restart" or reboot to make changes active.

Revision history for this message
Peter Cherriman (pjcherriman) wrote :

I forgot to mention this was with hardy.

Changed in network-manager-applet:
status: Incomplete → Invalid
Revision history for this message
Alexander Sack (asac) wrote :

0.6.6 didnt even support static IP addresses. hence the confusion.

Changed in network-manager-applet:
status: Confirmed → Invalid
Changed in network-manager-applet:
importance: Unknown → Medium
status: Invalid → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.