HP switches are initially booted up with the factory-shipped configuration file. This feature provides a way to automatically download a different configuration file from a TFTP server using DHCP Option 66. The prerequisites for this to function correctly are:
|
|
CAUTION: This feature must use configuration files generated on the switch to function correctly. If you use configuration files that were not generated on the switch and then enable this feature, the switch may reboot continuously. |
|
|
DHCP Options 66/67 allows an option to include an IP address of a TFTP Server (Option 66) and the name of a configuration file (Option 67) in a DHCP ACK packet. After the switch has completed the DHCP transaction on the Primary VLAN, the two options will cause the switch to download the configuration file from the TFTP server. After the configuration file has been successfully downloaded, the switch compares the contents of the new configuration file with the existing configuration file. If the contents are different, then the existing configuration file is replaced with the new file and the switch initiates a reboot.
To enable the configuration update using Option 66 use the following command:
Syntax
The following table shows various network configurations and how Option 66 is handled.
Scenario | Behavior |
---|---|
Single Server serving Multiple VLANs |
|
Multiple Servers serving a Single VLAN |
|
Multiple Servers serving Multiple VLANs |
|
Multi-homed Server serving Multiple VLANs |
|
Replacing the existing configuration file: After the DHCP client downloads the configuration file, the switch compares the contents of that file with the existing configuration file. If the content is different, the new configuration file replaces the existing file and the switch reboots.
Option 67 and the configuration file name: Option 67 includes the name of the configuration file. If the DHCPACK contains this option, it overrides the default name for the configuration file (switch.cfg)
Global DHCP parameters: Global parameters are processed only if received on the primary VLAN.
Best Offer: The "Best Offer" is the best DHCP or BootP offer sent by the DHCP server in response to the DHCPREQUEST sent by the switch. The criteria for selecting the "Best Offer" are: