Stephen Hemminger wrote:Random mac addresses, yuk! :-) I'd much rather have something that I can make "do the right thing" than something I can't. And as I said, what I've encountered many times is a reference board from some manufacturer where the following conditions are present: 1. The bootloader can pass a command line to the kernel and it is saved in non-volatile storage that can be changed from the bootloader 2. I can not modify the bootloader 3. I can modify the Linux kernel 4. The manufacturer has hardcoded a MAC address in the ethernet driver 5. I want to use NFS root to make it easy to develop on the platform 6. We get a second board so the hardcoded MAC addresses collide In this situation I usually hack a hwaddr module param into the ethernet driver, so that I can actually make the devices have different, but stable, MAC addresses. The alternatives are to hardcode the MAC address into the kernel and run different kernels on different boards, or to create an initrd with a tools that parses the kernel command line to extract the MAC address and then do ifconfig eth0 hwaddr $HWADDR, and then add a DCHP client which gets the NFS root from the DCHP response and finally mounts the NFS root and switches too it. But I'm lazy so as I said usually just hack the driver. /Christer -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Srivatsa Vaddagiri | containers (was Re: -mm merge plans for 2.6.23) |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Benjamin Herrenschmidt | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
git: | |
| Jarek Poplawski | [PATCH take 2] pkt_sched: Protect gen estimators under est_lock. |
| David Miller | [GIT]: Networking |
| Gerhard Pircher | 3c59x: shared interrupt problem |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
