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.

  1. 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 bootfile-name keyword, specifying a file name, and the flash image location to configure option 67 with the flash image location.
    device(config-dhcp-GenericOption)# option bootfile-name ascii “fi8080_manifest.txt primary”
    

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

    Note: The configuration of the flash location for option 67 is case insensitive.

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”