NAMEIF(8)

πŸ“¦
version 2.10 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian bookworm, debian trixie, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAMEIF(8) β€” nameif manual πŸ’–

✨ NAME ✨

nameif β€” name network interfaces based on MAC addresses πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

nameif [-c configfile] [-s]
nameif [-c configfile] [-s] {interface macaddress}

🌸 DESCRIPTION 🌸

okay so nameif is literally the bestie that renames your network interfaces based on their MAC addresses πŸ’… no cap. When you don't give it any arguments, it goes and reads /etc/mactab πŸ“–. Each line in there holds an interface name and an Ethernet MAC address. Comments are allowed, you just start them with # πŸ™ˆ.

If you do pass arguments, it skips the file and processes the interfaces you typed on the command line instead. nameif hunts down the interface with the given MAC address and renames it to whatever name you gave it 🧚. Iconic.

When you add the -s argument, all error messages get sent to the syslog πŸ“œ. Lowkey the move if you want a paper trail πŸ’€.

When you add the -c argument with a file name, it reads that file instead of /etc/mactab 🫢.

πŸ¦‹ OPTIONS πŸ¦‹

  • -c configfile β€” use this config file instead of /etc/mactab πŸ’œ
  • -s β€” send all error messages to the syslog πŸ”₯

πŸ“ NOTES πŸ“

⚠️ bestie, nameif should be run before the interface is up, otherwise it'll fail 😭

πŸ“ FILES πŸ“

  • /etc/mactab

πŸ› BUGS πŸ›

πŸ’€ it only works for Ethernet currently, so no other interface types for now πŸ™ˆ

net-tools Β· 2008-10-03 Β· NAMEIF(8) πŸ’œ that's a wrap, bestie! Stay iconic and keep those interfaces named right 🌈✨