View previous topic :: View next topic |
Author |
Message |
ianw1974 Guru
Joined: 18 Oct 2006 Posts: 387 Location: UK and Poland
|
Posted: Thu Nov 08, 2007 7:06 am Post subject: How can I disable eth0 and only use eth1? |
|
|
Having a problem on my laptop.
Each time it starts, both interfaces come up, eth0 is wired lan, eth1 is my wireless. I only want to use wireless, but eth0 comes up every time, regardless if I want it to.
Originally, I had it on the startup list, so I removed with:
Code: | rc-update del net.eth0 |
so it doesn't exist in any runlevels. However, udev always starts it instead. I can't blacklist the module, because my kernel is monolithic. Is there any way I can stop it coming up without editing udev rules? Something nice and simple would be great.
The reason I want to stop it is one of two reasons:
1. If I don't put any config for it, it tries to use DHCP but means my machine takes longer to boot trying to seek an address from a port with no lan connection.
2. If I have a static ip, then ntp-client fails to start, because it tries the first connection (eth0) first before trying the next connection (eth1).
What I'm having to do is stop eth0 manually, and then start ntp-client manually. I'd rather this was automatic, and I think should be possible. |
|
Back to top |
|
|
dev_zero n00b
Joined: 01 Nov 2007 Posts: 28 Location: Somewhere in the kernel source
|
Posted: Thu Nov 08, 2007 7:14 am Post subject: |
|
|
edit: Ok beginning to get a little tired, misunderstood your problem completely
I'm having my system set up almos like you, it should work unless you are doing something funny in the wireless config, like bringing up both interfaces or something. _________________ Dell Latitude D630 DSDT |
|
Back to top |
|
|
ianw1974 Guru
Joined: 18 Oct 2006 Posts: 387 Location: UK and Poland
|
Posted: Thu Nov 08, 2007 7:29 am Post subject: |
|
|
Here's my /etc/conf.d/net file. There's nothing weird on the config, however, I need to find a way to stop eth0 coming up.
Code: | config_eth0=( "10.1.1.7/24" )
routes_eth0=( "default gw 10.1.1.1" )
modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext"
config_eth1=( "dhcpcd" ) |
if I place # in front of the config_eth0 lines, then it tries to use dhcp by default. So, I don't know what else I need to do to stop it. |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
|
Back to top |
|
|
|
|
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
|
|