Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disable eth0 and use eth1 ?
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
kikinovak
n00b
n00b


Joined: 25 Aug 2002
Posts: 55
Location: Montpezat (South France)

PostPosted: Fri Sep 10, 2010 5:12 am    Post subject: Disable eth0 and use eth1 ? Reply with quote

Hi,

I just went through my first series of Gentoo installs on a series of sandboxes. I *almost* got everything right on the first time (thanks to the excellent documentation). Now I've got a few rough edges left.

One of my machines has two ethernet cards, eth0 and eth1. eth1 is connected to a switch that leads to the DHCP server, so I want to use that.

On a RHEL system, I would edit respectively ONBOOT=no and ONBOOT=yes in /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/ifcfg-eth1. What's the Gentoo-specific syntax to do that?

For eth1, I have config_eth1=( "dhcp" ) in /etc/conf.d/net.
_________________
Dyslexics have more fnu.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Sep 10, 2010 5:22 am    Post subject: Reply with quote

two quick ways come to mind
change up RC_PLUG_SERVICES in /etc/conf.d/rc
or simply delete /etc/init.d/net.eth0

that keeps net.eth0 from running on startup

to get net.eth1 running on startup

Code:

ln -s /etc/init.d/net.lo /etc/init.d/net.eth1
rc-update add net.eth1 default


check out the bits in 8.b here - http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap8
under "automatically start networking at boot"
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
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