Skip to contentSkip to conversation

ifdown not happening

DISCUSSION Grahame Jordan 1 participant 2 messages Jun 7, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to understand how the udev system works and track down this issue on Debian/ubuntu flavors.
In this case he interfaces are setup as static to remove any blame from dhclient.
This bug:
https://bugs.beta.launchpad.net/ubuntu/+source/dhcp3/+bug/38140 is probably a symptom of this issue.

With a hotplug network interface such as usb0, it seems that upon removal "ifdown usb0" does not happen.
The interface seems to go down OK but when it is plugged back in the interface does not come up correctly.
"ifconfig" shows lo and eth0 but not usb0
"ifconfig usb0" shows usb0 with no IP Address
If i do an ifdown usb0; ifup usb0; then everything works.

If I pull out the USB cable and then do an "ifdown usb0" I get an error but when I plug bak in the USB cable it comes up OK. So it seeems something is still holding on to usb0 after removal.

I need help to debug this issue. Any help appreciated.

Thanks

Grahame Jordan

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

Hi,

strace on "ifdown usb0" shows that there is still an entry in /var/run/network/ifstate. If I manually remove the usb0=usb0 entry it seems to work.

Cheers

Grahame

Quoted 30 lines · Grahame Jordan

Hi,

I am trying to understand how the udev system works and track down this issue on Debian/ubuntu flavors.
In this case he interfaces are setup as static to remove any blame from dhclient.
This bug:
https://bugs.beta.launchpad.net/ubuntu/+source/dhcp3/+bug/38140 is probably a symptom of this issue.

With a hotplug network interface such as usb0, it seems that upon removal "ifdown usb0" does not happen.
The interface seems to go down OK but when it is plugged back in the interface does not come up correctly.
"ifconfig" shows lo and eth0 but not usb0
"ifconfig usb0" shows usb0 with no IP Address
If i do an ifdown usb0; ifup usb0; then everything works.

If I pull out the USB cable and then do an "ifdown usb0" I get an error but when I plug bak in the USB cable it comes up OK. So it seeems something is still holding on to usb0 after removal.

I need help to debug this issue. Any help appreciated.

Thanks

Grahame Jordan

Quoted 11 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel