Hi,

I have persistent-net.rules in form:

SUBSYSTEM=="net", KERNEL=="eth*" ACTION=="add",
ATTR{address}=="40:d8:55:09:43:0f", NAME="eth3"

which makes the Ethernet device with the given MAC address known
as eth3, so far so good.

When trying to add a VLAN using e.g.:

ip link add link eth3 name eth3.77 type vlan id 77

this rule matches (because same mac address) and I end up with an
interface called e.g. "rename9" (number of course differs). I tried

  $ udevadm info -a -p /sys/class/net/<dev>

to see a difference, but after "ip link set up dev rename9" the
only difference I see are ATTR{ifindex}, ATTR{operstate} and
ATTR{tx_queue_len} and none of them is suited to be used as
matching condition in my udev rule.

How to use fixed ethX device names and VLAN devices at the same time?

Any hint appreciated!

Regards,
Steffen

syslog:
udevd[673]: error changing net interface name rename9 to eth3: File exists

  looking at device '/devices/virtual/net/eth3':
    KERNEL=="eth3"
    SUBSYSTEM=="net"
    DRIVER==""
    ATTR{addr_assign_type}=="0"
    ATTR{addr_len}=="6"
    ATTR{dev_id}=="0x0"
    ATTR{ifalias}==""
    ATTR{iflink}=="4"
    ATTR{ifindex}=="4"
    ATTR{type}=="1"
    ATTR{link_mode}=="0"
    ATTR{address}=="40:d8:55:09:43:0f"
    ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
    ATTR{carrier}=="0"
    ATTR{speed}=="10"
    ATTR{duplex}=="half"
    ATTR{dormant}=="0"
    ATTR{operstate}=="down"
    ATTR{mtu}=="1500"
    ATTR{flags}=="0x1003"
    ATTR{tx_queue_len}=="1000"
    ATTR{netdev_group}=="0"


  looking at device '/devices/virtual/net/rename9':
    KERNEL=="rename9"
    SUBSYSTEM=="net"
    DRIVER==""
    ATTR{addr_assign_type}=="0"
    ATTR{addr_len}=="6"
    ATTR{dev_id}=="0x0"
    ATTR{ifalias}==""
    ATTR{iflink}=="4"
    ATTR{ifindex}=="9"
    ATTR{type}=="1"
    ATTR{link_mode}=="0"
    ATTR{address}=="40:d8:55:09:43:0f"
    ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
    ATTR{carrier}=="0"
    ATTR{speed}=="10"
    ATTR{duplex}=="half"
    ATTR{dormant}=="0"
    ATTR{operstate}=="lowerlayerdown"
    ATTR{mtu}=="1500"
    ATTR{flags}=="0x1003"
    ATTR{tx_queue_len}=="0"
    ATTR{netdev_group}=="0"


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caobounnt2pmg7bd-xvqrzqp1qjrruzk71pmqz0uxbcyeffp...@mail.gmail.com

Reply via email to