View previous topic :: View next topic |
Author |
Message |
Antimatter Guru
Joined: 11 Aug 2003 Posts: 463
|
Posted: Fri Dec 30, 2005 12:21 am Post subject: netplug and wired internet. |
|
|
I'm having a odd issue, correct me if i'm wrong but netplug is suposed to bring the interface back up and and down depending on the link status as in if the cable is plugged, its bought up, if unplugged, bring it down.
Now here's the deal, when the cable is plugged in upon bootup, it correctly get dhcp address, then i unplug it, then later i replug it, and it dosen't even try to get dhcp address at all. I have to manualy initalize dhcp to get the address again.
What's up with that?
Btw i'm using the latest ~x86 baselayout which supports netplug nativly.
what i want to happen is netplug watch the wired interface, untill something is plugged in, get the DHCP address, then when its unplugged, watch it again, untill its plugged back in again, and get the dhcp address again. |
|
Back to top |
|
|
harijay n00b
Joined: 08 Jan 2004 Posts: 22
|
Posted: Fri Dec 30, 2005 5:51 am Post subject: |
|
|
I have a related problem
I want wireless to start ONLY if ethernet is not plugged in.
SO If there is a valid ethernet connection
i.e net.eth0 ( in my case) is UP
Dont bother with wireless anything..
If not then start wireless..
Of course the icing in the cake will be something that if say the cable gets unplugged
SOme daemon ..decides to then start wireless automatically and then route all traffic through the new net.eth1 or wireless interface.
ANy ideas on how this can be done.
I need this functionality because wifi at my workplace is very flaky ..and so I dont want a non-root user to have to start and stop modules to force the ethernet to be the connection.
Hari |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Fri Dec 30, 2005 11:24 am Post subject: Re: netplug and wired internet. |
|
|
Antimatter wrote: | what i want to happen is netplug watch the wired interface, untill something is plugged in, get the DHCP address, then when its unplugged, watch it again, untill its plugged back in again, and get the dhcp address again. |
It may be the case that your network card driver is not handling cable in/out events correctly. Some do, some don't. I suggest opening a bug on bugs.gentoo.org and supply your full network card details, lspi info, kernel module and version. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Fri Dec 30, 2005 11:26 am Post subject: |
|
|
harijay wrote: | I need this functionality because wifi at my workplace is very flaky ..and so I dont want a non-root user to have to start and stop modules to force the ethernet to be the connection. |
baselayout-1.12 supports this if you can use wpa_supplicant and netplug/ifplugd.
Basically, they will take care of your connections for you - and if you set RC_AUTO_INTERFACE="yes" in /etc/conf.d/rc we will prefer wired over wireless and do a few other things for you _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
Antimatter Guru
Joined: 11 Aug 2003 Posts: 463
|
Posted: Sat Dec 31, 2005 1:06 am Post subject: Re: netplug and wired internet. |
|
|
UberLord wrote: | Antimatter wrote: | what i want to happen is netplug watch the wired interface, untill something is plugged in, get the DHCP address, then when its unplugged, watch it again, untill its plugged back in again, and get the dhcp address again. |
It may be the case that your network card driver is not handling cable in/out events correctly. Some do, some don't. I suggest opening a bug on bugs.gentoo.org and supply your full network card details, lspi info, kernel module and version. |
Okay, can do thanks
Here's the url to the bugreport.
https://bugs.gentoo.org/show_bug.cgi?id=117242 |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Antimatter Guru
Joined: 11 Aug 2003 Posts: 463
|
Posted: Sun Jan 01, 2006 6:08 pm Post subject: |
|
|
UberLord wrote: | LOL. It got assigned to me, so I assigned it to the kernel team. |
I noticed, then again youre sort of the network guru around here. Hey i haven't seen any progress on that "bug" so what would the expected timeframe be, a week, month or what? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Antimatter Guru
Joined: 11 Aug 2003 Posts: 463
|
Posted: Tue Jan 03, 2006 8:06 pm Post subject: |
|
|
UberLord wrote: | So soon on New Years? lol
kernel bugs sometimes take a long time to solve. Have patience young padawan as we have some bugs that are quite old .... |
Hahaha, I never really noticed it was New Years myself, But that's allrighty, that's something i can wait, afterall i waited almost 1-2 years for SATA support to mature to a point where they were useable on my computer so yeah |
|
Back to top |
|
|
|