Skip to contentSkip to conversation

Automatically connect to ethernet

DISCUSSION Jan Pannecoeck 2 participants 3 messages Mar 9, 2009 – Mar 10, 2009

lore
Share & tools
lore
#0 lore raw

Hello all,

I'm using OpenEmbedded for an Taskit PanelCard. I've been able to get everything I needed working properly except for one thing now. And I assume that it is a problem in the OE linux kernel, or me missing some packages.

So my problem is that linux does not connect to the DHCP server automatically when I plug in the ethernetcable. When I plug-in the cable before I launch the linux, this is working fine because at start-up the DHCP-server is asked for a new IP-lease. But when I don't plug-in the cable, and I plug it in when linux is already booted, the DHCP-server isn't contacted for a new IP-lease and I can't connect to the Internet. I can use the "/etc/init.d/networking restart" command but this isn't a solution of course because it should work all the time, also if I'm not there to enter that command...

So, do I have to change some settings in the kernel, or do I have to install some extra packages to get this working properly?

Thanks in advance,
Jan Pannecoeck

#1 lore raw

Jan,

Quoted 11 lines · Jan Pannecoeck

So my problem is that linux does not connect to the DHCP server automatically when I plug in the ethernetcable. When I plug-in the cable before I launch the linux, this is working fine because at start-up the DHCP-server is asked for a new IP-lease. But when I don't plug-in the cable, and I plug it in when linux is already booted, the DHCP-server isn't contacted for a new IP-lease and I can't connect to the Internet. I can use the "/etc/init.d/networking restart" command but this isn't a solution of course because it should work all the time, also if I'm not there to enter that command...

Quoted 3 lines

So, do I have to change some settings in the kernel, or do I have to install some extra packages to get this working properly?

You should look at ifplugd. This will detect the network link beat and bring the interface up/down as required.

TAS

Quoted 7 lines

Thanks in advance,
Jan Pannecoeck

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw

Thanks for the ifplugd tip, I've tried to cross-compile it for the ARM I'm using but didn't succeeded yet... I'll try again later! :-)

Thanks,
Jan

Quoted 32 lines · Travis Stratman

Jan,

Quoted 5 lines · Jan Pannecoeck

So my problem is that linux does not connect to the DHCP server automatically when I plug in the ethernetcable. When I plug-in the cable before I launch the linux, this is working fine because at start-up the DHCP-server is asked for a new IP-lease. But when I don't plug-in the cable, and I plug it in when linux is already booted, the DHCP-server isn't contacted for a new IP-lease and I can't connect to the Internet. I can use the "/etc/init.d/networking restart" command but this isn't a solution of course because it should work all the time, also if I'm not there to enter that command...

So, do I have to change some settings in the kernel, or do I have to install some extra packages to get this working properly?

You should look at ifplugd. This will detect the network link beat and bring the interface up/down as required.

TAS

Quoted 8 lines

Thanks in advance,
Jan Pannecoeck

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel