Configuring DHCP Auto-Provisioning Enhancements
The flash image (primary or secondary) and the file name to be used by the DHCP client can be configured as part of option 67 using one command. The following task configures the “fi8080_manifest.txt” boot image, and the flash image as primary as part of option 67.
- Enter global configuration mode.
- Enable the DHCP server.
- Create a DHCP server address pool.
- Configure the DHCP server address pool.
device(config-dhcp-GenericOption)# dhcp-default-router 10.10.70.1 device(config-dhcp-GenericOption)# network 10.10.70.0 255.255.254.0 device(config-dhcp-GenericOption)# lease 1 0 0 device(config-dhcp-GenericOption)# dns-server 10.10.64.1 8.8.8.8 device(config-dhcp-GenericOption)# domain-name office.s-cloud.net
- Use the
optioncommand with the bootfile-name keyword, specifying a file name, and the flash image location to configure option 67 with the flash image location.
The following example configures the “fi8080_manifest.txt” boot image and flash image as primary as part of option 67 using one command.
device# configure terminal device(config)# ip dhcp-server enable device(config)# ip dhcp-server pool GenericOption device(config-dhcp-GenericOption)# dhcp-default-router 10.10.70.1 device(config-dhcp-GenericOption)# network 10.10.70.0 255.255.254.0 device(config-dhcp-GenericOption)# lease 1 0 0 device(config-dhcp-GenericOption)# dns-server 10.10.64.1 8.8.8.8 device(config-dhcp-GenericOption)# domain-name office.s-cloud.net device(config-dhcp-GenericOption)# option bootfile-name ascii “fi8080_manifest.txt primary”