Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ethernet cards problem
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
anivalex
n00b
n00b


Joined: 04 Jun 2009
Posts: 2
Location: Sofia

PostPosted: Fri Jun 05, 2009 6:31 am    Post subject: Ethernet cards problem Reply with quote

Hi All!

I have a very strange problem/issue on my Gentoo box.

Recently I have had to change my LAN card, for example I changed old 3Com card with a new one Repotec.
I was very wondered that my Gentoo installation was spmehow reserved eth0 interface and I have to use the next one - eth1.
I decied to investigate this problem/issue and replace Realtek with another one Relatek. The issue appeared again and the first free interface was eth2.
Please let me know how could if I change a LAN card with another one I can use one and the same interface, for example ever being eth0.
Thank you in advance!
Good day.
Back to top
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Fri Jun 05, 2009 8:12 am    Post subject: Reply with quote

udev makes sure each individual MAC address always gets the same interface name. So if you add a new card with a new MAC address it will give it the next available interface name, and remember that mapping.

It stores the mapping in

/etc/udev/70-persistent-net.rules

You can edit that file by hand to setup your own mappings. Or simply delete it, in which case the first NIC the kernel finds will get eth0, the second will get eth1 etc.
Back to top
View user's profile Send private message
anivalex
n00b
n00b


Joined: 04 Jun 2009
Posts: 2
Location: Sofia

PostPosted: Fri Jun 05, 2009 8:29 am    Post subject: Yes, problem resolved Reply with quote

Thanks!
Very good day !
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