Re: NIC identification with PXE?

Felix Möller <[email protected]>
Newsgroups gmane.network.etherboot.devel
Message-ID <[email protected]>
Hi,
> We use PXE and Etherboot to install FreeBSD 4 systems.  Until recently
> all of these systems used Intel EtherExpressPro1000 82540EM NICs so all
> that was necessary was to have the DHCP server reply with the
> "e1000.zpxe" file.
> 
> Now systems that use Broadcom Tigon 3 5721 NICs are being introduced
> which require the "tg3.zpxe" file.
> 
> Is there a mechanism by which the DHCP server can automatically
> determine the model of NIC that is being used so that it can reply with
> the matching file?  We use a custom DHCP server which can be modified if
> necessary.
I use the following in my setup to distinguish between different nics.
if substring (hardware, 1, 3) = 00:06:29 {
   option pxelinux.configfile "pxelinux.cfg/netvista2800";
}
if substring (hardware, 1, 3) = 00:30:05 {
   option pxelinux.configfile "pxelinux.cfg/scoveryxs";
}

You just have to find out the different beginnings of the MAC-address.

HTH
Felix Möller



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.