Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
cosmos
Advisor

/etc/udev/rules.d/00-OS-XX.rules doesn't stick beyond 10 NICs

I'm renaming interfaces in a lab to represent VSX production for a gateway cluster with 18 interfaces. Following sk86121:

# cat /etc/udev/rules.d/00-OS-XX.rules_ORIGINAL
ID=="virtio0", NAME="eth0"
ID=="virtio1", NAME="eth1"
ID=="virtio2", NAME="eth2"
ID=="virtio3", NAME="eth3"
ID=="virtio4", NAME="eth4"
ID=="virtio5", NAME="eth5"
ID=="virtio6", NAME="eth6"
ID=="virtio7", NAME="eth7"
ID=="virtio8", NAME="eth8"
ID=="virtio9", NAME="eth9"

# cat /etc/udev/rules.d/00-OS-XX.rules
ID=="virtio0", NAME="Mgmt"
ID=="virtio1", NAME="eth1-01"
ID=="virtio2", NAME="eth1-02"
ID=="virtio3", NAME="eth1-03"
ID=="virtio4", NAME="eth1-04"
ID=="virtio5", NAME="eth1-05"
ID=="virtio6", NAME="eth1-06"
ID=="virtio7", NAME="eth1-07"
ID=="virtio8", NAME="eth1-08"
ID=="virtio9", NAME="eth2-01"
ID=="virtio10", NAME="eth2-02"
ID=="virtio11", NAME="eth2-03"
ID=="virtio12", NAME="eth2-04"
ID=="virtio13", NAME="eth3-01"
ID=="virtio14", NAME="eth3-02"
ID=="virtio15", NAME="eth3-03"
ID=="virtio16", NAME="eth3-04"
ID=="virtio17", NAME="Sync"

After reboot, all interfaces are available:

# ifconfig -a | grep Link
Mgmt Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:00
Sync Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:11
eth1-01 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:01
eth1-02 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:02
eth1-03 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:03
eth1-04 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:04
eth1-05 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:05
eth1-06 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:06
eth1-07 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:07
eth1-08 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:08
eth2-01 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:09
eth2-02 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0A
eth2-03 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0B
eth2-04 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0C
eth3-01 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0D
eth3-02 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0E
eth3-03 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0F
eth3-04 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:10
lo Link encap:Local Loopback

However, /etc/udev/rules.d/00-OS-XX.rules has been overwritten with 10 entries:

# cat /etc/udev/rules.d/00-OS-XX.rules
ID=="virtio0", NAME="Mgmt"
ID=="virtio1", NAME="eth1-01"
ID=="virtio2", NAME="eth1-02"
ID=="virtio3", NAME="eth1-03"
ID=="virtio4", NAME="eth1-04"
ID=="virtio5", NAME="eth1-05"
ID=="virtio6", NAME="eth1-06"
ID=="virtio7", NAME="eth1-07"
ID=="virtio8", NAME="eth1-08"
ID=="virtio9", NAME="eth2-01"

And the next time we boot the box only the first 10 interfaces have the correct (new) name:

# ifconfig -a | grep Link
Mgmt Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:00
eth1-01 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:01
eth1-02 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:02
eth1-03 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:03
eth1-04 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:04
eth1-05 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:05
eth1-06 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:06
eth1-07 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:07
eth1-08 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:08
eth2-01 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:09
eth3 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0F
eth4 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:11
eth5 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0E
eth7 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:10
eth10 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0A
eth11 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0B
eth12 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0C
eth13 Link encap:Ethernet HWaddr 0C:9A:43:3A:BD:0D
lo Link encap:Local Loopback

This is in both R77.30 and 80.40 (3.1 kernel).

0 Kudos
4 Replies
PhoneBoy
Admin
Admin

Technically, this is not supported on Check Point Appliances or VMs, at least according to an internal comment on sk69621.
It's only supported on physical Open Server appliances.

0 Kudos
cosmos
Advisor

# system_info System Information
Open server

0 Kudos
PhoneBoy
Admin
Admin

Pretty sure virtio only shows up in a VM?
I can suggest is a TAC case here.
Or possibly changing the mode on the file so it can't get overwritten (using the immutable flag).

0 Kudos
cosmos
Advisor

Oops yeah KVM/qemu. chattr +i works, but means we need a human at the console:

Mounting local filesystems: [ OK ]
mv: overwrite `/etc/udev/rules.d//00-OS-XX.rules', overriding mode 0644?

We're moving to bonds / vPCs on the new appliances, for all the right reasons 🙂

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events