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.

  1. Use the configure terminal command to enter global configuration mode.
    device# configure terminal
  2. Enable the DHCP server.
    device(config)# ip dhcp-server enable
  3. Create a DHCP server address pool.
    device(config)# ip dhcp-server pool GenericOption
  4. 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
    
  5. Use the option command 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.
    device(config-dhcp-GenericOption)# option 67 ascii “fi8080_manifest.txt router primary”
    

    In this example, boot image fi8080_manifest.txt, router as the image type, and flash image as primary is configured to be used by the DHCP client.

    Note: The configuration of the image type and flash location for option 67 is case insensitive.
  6. Use the deploy command to activate the DHCP server address pool.
    device(config-dhcp-GenericOption)# deploy
    

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