2 Ethernet ports and controlling which is eth0/1 in Slack12.1 (networking)
I have 2 ethernet ports on my MB.
Eth0 and Eth1 appear on ifconfig.
My question is can I control which one is Eth0 and Eth1 by the MAC address?
In Slack 12 I was modifying /etc/udev/rules.d/40-network.rules
to something like this:
KERNEL=="eth?", ATTR{address}=="00:19:db:d1:43:52", NAME="eth0"
KERNEL=="eth?", ATTR{address}=="00:19:db:d0:fb:93", NAME="eth1"
So that 00:19:db:d1:43:52 was eth0 and :93 was eth1.
Now in 12.1 the udev.rules for network looks different:
[cat /etc/udev/rules.d/90-network.rules]
# This file will be overwritten in next upgrade. Please put your
# custom rules somewhere else (90-local.rules is a good idea)
SUBSYSTEM=="net", NAME=="?*", ACTION=="add", RUN+="nethelper.sh $env{INTERFACE} start"
SUBSYSTEM=="net", NAME=="?*", ACTION=="remove", RUN+="nethelper.sh $env{INTERFACE} stop"
----So my question is where should I set which ethernet port is eth0 and which is eth1.
Thanks
Rich
|