bk99.de entertain the web since 1997

Renaming a Linux network interface immediately

Summary

Manuel Schmitt notes down a short ip command that renames a network interface without triggering udev again. The documented command is ip link set OLDNAME name NEWNAME. Manuel explicitly calls the entry a reminder to himself.

Ideas

  • ip link can change the visible interface name directly on the running system.
  • For this case, an immediate change saves running udevadm control and udevadm trigger.
  • The command separates a runtime correction from the permanent naming rule.

Insights

  • Short operational notes prevent rare commands from having to be researched every time.
  • A successful runtime change is not yet a persistent configuration.

Recommendations

  • Check dependent firewall, bridge and monitoring rules before renaming.
  • Also store the desired name in the permanent network configuration.

References

Read the original article on Hostblogger

Search the Web Archive