View previous topic :: View next topic |
Author |
Message |
anivalex n00b
Joined: 04 Jun 2009 Posts: 2 Location: Sofia
|
Posted: Fri Jun 05, 2009 6:31 am Post subject: Ethernet cards problem |
|
|
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 |
|
|
malern Apprentice
Joined: 19 Oct 2006 Posts: 170
|
Posted: Fri Jun 05, 2009 8:12 am Post subject: |
|
|
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 |
|
|
anivalex n00b
Joined: 04 Jun 2009 Posts: 2 Location: Sofia
|
Posted: Fri Jun 05, 2009 8:29 am Post subject: Yes, problem resolved |
|
|
Thanks!
Very good day ! |
|
Back to top |
|
|
|