Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Get eth1 to load instead of eth0.
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
Farner
n00b
n00b


Joined: 14 Feb 2005
Posts: 45
Location: Malmö, Sweden

PostPosted: Mon Aug 29, 2005 6:22 pm    Post subject: Get eth1 to load instead of eth0. Reply with quote

Hello.
Everytime I boot it takes some time because my computer want to boot with eth0. I have to do dhcpd eth1 everytime I login to make it work. I have changed /etc/conf.d/net from config_eth0=( "dhcp" ) to config_eth1=( "dhcp" ) but its still the same. :(
_________________
Workstation: CPU: AMD64 3500+ (250*10=2500MHz) MEMORY: 1024MB GFX: Ati Radeon x850xt (Core: 550MHz MEM: 1.2GHz) OS: Gentoo x86_64
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Aug 29, 2005 6:25 pm    Post subject: Reply with quote

rc-update add net.eth1 default
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Farner
n00b
n00b


Joined: 14 Feb 2005
Posts: 45
Location: Malmö, Sweden

PostPosted: Mon Aug 29, 2005 6:30 pm    Post subject: Reply with quote

Thank you for the answer. I get this error when I did what you said:
rc-update add net.eth1 default
* /sbin/rc-update: /etc/init.d/net.eth1 not found; aborting.
_________________
Workstation: CPU: AMD64 3500+ (250*10=2500MHz) MEMORY: 1024MB GFX: Ati Radeon x850xt (Core: 550MHz MEM: 1.2GHz) OS: Gentoo x86_64
Back to top
View user's profile Send private message
opqdan
Guru
Guru


Joined: 13 Dec 2004
Posts: 429
Location: Redmond, WA, USA

PostPosted: Mon Aug 29, 2005 6:34 pm    Post subject: Reply with quote

Code:
cp /etc/init.d/net.eth0 /etc/init.d/net.eth1
rc-update add net.eth1 default
rc-update del net.eth0 default


That will add net.eth1 to default, and remove net.eth0 (so you don't have to wait). You may also have to go tell eth1 to use dhcp. There are directions in the handbook about how to do this, I can't remember the file to edit.
Back to top
View user's profile Send private message
Farner
n00b
n00b


Joined: 14 Feb 2005
Posts: 45
Location: Malmö, Sweden

PostPosted: Mon Aug 29, 2005 6:44 pm    Post subject: Reply with quote

Thank you for the answer. I am going to try that now. :)
_________________
Workstation: CPU: AMD64 3500+ (250*10=2500MHz) MEMORY: 1024MB GFX: Ati Radeon x850xt (Core: 550MHz MEM: 1.2GHz) OS: Gentoo x86_64
Back to top
View user's profile Send private message
opqdan
Guru
Guru


Joined: 13 Dec 2004
Posts: 429
Location: Redmond, WA, USA

PostPosted: Mon Aug 29, 2005 6:49 pm    Post subject: Reply with quote

I found the location in the handbook:
http://www.gentoo.org/doc/en/handbook/2005.0/handbook-x86.xml?part=1&chap=8#doc_chap2
Back to top
View user's profile Send private message
Farner
n00b
n00b


Joined: 14 Feb 2005
Posts: 45
Location: Malmö, Sweden

PostPosted: Mon Aug 29, 2005 7:01 pm    Post subject: Reply with quote

Yes, thank you very much. It worked. :)
_________________
Workstation: CPU: AMD64 3500+ (250*10=2500MHz) MEMORY: 1024MB GFX: Ati Radeon x850xt (Core: 550MHz MEM: 1.2GHz) OS: Gentoo x86_64
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Mon Aug 29, 2005 9:24 pm    Post subject: Reply with quote

Actually, its better to symlink net.eth1 to net.eth0 rather than copy. That way when a new version of baselayout comes along, your eth1 is updated as well.
_________________
jabber: MighMoS@jabber.org

localhost # export HOME=`which heart`
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