I've done some further tests after boot-time.

$ cat /etc/udev/rules.d/70-persistent-net.rules
# 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.

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:25:22:75:e6:9e", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x10bc (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:15:17:8f:99:c0", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x10bc (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:15:17:8f:99:c1", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth2"

# PCI device 0x8086:0x10bc (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:15:17:8f:99:c2", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth3"

# PCI device 0x8086:0x10bc (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:15:17:8f:99:c3", ATTR{dev_id}=="0x0", ATTR{type}=="1", 
KERNEL=="eth*", NAME="eth4"

$ inotifywatch -m /etc/udev/rules.d/
$ service udev restart

/etc/udev/rules.d/ OPEN,ISDIR 
/etc/udev/rules.d/ CLOSE_NOWRITE,CLOSE,ISDIR 
/etc/udev/rules.d/ OPEN 70-persistent-net.rules
/etc/udev/rules.d/ ACCESS 70-persistent-net.rules
/etc/udev/rules.d/ CLOSE_NOWRITE,CLOSE 70-persistent-net.rules


$ ifconfig -a | grep '^eth'
eth0      Link encap:Ethernet  HWaddr 00:15:17:8f:99:c1   # rules say eth2
eth1      Link encap:Ethernet  HWaddr 00:15:17:8f:99:c0   # rules say eth1
eth2      Link encap:Ethernet  HWaddr 00:25:22:75:e6:9e   # rules say eth0 
eth3      Link encap:Ethernet  HWaddr 00:15:17:8f:99:c3   # rules say eth4
eth4      Link encap:Ethernet  HWaddr 00:15:17:8f:99:c2   # rules say eth3

$ udevadm monitor --kernel --udev --property --subsystem-match=net | tee 
/tmp/udev.log
$udevadm trigger action=add subsystem-match=net

Attached "udev.log" containing monitor output.

** Attachment added: "udevadm monitor output"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1235162/+attachment/3860722/+files/udev.log

** Summary changed:

- Persistent net names via /etc/udev/rules.d/70-persistent-net.rules 
+ Persistent net names via /etc/udev/rules.d/70-persistent-net.rules are ignored

** Changed in: systemd (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1235162

Title:
  Persistent net names via /etc/udev/rules.d/70-persistent-net.rules are
  ignored

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1235162/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to