You are not logged in.
Hello, I'm new to Arch Linux. I have two Ethernet interface adapters, let's distinguish them by their MAC addresses MAC0 and MAC1. Relationship between MAC addresses and 'eth' unit numbers may change after reboot. Sometimes
MAC0~eth0
MAC1~eth1
sometimes
MAC0~eth1
MAC1~eth0
When they swap, I should change 'rc.conf' settings (IP addresses and such) or keep rebooting until they swap back. I want to name devices in 'rc.conf' by their MAC addresses, is it possible?
Last edited by beroal (2009-06-14 01:47:57)
we are not condemned to write ugly code
Offline
Udev can fix that for you - see here.
Offline
Had this issue recently. The best solution is to create a rule in udev which handles the naming task. See http://wiki.archlinux.org/index.php/Udev. The general solution didn't solve my problem. The udev rule has been effective so far. I renamed to lan0 and lan1. If you do rename remember to change your configs that refer to the network cards.
*edit: just a little late, typing with 1 hand...*
Last edited by stryder (2009-06-07 17:34:59)
Offline
Thanks for the tips on this topic, just another workaround:
I had similar problem, but since I don't use the 2 network cards at the same time, ever, i just !driver_name in MODULES array, driver_name setting the network card i dont want to use.
box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle
Offline
Thank you guys.
we are not condemned to write ugly code
Offline
If you need just a quick workaround you can add eth1 to your rc.conf settings so that dhcp tries to use them both (eth0 and eth1) - worked for me.
Offline