Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
disable net.eth0 at startup (and enable net.eth1 instead)
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
velixim
n00b
n00b


Joined: 05 Apr 2007
Posts: 2

PostPosted: Thu Apr 05, 2007 6:45 pm    Post subject: disable net.eth0 at startup (and enable net.eth1 instead) Reply with quote

Hi.

I have a question concerning the interfaces that are activated automatically by the startup-scripts. What i want is, that my wireless card only (configured as eth1) is brought up during the boot process. For this purpose i added it by executing rc-update add net.eth1 default. The other network card (i worked with while gentoo installation etc.) is configured as net.eth0. For not to be started at every boot (i'm not wired under normal circumstances) i removed it by typing rc-update del net.eth0 (and also rc-update -s shows me no eth0). But after all eth0 is still brought up at every boot. As a consequence (because of the same static ip address configured with eth0 and eth1), eth1 fails on start. I've even tried to remove all configurations for eth0, but while starting, a message is printed like "no configuration for eth0 found, DHCP is assumed..." (what also fails - as expected).
Can someone give me a hint how to disable this interfaces? Or is the only way to let udev associate my wireless card to eth0 instead of eth1 (if its possible at all)?

velexim.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Apr 05, 2007 7:21 pm    Post subject: Reply with quote

Yes, check for this file : /etc/conf.d/rc

And check the variable :

# 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.

#RC_PLUG_SERVICES=""
RC_PLUG_SERVICES="!net.*"

If you fix this varaible to !net.*, your rc-update will works.
Back to top
View user's profile Send private message
velixim
n00b
n00b


Joined: 05 Apr 2007
Posts: 2

PostPosted: Thu Apr 05, 2007 8:26 pm    Post subject: Reply with quote

So far the "problem" is solved.

Placing !net.eth0 caused exactly the behavior i wanted for the startup.

Thank you very much, d2_racing :)
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Apr 06, 2007 1:41 am    Post subject: Reply with quote

No problem :)
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