Roaming mode is enabling every time when I reboot my machine

Asked by prajwala

Hi,

  Recently I upgraded my ubuntu from 7.10 to 8.04. After that my network-connection settings are not working well. I am using wired connection with static IP address. I configured and saved. Then net is working. When I reboot my machine romaing mode is enabled and my network is not working. Every time when I start my machine I need to configure my network with static IP address.
I don't know what is Roaming mode. I am unable to figure out why it is always enabling Roaming mode when I reboot my machine. I want to have the my configurations saved even when I reboot my machine.

Thanks,
Prajwala

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu network-manager Edit question
Assignee:
No assignee Edit question
Solved by:
prajwala
Solved:
Last query:
Last reply:
Revision history for this message
Simone Cianfriglia (crimer) said :
#1

Could you paste here your '/etc/network/interfaces' file and the result of "ls -lR /etc/NetworkManager/" ???

Revision history for this message
prajwala (prajwala) said :
#2

The content of /etc/network/interfaces file is

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

auto eth1
#iface eth1 inet dhcp

auto eth2
#iface eth2 inet dhcp

auto ath0
#iface ath0 inet dhcp

auto wlan0
#iface wlan0 inet dhcp

iface eth1 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

iface eth2 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

iface eth3 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

auto eth3

iface eth4 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

auto eth4

iface eth5 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

auto eth5

iface eth6 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

auto eth6

iface eth7 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

auto eth7

iface eth8 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

auto eth8

The result of "ls -lR /etc/NetworkManager/" is

/etc/NetworkManager/:
total 4
drwxr-xr-x 2 root root 4096 2009-03-07 11:14 dispatcher.d

/etc/NetworkManager/dispatcher.d:
total 4
-rwxr-xr-x 1 root root 865 2007-04-13 17:14 01ifupdown

Revision history for this message
Simone Cianfriglia (crimer) said :
#3

In your interfaces file there are 9 eth devices with the same ip address.... do you really have 9 network cards? Could you paste here the result of 'ifconfig -a'?

Revision history for this message
prajwala (prajwala) said :
#4

I just have one eth device. When ever I reboot my machine I am setting my network configuration. Every time it is creating new eth device. I rebooted my machine and configured network with static IP then eth9 is added to interfaces file.

The result of "ifconfig -a" is

eth9 Link encap:Ethernet HWaddr 00:00:6c:1a:7d:88
          inet addr:10.0.0.41 Bcast:10.255.255.255 Mask:255.0.0.0
          inet6 addr: fe80::200:6cff:fe1a:7d88/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:123 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19287 (18.8 KB) TX bytes:8448 (8.2 KB)
          Interrupt:253

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:16436 Metric:1
          RX packets:2724 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2724 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:156929 (153.2 KB) TX bytes:156929 (153.2 KB)

Revision history for this message
Simone Cianfriglia (crimer) said :
#5

Change your interfaces file to the following, reboot and tell us if it works properly...

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.0.0.41
netmask 255.0.0.0
gateway 10.0.0.1

Revision history for this message
prajwala (prajwala) said :
#6

I restarted my machine then result of "ifconfig -a"

eth10 Link encap:Ethernet HWaddr 00:00:6c:c9:09:e3
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:49 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7459 (7.2 KB) TX bytes:4240 (4.1 KB)
          Interrupt:253

eth10:avahi Link encap:Ethernet HWaddr 00:00:6c:c9:09:e3
          inet addr:169.254.7.199 Bcast:169.254.255.255 Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          Interrupt:253

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:16436 Metric:1
          RX packets:2417 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2417 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:135365 (132.1 KB) TX bytes:135365 (132.1 KB)

That means when ever I restart my machine new eth is created and trying to configure with wireless network. I don't have any wireless card for my machine. When check connection information by right clicking on network icon it is showing following information

Interface: Ethernet (eth0)
speed: 100 Mb/s
Driver: forcedeth
IPAddress: 0.0.0.0
Broadcast Address: 0.0.0.0
Subnet Mask: 0.0.0.0
Default Routes: 0.0.0.0
Primary DNS: 0.0.0.0
Seconday DNS: 0.0.0.0
Hardware Address: 00:00:6C:C9:09:E3

It looks like nm-applet is doing something.

Revision history for this message
Simone Cianfriglia (crimer) said :
#7

It's a very big problem of network-manager.... try by changing 'interfaces' to:

auto lo
iface lo inet loopback

If it works, you'll have a dynamic IP on your eth0... unfortunately, it seems network-manager DOESN'T support static IP yet....

Revision history for this message
prajwala (prajwala) said :
#8

This solution does not work but I solved this problem.
After seeing your message I thought the problem is with Network Manager and stopped it using https://help.ubuntu.com/community/NetworkManager#Configuration link

Then also when I restart my machine net is not working. When I open network admin tool, it is saying the device is not configured and asking me to configure. I checked /etc/network/interfaces it is configured with eth14 already. Then I understand that every time when reboot my machine new eth device creating. When I search for this problem I saw https://bugs.launchpad.net/ubuntu/+source/linux/+bug/153727 bug.

I applied https://bugs.launchpad.net/ubuntu/+source/linux/+bug/153727/comments/7 solution. Then it is working. Every time when I start it is using eth0. Then I enabled Network Manager.
Now everything is working fine.

Thanks for your help

Revision history for this message
Tom (tom6) said :
#9

Brilliant, nicely done and well found :)