RANDMAC(1)

πŸ“¦
version 0.2 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ¦‹ randmac β€” the manual, but make it cute ✨

okay bestie, so this is the randmac page from the General Commands Manual πŸ’– she's a little utility, she's lowkey iconic, and she's about to hand you a random MAC address like it's a friendship bracelet. let's go πŸŽ€


🌸 NAME 🌸

randmac β€” generate random MAC addresses ✨


🫢 SYNOPSIS 🫢

randmac [options]

πŸ’… DESCRIPTION πŸ’…

So basically randmac prints a random MAC address. that's it. that's the whole job. and honestly? she ate. πŸ’€βœ¨

the way this utility was designed though β€” it's specifically for handing random MAC addresses to the interfaces of virtual machines. like, that's her whole purpose in life. main character energy fr fr. πŸ‘‘


🌈 OPTIONS 🌈

  • -l, --local β€” generate a local administered MAC πŸ“
  • -g, --global β€” generate a global unique MAC πŸ’™
  • -u, --unicast β€” generate a MAC for unicast πŸ“¬
  • -m, --multicast β€” generate a MAC for multicast πŸ“’
  • -U, --uppercase β€” print the hex digits in UPPERCASE πŸ” 
  • -e, --eui64 β€” generate an EUI64 address 🧚
  • -o oui_addr, --oui oui_addr β€” set the Organizationally Unique Identifier (OUI) yourself, queen πŸ‘‘
  • -v vendor, --vendor vendor β€” set the OUI of a specific vendor 🏷️
  • -q, --qemu β€” set the standard OUI of qemu/kvm πŸ–₯️
  • -x, --xen β€” set the standard OUI of xen 🦎
  • -h, --help β€” display a short help message and exit, no cap πŸ“–

⭐ EXAMPLE ⭐

okay so imagine you wanna start a kvm VM using a random generated MAC address (while preserving the standard qemu's OUI, obviously πŸ’…). it's giving:

$ qemu-system-x86_64 -accel kvm ... \
  -device e1000,netdev=vde0,mac=`randmac -q` \
  -netdev vde,id=vde0,sock=vde://

literally so clean. obsessed. 🫢


πŸ”₯ SEE ALSO πŸ”₯


πŸ’œ AUTHOR πŸ’œ

VirtualSquare. Project leader: Renzo Davoli. ✨


VirtualSquare Β· December 2022 πŸŽ€

k that's the whole page bestie, go forth and randomize those MACs πŸ’–πŸ¦‹ no cap, periodt ✨

πŸ“¦ where this page comes from