Hallo Jochen,
(Sorry, my German-speaking brain isn't creating thoughts at the moment. [:(])
I agree - that article looks like a note I would have taken in a class and wanted to have something to tickle my memory on an exam - not a list of instructions for someone else.
MfG - Bob (Bitte auf Deutsch weiterhin.)
Hi!
With the support of infinigate I have found a cool and easy solution for the problem.
I'll check the reliability during the next days and post the solution on Sunday.
In case of urgency just just send an PM and I'll reply soon.
Jochen
OK, here is my step-by-step instruction to force a UTM to use the same interface order at each boot-process:
1. If existing, create a backup...
cp /etc/udev/rules.d/70-persistent-net.rules /root/backup_70-persistent-net.rules
In my case, there was no 70-persistent-net.rules file on the UTM and I proceeded with step 3
2. ...and delete the old version,
rm /etc/udev/rules.d/70-persistent-net.rules
After that, you have to do the following steps for every hardware-interface:
3. export the Interface-data
4. extract the MAC of the interface
5. export it
6. create a 70-persistent-net.rules-line by the "write_net_rules" command
for eth0:
export INTERFACE=eth0
ias eth0 | grep ether
link/ether 00:0c:29:dc:55:7e brd ff:ff:ff:ff:ff:ff
export MATCHADDR=00:0c:29:dc:55:7e
/lib/udev/write_net_rules
für eth1:
export INTERFACE=eth1
ias eth1 | grep ether
link/ether 00:0c:29:dc:55:88 brd ff:ff:ff:ff:ff:ff
export MATCHADDR=00:0c:29:dc:55:88
/lib/udev/write_net_rules
After that you got your 70-persistent-net.rules.
In my case I was too lazy to repeat it for every interface.
I created the entry for the first Interface and copied it.
It works fine.
Here is my example-file:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:12", KERNEL=="eth*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:13", KERNEL=="eth*", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:14", KERNEL=="eth*", NAME="eth2"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:15", KERNEL=="eth*", NAME="eth3"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:16", KERNEL=="eth*", NAME="eth4"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:17", KERNEL=="eth*", NAME="eth5"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:18", KERNEL=="eth*", NAME="eth6"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="12:34:56:60:D5:19", KERNEL=="eth*", NAME="eth7"