Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
netplug and wired internet.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Antimatter
Guru
Guru


Joined: 11 Aug 2003
Posts: 463

PostPosted: Fri Dec 30, 2005 12:21 am    Post subject: netplug and wired internet. Reply with quote

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
View user's profile Send private message
harijay
n00b
n00b


Joined: 08 Jan 2004
Posts: 22

PostPosted: Fri Dec 30, 2005 5:51 am    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 30, 2005 11:24 am    Post subject: Re: netplug and wired internet. Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 30, 2005 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Antimatter
Guru
Guru


Joined: 11 Aug 2003
Posts: 463

PostPosted: Sat Dec 31, 2005 1:06 am    Post subject: Re: netplug and wired internet. Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Dec 31, 2005 10:39 am    Post subject: Reply with quote

LOL. It got assigned to me, so I assigned it to the kernel team.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Antimatter
Guru
Guru


Joined: 11 Aug 2003
Posts: 463

PostPosted: Sun Jan 01, 2006 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Jan 02, 2006 9:59 am    Post subject: Reply with quote

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 ....
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Antimatter
Guru
Guru


Joined: 11 Aug 2003
Posts: 463

PostPosted: Tue Jan 03, 2006 8:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum