From: Beltz, Johnathan F DA CIV USA ATC <johnathan.beltz@us...> - 2008-03-03 22:12:37
Thanks to Dave Hylands on the speedy response on my last question. Has
anyone encountered a problem with the same MAC address being used on
different NICs? I have two of the MMCnetDuo cards on my desk, and the same
MAC Address is used for eth0 on both cards, and ditto that for the eth1
Thanks in advance,
Beltz, Johnathan F DA CIV USA ATC wrote:
> anyone encountered a problem with the same MAC address being used on
> different NICs?
I had this problem while trying to boot multiple boards over
the same ethernet network with the "dhcp" command of u-boot.
IIRC this is how I solved it:
--- build_arm_nofpu/u-boot-1.1.4/include/configs/gumstix.h.orig 2007-01-24 00:11:43.000000000 +0100
+++ build_arm_nofpu/u-boot-1.1.4/include/configs/gumstix.h 2007-01-24 03:22:27.000000000 +0100
@@ -142,6 +142,7 @@
#define CONFIG_NET_RETRY_COUNT 10 /* # of retries */
#define CONFIG_ETHPRIME "SMC91C1111-0"
#define CONFIG_ETHADDR 00:0A:95:A5:47:3A
+#define CONFIG_OVERWRITE_ETHADDR_ONCE 1
* CF slot
> Alternatively, if you #define _both_ CONFIG_ETHADDR
> _and_ CONFIG_OVERWRITE_ETHADDR_ONCE, a default
> ethernet address is installed in the environment,
> which can be changed exactly ONCE by the user.
I.e. this allows you to manually set a non-default, persistent
ethaddr in the u-boot command-line.
There have been discussions on this list suggesting that MAC
addresses are now randomized automatically (at least after
Linux starts), so I am not sure whether this is still relevant.