Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Two Nic, how to set which is eth0 and which is 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
greg
n00b
n00b


Joined: 16 Apr 2002
Posts: 42
Location: HFX/NS/CA

PostPosted: Wed Jun 25, 2003 10:24 am    Post subject: Two Nic, how to set which is eth0 and which is eth1 Reply with quote

I've had two network cards in my machine for well over a year without trouble. Since my last update which included the baselayout my cards have swapped eth0 became eth1 and eth1->eth0. This cause my internet connection fail and I spend a while trying to figure out what is wrong until I ran 'dhcp eth1' and got an IP... Is there a way to set which driver is eth0/1? For now I've disable the 2nd nic's kernel modules so they to load and take eth0, given that I'm not using the second nic right now.

Greg
Back to top
View user's profile Send private message
thofra
n00b
n00b


Joined: 23 Oct 2002
Posts: 6

PostPosted: Wed Jun 25, 2003 11:09 am    Post subject: Reply with quote

a short question
do you have two identical network cards(both REALTEK 8139)?
Back to top
View user's profile Send private message
thofra
n00b
n00b


Joined: 23 Oct 2002
Posts: 6

PostPosted: Wed Jun 25, 2003 11:13 am    Post subject: Reply with quote

make two entries in /etc/modules.conf

e.g.
alias eth0 8139too
alias eth1 3c59x
Back to top
View user's profile Send private message
greg
n00b
n00b


Joined: 16 Apr 2002
Posts: 42
Location: HFX/NS/CA

PostPosted: Wed Jun 25, 2003 11:41 am    Post subject: Reply with quote

The network cards are different. Thanks a lot for the information!

Greg
Back to top
View user's profile Send private message
Vxster
n00b
n00b


Joined: 16 Jan 2003
Posts: 66
Location: London, UK

PostPosted: Wed Jun 25, 2003 2:16 pm    Post subject: Reply with quote

Just a quick question...if I have both of my NIC drivers compiled in to the kernel (eepro100 and tigon3), how do I choose which is which?
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Wed Jun 25, 2003 2:22 pm    Post subject: Reply with quote

see 'dmesg | grep eth', thats where the cards are identified...
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Sun Jul 20, 2003 2:29 am    Post subject: Reply with quote

Will this only work if the NIC drivers are compiled as modules ?
I ask as I have two NIC's in this machine and I compile the drivers into the kernel (don't ask me why though)...

Would it be possible to do something similar ?

--di1bert (~matt)
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