How to change MAC address on RPI-B?

John W. Kitz John.Kitz at xs4all.nl
Sat Nov 12 15:46:30 UTC 2016


Reiner,

> "How-To-Repeat: /etc/rc.conf

> ifconfig_re0="inet 192.168.0.2/24"
> ifconfig_re0_alias0="ether 00:02:1a:2b:3c:4d"

That's another way you can set the MAC in /etc/rc.conf

> Did you try this command-by-command through the CLI and have the 
> output of that?

Yes, but I can't use alias or add parameter with the ether, lladdr or link
options.

JKi: As per the man-pages of ifconfig ether, lladdr and link may be used
interchangeably and are all interpreted to mean one and the same thing.

Than it says: ifconfig: ether: bad value.

JKi: That was exactly what I tried to convey in my previous email. As per
the man pages of ifconfig 'alias' and '-alias' are intended to respectively
add and remove a, what in Cisco terminology is referred to as a, secondary
IP address to or from an interface. Since both 'ether' and the notation of
the address in "ifconfig_re0_alias0="ether 00:02:1a:2b:3c:4d" pertain to a
MAC address this is behavior that one IMHO would expect as per the
man-pages, assuming 'alias' in 'ifconfig_re0_alias0' is interpreted as a
command parameter rather than as a mere label.

My hands-on experience in the area of UNIX is limited and dated, so these
were my 5 cents worth of suggestions.

Sorry I can't help you any further at this time.

Regards, Jk.



More information about the freebsd-arm mailing list