Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I disable eth0 and only use eth1?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Thu Nov 08, 2007 7:06 am    Post subject: How can I disable eth0 and only use eth1? Reply with quote

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
View user's profile Send private message
dev_zero
n00b
n00b


Joined: 01 Nov 2007
Posts: 28
Location: Somewhere in the kernel source

PostPosted: Thu Nov 08, 2007 7:14 am    Post subject: Reply with quote

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
View user's profile Send private message
ianw1974
Guru
Guru


Joined: 18 Oct 2006
Posts: 387
Location: UK and Poland

PostPosted: Thu Nov 08, 2007 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Thu Nov 08, 2007 7:38 am    Post subject: Reply with quote

Moved from Networking & Security to Duplicate Threads.

See https://forums.gentoo.org/viewtopic-t-602909.html
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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