Configuring DHCP Auto-Provisioning Enhancements
The application image type (router or switch), the flash image (primary or secondary), and the file name to be used by the DHCP client can all be configured as part of option 67 using one command. The following task configures the “fi8080_manifest.txt” boot image, router as the image type, and the flash image as primary as part of option 67.
- Use the
configure terminalcommand to 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 67 option, specifying a file name, the flash image location, and the image type, to configure option 67 with both the image type and flash image location. - Use the
deploycommand to activate the DHCP server address pool.
The following example configures the “fi8080_manifest.txt” boot image, router as the image type, 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 67 ascii “fi8080_manifest.txt router primary” device(config-dhcp-GenericOption)# deploy