Re:Change your MAC address with a shell script (2019)
by datasmurf on Monday February 08, 2021 @06:07AM
(#26063063)
Why so much trouble?
ifconfig(8)[0]
"The link-level ("link") address is specified as a series of
colon-separated hex digits. This can be used to, for example,
set a new MAC address on an Ethernet interface, though the mecha-
nism used is not Ethernet specific. Use the ("random") keyword
to set a randomly generated MAC address. A randomly-generated
MAC address might be the same as one already in use in the net-
work. Such duplications are extremely unlikely. If the inter-
face is already up when this option is used, it will be briefly
brought down and then brought back up again in order to ensure
that the receive filter in the underlying Ethernet hardware is
properly reprogrammed."
ifconfig(8)[0]
"The link-level ("link") address is specified as a series of colon-separated hex digits. This can be used to, for example, set a new MAC address on an Ethernet interface, though the mecha- nism used is not Ethernet specific. Use the ("random") keyword to set a randomly generated MAC address. A randomly-generated MAC address might be the same as one already in use in the net- work. Such duplications are extremely unlikely. If the inter- face is already up when this option is used, it will be briefly brought down and then brought back up again in order to ensure that the receive filter in the underlying Ethernet hardware is properly reprogrammed."
[0] https://www.freebsd.org/cgi/man.cgi?query=ifconfig&manpath=F...