Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Change eth1 to 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
Dorza
n00b
n00b


Joined: 25 Jul 2003
Posts: 23
Location: UK

PostPosted: Sun Jul 01, 2007 4:41 pm    Post subject: [Solved] Change eth1 to eth0? Reply with quote

During the boot sequence I get an error saying something along the lines of "eth0 could not be started" and the boot sequence continues. When I login I have to go to a terminal and type "dhcpcd eth1" to get my internet going. I know why this is happening; genkernel compiled Ethernet over firewire so eth0 went to that, I think and my regular, proper Ethernet device went to eth1. I have since removed Ethernet over firewire from my kernel and would like to map my proper Ethernet PCI card onto eth0. I have seen some ways of doing it on the net, but it seems that they don't apply to Gentoo.

Can someone point me in the right direction please?

Thanks


Last edited by Dorza on Sun Jul 01, 2007 10:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
martin20450
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2005
Posts: 79

PostPosted: Sun Jul 01, 2007 5:41 pm    Post subject: Reply with quote

You could remove eth0 from starting at boot and add eth1 as the default to start
Code:
rc-update del net.eth0 default
rc-update add net.eth1 default
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Sun Jul 01, 2007 5:42 pm    Post subject: Reply with quote

A custom udev rule should do the trick. Check out this post. You can also a udev page in the gentoo wiki.
_________________
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Back to top
View user's profile Send private message
gsoe
Apprentice
Apprentice


Joined: 10 Dec 2006
Posts: 284
Location: Denmark

PostPosted: Sun Jul 01, 2007 6:00 pm    Post subject: Reply with quote

If you don't have an eth0 anymore, just remove the file
Code:
/etc/udev/rules.d/70-persistent-net.rules
A fresh one will be generated at boot.
Back to top
View user's profile Send private message
Dorza
n00b
n00b


Joined: 25 Jul 2003
Posts: 23
Location: UK

PostPosted: Sun Jul 01, 2007 10:38 pm    Post subject: Reply with quote

Thanks for your help, got this sorted now :).
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