Port-sparc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Duplicated MACs [was Re: Include DaynaPort by default in GENERIC?]
> deimos# ifconfig -a
> [le0, qe0, qe1, qe2, qe3, hme0, be0 all showing 08:00:20:00:de:ad]
> Why are all the interfaces stuck to the same MAC address?
It is a comparatively little-known aspect of the relevant specs that
MAC addresses do not have to be unique to any finer than per-machine
granularity (but are allowed to be unique per-interface). Suns
normally keep their MAC in the PROM, with all Ethernets ultimately all
picking the host's MAC up from the same place, leading to them all
using the same MAC.
> Could that be due to the local-mac-address value in the PROM ?
Depends on the OS. 1.4T, which is what I'm running on all my SPARCs,
ignores local-mac-address? as far as I can see. I did add a kernel
build option HOSTID_EA which generates locally-administered MACs based
on the hostid for the second and later (in attach order) interfaces
#ifdef HOSTID_EA
{ static int count = 0;
if (count++ != 0)
{ cp[0] = 2;
cp[1] = count >> 8;
cp[2] = count & 0xff;
cp[3] = (hostid >> 16) & 0xff;
cp[4] = (hostid >> 8) & 0xff;
cp[5] = hostid & 0xff;
return;
}
}
#endif
but I forget why I wanted it.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index