Author Topic: [SOLVED] Zentyal 4.0 udev rules missing  (Read 1520 times)

enguer

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
[SOLVED] Zentyal 4.0 udev rules missing
« 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 ?
« Last Edit: February 07, 2015, 01:03:00 pm by enguer »

enguer

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 udev rules missing
« Reply #1 on: February 07, 2015, 11:57:33 am »
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 ?

enguer

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 udev rules missing
« Reply #2 on: February 07, 2015, 12:36:16 pm »
It's a really problematic issue ...
If a firewall / router lose his interface order ... no ?

enguer

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Zentyal 4.0 udev rules missing
« Reply #3 on: February 07, 2015, 01:02:44 pm »
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.


enguer

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] Zentyal 4.0 udev rules missing
« Reply #4 on: February 07, 2015, 01:06:01 pm »
As a suggestion, zentyal's developpers could deploy a web interface to select the name based on physical mac address...