From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grahame Jordan Date: Thu, 07 Jun 2007 01:37:56 +0000 Subject: Re: ifdown not happening Message-Id: <46676174.3040605@theforce.com.au> List-Id: References: <46675843.1060804@theforce.com.au> In-Reply-To: <46675843.1060804@theforce.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 Grahame Jordan wrote: > 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 > Linux-hotplug-devel@lists.sourceforge.net > 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel