[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assigning a LAA MAC address



I want to assign a Locally Administered Address to a 167MHz u1e's onboard
ethernet adapter. As defined in Section 3.2.3(4) of the IEEE 802.3
specification, the hexadecimal 08 is replaced by 0A in the MAC address'
preceeding bit. Sun's universal assignment convention is 08:00:20:xx:xx:xx.
Observe:

% ifconfig hme0
hme0: flags=8063<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
	address: 08:00:20:79:55:61
	media: Ethernet autoselect (10baseT)
	status: active
	inet6 fe80::a00:20ff:fe79:5561%hme0 prefixlen 64 scopeid 0x1
	inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.1
% ifconfig hme1
hme1: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
	address: 08:00:20:79:55:61
	media: Ethernet autoselect

% sudo ifconfig hme0 address 0a:00:20:a8:00:01
Password:
ifconfig: address: bad value

Is OpenBSD's `ifconfig` just being finicky about LAA assignments, or is there
issues with altering MAC addresses from the OS level likewise for others? This
works in Solaris and Darwin using `ifconfig ether $address`, fwiw.

Thanks.
--
Cormac J. Mannion, Quasi-Samurai
"Some people are intelligent in knowing themselves but stupid in knowing their
opponents, and others the other way round; neither kind can solve the problem
of learning and applying the laws of war." - Mao Tse-tung

[demime 0.98d removed an attachment of type application/pgp-signature]