Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: enguer on February 06, 2015, 06:45:23 pm
-
Hello,
I'm a happy zentyal's user. I need to build a new virtual infrastructure (vmware based) with zentyal as firewall / router.
I've 6 vlans with 7 interfaces and 1 wan interface.
I need to rename my interfaces name but icant find naymore the file /etc/udev/rules.d/70-persistent-net.rule.
In fact, there is no files in /etc/udev/rules.d/ folder.
How do i rename my interfaces? and how the system keep his configuration persistent ?
-
nobody has this problem ?
I'm affraid to push this firewall config in production.... If i reboot do the interface dont change ?
i 've search in /lib/udev/rules.d/75-persistent-net-generator file and i've found an execption for VMware based mac address...
But why no rules are generated ?
-
It's a really problematic issue ...
If a firewall / router lose his interface order ... no ?
-
OK i reply to myself...
I've found that udev dont generate file in /etc/udev/rules.d anymore.
The naming process is based on hardware slot.
To make the naming persistent and define the ordering, you need to write the file you need like /etc/udev/rules.d/70-persistent-net.rules:
# PCI device 0x8086:0x108c (e1000e) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:25:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:06:8d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:5c:7b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:0a:36", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:07:5f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:35:71", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:15:aa", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:99:7c:71", ATTR{type}=="1", KERNEL=="eth*", NAME="eth7"
that's all.
-
As a suggestion, zentyal's developpers could deploy a web interface to select the name based on physical mac address...