Reference Guide

Bare Metal Provisioning 2.0 | 211
MAC-Based IP assignment
One way to use the BMP mode most efficiently is to configure the DHCP server to assign a fixed IP
address, FTOS image, and configuration file based on the switch’s MAC address. When this is done, the
same IP address is assigned to the switch even on repetitive reloads and the same configuration file will be
retrieved when using the DNS server or the network-config file to determine the hostname.
The assigned IP address is only used to retrieve the files from the file server. It is discarded after the files
are retrieved.
Following is an example of a configuration of the DHCP server included on the most popular Linux
distributions. The dhcpd.conf file shows assignment of a fixed IP address and configuration file based on
the MAC address of the switch.
Class-Based Configuration
By matching a part of the string from the vendor class identifier (option 60) string, the image,
configuration file, or the script file can be sent in the DHCP offer.
Parameter Example Description
option boot-filename code 67 = text;
option tftp-server-address code 150 = ip-address;
option config-file code 209 = text;
subnet 10.20.30.0 netmask 255.255.255.0 {
option domain-name-servers 20.30.40.1, 20.30.40.2;
host S4810-1 {
hardware ethernet 00:01:e8:8c:4d:0e;
fixed-address 10.20.30.41;
option boot-filename "tftp://10.20.4.1/FTOS-SE-8.3.10.1.bin";
option config-file "http://10.20.4.1/S4810-1.conf";
}
BMP 2.0 Syntax
MAC to IP mapping
FTOS image
Config file
host S4810-2 {
hardware ethernet 00:01:e8:8c:4c:04;
fixed-address 10.20.30.42;
option tftp-server-address 10.20.4.1;
filename "FTOS-SE-8.3.10.1.bin";
option config-file "S4810-2.conf";
}
BMP1.0 syntax
MAC to IP mapping
FTOS image
Config file