View previous topic :: View next topic |
Author |
Message |
velixim n00b
Joined: 05 Apr 2007 Posts: 2
|
Posted: Thu Apr 05, 2007 6:45 pm Post subject: disable net.eth0 at startup (and enable net.eth1 instead) |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Apr 05, 2007 7:21 pm Post subject: |
|
|
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 |
|
|
velixim n00b
Joined: 05 Apr 2007 Posts: 2
|
Posted: Thu Apr 05, 2007 8:26 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Apr 06, 2007 1:41 am Post subject: |
|
|
No problem |
|
Back to top |
|
|
|