RANDMAC(1)
π¦ 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 π§-ooui_addr,--ouioui_addr β set the Organizationally Unique Identifier (OUI) yourself, queen π-vvendor,--vendorvendor β 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
- debian trixie: randmac 0.2-1 Β· GPL-2.0-or-later
- ubuntu noble: randmac 0.2-1 Β· GPL-2.0-or-later
- ubuntu questing: randmac 0.2-1
- ubuntu resolute: randmac 0.2-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: randmac 0.2-1build1 Β· GPL-2.0-or-later
- Copyright (C) 2019 VirtualSquare. Project Leader: Renzo Davoli
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms