Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Laptop eth0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
UclaBob
Tux's lil' helper
Tux's lil' helper


Joined: 22 Oct 2002
Posts: 83

PostPosted: Mon Jun 02, 2003 12:41 pm    Post subject: Laptop eth0 Reply with quote

Hey everybody,

I have a laptop...it is nice :-p....but not everywhere that I use it has internet access. So it is very painful to sit through the

"Bringing eth0 up..." message at bootup, which takes a couple of minutes.

Somehow at one point my laptop configured itself to not wait at all on bootup for eth0. If it was plugged into a network, it would work...else it just continued on its merry way.

I just did a reinstall, so I'm not sure what or how this was accomplished. If somebody with some knowledge on the subject would point me in the right direction, I would appreciate it.

Thanks,

Bob
Back to top
View user's profile Send private message
sulu
Guru
Guru


Joined: 21 May 2002
Posts: 399
Location: Dornbirn/Austria

PostPosted: Mon Jun 02, 2003 1:42 pm    Post subject: Don't start eth0 automatically on boot Reply with quote

Hi

I'm thinking over the same problem.

I think i'll remove the activation of eth0 from the boot-process via

Code:
rc-update del net.eht0 default



So i'll have to start eth0 manually.

Maybe a little wrapper script will make live easier.

eth0up
....
/init.d/net.eth0 start
#Start services dependent on eth0
/init.d/someservice start

eth0down
....
/init.d/net.eth0 stop
#Stop services dependent on eth0
/init.d/someservice stop


This should work.
Anyone with a better idea ??


Greetz
Sulu
Back to top
View user's profile Send private message
sgs
n00b
n00b


Joined: 06 Nov 2002
Posts: 33

PostPosted: Tue Jul 01, 2003 12:42 pm    Post subject: Set the dhcp timeout Reply with quote

I guess its likely that your using dhcp.....

Edit /etc/conf.d/net to add a new timeout option for dhcpcd

My file has

Code:

...
iface_eth0="dhcp"
dhcpcd_eth0="-t 7"
...


This alters the behaviour of the /etc/init.d/net.eth0 script (worth a look)

The default timeout option for the dhcpcd daemon is high - 60 seconds. (This program is responsible for talking to the dhcp server which allocates ip addresses according to the hardware address which is unique for every network card.)

Sometimes it is conveniant to have this high as you notice it when its booting up and remember to plug the network cable back in :)
I find the delay too annoying so have set my timeout to 7 seconds. I haven't yet found the dhcp servers I use ever taking longer than this.....and you can always bring the relevant services up manually.....or adjust the timeout and reboot. Maybe could reduce the time even further....but you want a time in which your dhcp server, if it is physically connected, can consistantly respond.

Hope this helps someone.
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jul 01, 2003 1:08 pm    Post subject: Reply with quote

currently i have created another initlevel with decent services (basically without networking services and setiathome)

you can tell grub to boot into another runlevel if you simply add the runlevel number at the end of the kernel line.
grub won't know what to do with it and pass it to init. ;)

just a temporary hack though.

i have already started to hack on a little program that prompts you, whether you want to use network at or not, at bootime.
will release it when it's done.
_________________
Markus Nigbur
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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