Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Duplicate Threads
  • Search

How can I disable eth0 and only use eth1?

Threads in this read-only forum cover topics discussed elsewhere in other forums.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
ianw1974
Guru
Guru
User avatar
Posts: 387
Joined: Wed Oct 18, 2006 12:25 pm
Location: UK and Poland
Contact:
Contact ianw1974
Website

How can I disable eth0 and only use eth1?

  • Quote

Post by ianw1974 » Thu Nov 08, 2007 7:06 am

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: Select all

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.
Top
dev_zero
n00b
n00b
User avatar
Posts: 28
Joined: Thu Nov 01, 2007 8:53 pm
Location: Somewhere in the kernel source

  • Quote

Post by dev_zero » Thu Nov 08, 2007 7:14 am

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
Top
ianw1974
Guru
Guru
User avatar
Posts: 387
Joined: Wed Oct 18, 2006 12:25 pm
Location: UK and Poland
Contact:
Contact ianw1974
Website

  • Quote

Post by ianw1974 » Thu Nov 08, 2007 7:29 am

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: Select all

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.
Top
mark_alec
Bodhisattva
Bodhisattva
User avatar
Posts: 6066
Joined: Sat Sep 11, 2004 6:40 am
Location: Melbourne, Australia
Contact:
Contact mark_alec
Website

  • Quote

Post by mark_alec » Thu Nov 08, 2007 7:38 am

Moved from Networking & Security to Duplicate Threads.

See https://forums.gentoo.org/viewtopic-t-602909.html
www.gentoo.org.au || #gentoo-au
Top
Post Reply

4 posts • Page 1 of 1

Return to “Duplicate Threads”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic