Mailinglist Archive: opensuse (1239 mails)

< Previous Next >
[opensuse] renaming a network dev w/udevadm from command line?
How does one rename an ethernet interface from the command
line using udevadm?

I've looked at the man page on that, and it's about as clear
as lead paint.

On reboot the other day, my persistent netdev rules didn't run for some reason,
likely some new 'gotcha' in disabling old boot procedures.

Rather than doing what I did which was to make the modules
in question dynamically loadable, and bring up the system
by hand and load the modules in the order I wanted them loaded, I'
figured it would be easier to ask on here how one does this?

If they are already installed, do I need to do a udevadm control?

Or do I need a udevadm action to emulate what is going on
in the 70-persistent-net.rules?

These all look like 'add', so aren't there old names that need to
be moved out of the way? or does adding these at "new name"
automatically deleted them at "old name"?

Thanks...

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:26:b9:2c:a4:f1", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth3"

# PCI device 0x8086:0x105e (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:15:17:bf:be:b2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x105e (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:15:17:bf:be:b3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x14e4:0x1639 (bnx2) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:26:b9:2c:a4:ef", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth2";

# PCI device 0x8086:0x1528 (ixgbe) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="a0:36:9f:15:c9:c0", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth_s2_0"

# PCI device 0x8086:0x1528 (ixgbe) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="a0:36:9f:15:c9:c2", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth_s2_1"
~
~
~
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups