cisco Catalyst 9500X Series — DHCP Server Configuration for Zero-Touch Provisioning

ZTP is supported through data ports on all supported platforms; however, on Cisco Catalyst 9500X Series Switches it is not supported through data ports. Guest Shell provides the environment for the Python script to run. Guest Shell runs the downloaded Python script and applies an initial configuration to the device. After initial provisioning is complete, Guest Shell remains enabled. For more information, see the Guest Shell chapter. If ZTP fails, the device falls back on AutoInstall to load the configuration file. For more information, see Using AutoInstall and Setup .

Note DHCP Server Configuration for Zero-Touch Provisioning In ZTP, a DHCP server must be running on the same network as the new device that is being provisioned. ZTP is supported on both management ports and in-band ports. When the new device is switched on, it retrieves the IP address information of the HTTP or TFTP server where the Python script resides, and the folder path of the Python script from the DHCP server. For more information on Python Scripts, see the Python API chapter. The DHCP server responds to DHCP discovery events with the following options: • Option 150:

(Optional) Contains a list of IP addresses that point to the HTTP or TFTP server in the management network that hosts the Python scripts to be run. • Option 67: Contains the Python script file path in the HTTP/TFTP server. After receiving these DHCP options, the device connects to the HTTP or TFTP server, and downloads the Python script. At this point, because the device does not have a route to reach the HTTP or TFTP server, it uses the default route provided by the DHCP server.

DHCP Client Behavior From Cisco IOS XE Amsterdam 17.2.1 release onwards, the device product identification (PID), Cisco Network Plug and Play (PnP), the serial number, and the MAC address is set in the DHCP client options. These client options can be used as variables at the DHCP server. The DHCP client options can be used to identify the device and send a unique Python file through option 67 or boot filename. Table 1: DHCP Client Options Zero-Touch Provisioning DHCP Server Configuration for Zero-Touch Provisioning Device Information DHCPv4 DHCPv6 Product ID 124 16/toggles Serial number 61/toggles 16/toggles MAC address 61/toggles 1 Cisco Network PnP 60 15 Zero-Touch Provisioning 2