79703911

Date: 2025-07-16 19:06:41
Score: 2
Natty:
Report link

The best I have been able to come up with is
ifconfig eth2 down && udevadm trigger -s net -a address="68:f7:28:1b:31:b5" -c add && systemctl restart NetworkManager.service

That will work if the interface name is currently eth2 and you have a rule like

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:f7:28:1b:31:b5", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth3"

So you get a interface named eth3 and NetworkManager is running.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Francis Larson