Gentoo Forums
Gentoo Forums
Quick Search: in
net.eth0 started against my will [solved]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Boccaccio
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 77

PostPosted: Sat Aug 12, 2006 7:17 am    Post subject: net.eth0 started against my will [solved] Reply with quote

Hi everybody!

In my computer there is an ethernet card and a wlan card. I just use the latter for connecting to the internet (so I don't need wires through the house). Until now everything worked fine, but now the following problem occured:

Some time ago (I guess after a baselayout update) during the boot process I was told about some device initiated service starting net.eth0, but without any success. Since this was no big problem for me, I just ignored it. But after the most recent baselayout update to 1.12.4-r2 during the boot process, my computer tries to configure the card via dhcp which takes some time until it recognizes that there is no dhcp server reachable. Since this lengthens the boot process quite a lot, I want to ask how I can get rid of this problem.

If you need any more config files etc, just let me know.


Last edited by Boccaccio on Sat Aug 12, 2006 8:08 am; edited 1 time in total
Back to top
View user's profile Send private message
flash49
Apprentice
Apprentice


Joined: 12 Feb 2005
Posts: 218

PostPosted: Sat Aug 12, 2006 7:30 am    Post subject: Re: net.eth0 started against my will Reply with quote

I had the same Problem and fixed it by emerging netplug. This way net.eth0 is only started if a cable is pluged in.
Back to top
View user's profile Send private message
grenwald
n00b
n00b


Joined: 05 Aug 2006
Posts: 21
Location: Clermont-Ferrand / France

PostPosted: Sat Aug 12, 2006 7:43 am    Post subject: Reply with quote

If you never use the device net.eth0, you can disable its starting at boot with the command
Code:
rc-update del net.eth0 default

This way, if you want to use it, you can start the device only when you need it...
_________________
there's only 10 types of people
Those who understand binary and the others
Back to top
View user's profile Send private message
Boccaccio
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 77

PostPosted: Sat Aug 12, 2006 7:50 am    Post subject: Reply with quote

Well rc-update does not help, since

Code:

localhost init.d # rc-update del net.eth0
 * 'net.eth0' not found in any of the specified runlevels


I emerged netplug and am just waiting for some time to reboot.
Back to top
View user's profile Send private message
flash49
Apprentice
Apprentice


Joined: 12 Feb 2005
Posts: 218

PostPosted: Sat Aug 12, 2006 7:59 am    Post subject: Reply with quote

grenwald wrote:
If you never use the device net.eth0, you can disable its starting at boot with the command
Code:
rc-update del net.eth0 default

This way, if you want to use it, you can start the device only when you need it...

This does not work if you use coldplug or hotplug since these are the ones starting net.et0 even if you disabled autostart of the services. You can also disable hotpluging for net.* in "/etc/conf.d/rc" :
Code:
# Some people want a finer grain over hotplug/coldplug. RC_PLUG_SERVICES is a
# list of services that are matched in order, either allowing or not. By
# default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be yes
# anyway.
# Example - RC_PLUG_SERVICES="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be plugged.
Back to top
View user's profile Send private message
Boccaccio
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2005
Posts: 77

PostPosted: Sat Aug 12, 2006 8:07 am    Post subject: Reply with quote

Ok, so the final solution was not to emerge netplug but just to make the change to /etc/conf.d/rc.

Thanks alot for your help!
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Fri Sep 29, 2006 1:48 pm    Post subject: Reply with quote

This happened to me too after doing a deep upgrade of Gentoo (which involved upgrading baselayout.) Why did i not have this problem before? i hadn´t touched /etc/conf.d/rc before and this didn´t happen.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 5827
Location: Blighty

PostPosted: Fri Sep 29, 2006 4:54 pm    Post subject: Reply with quote

Because the udev default is to coldplug.
The baselayout default is to allow coldplug too. Mainly because we never disallowed it in the past.
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
Back to top
View user's profile Send private message
roblov
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2005
Posts: 88
Location: Argentina

PostPosted: Fri Sep 29, 2006 6:22 pm    Post subject: Reply with quote

Ok, so i´ll do what flash49 suggested. It seems that is the right way to fix this, isn´t it?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 5827
Location: Blighty

PostPosted: Sat Sep 30, 2006 5:31 am    Post subject: Reply with quote

Yes
_________________
When baselayout tells you to update config files or things break WE REALLY DO MEAN IT

Please add SOLVED to the thread title if your issue has been
Strip comments from configs please
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 - 5 Hours
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