Configure DHCP-based ZTP fresh boot for Cisco NCS 1010 when the device has no prior configuration. The workflow uses DHCP to locate provisioning data, downloads it from the web server, and applies the configuration or script.
Use this supertask to provision Cisco NCS 1010 automatically during a fresh boot using DHCP-based classic ZTP.
ZTP initiates when you boot the network device with an IOS XR image. The process starts only on a device that does not have a prior configuration.
The high-level workflow uses DHCP to identify the device, obtain the URL for a configuration file or user script, download the file from a web server, and apply the provisioning data.
Before you begin
-
Ensure that the Cisco NCS 1010 device has no prior configuration.
-
Ensure that the DHCP server can identify the device and return the configuration file or script location.
-
Ensure that the web server hosts the configuration file, script file, or binary referenced in the DHCP response.
Follow these steps to provision Cisco NCS 1010 using DHCP-based ZTP fresh boot.
Procedure
| 1. | Create the configuration file or script file that the HTTP server provides to the device. The device receives a configuration file or script file from the HTTP server during ZTP.
For configuration file requirements, see Configuration file requirements. For ZTP script configuration, see Configure a ZTP bootscript. |
|
| 2. | Configure the DHCP server to identify the device and return the provisioning file location. The DHCP server identifies the device and responds with one of the following options:
The DHCP response provides the URL location that the network device uses to download the file from the web server. For details about DHCP server options, see DHCP server setup for ZTP. |
|
| 3. | Customize the ZTP DHCP request sequence if the default sequence does not meet the deployment requirements. The default sequential flow is defined in the configuration file, and you can modify the sequence using the configuration file.
For details about configurable ZTP options, see ZTP initialization file options. |
|
| 4. | Boot the unconfigured device with the IOS XR image. ZTP starts automatically only when the network device does not have a prior configuration. The device starts the ZTP fresh boot workflow. |
|
| 5. | Verify that ZTP sends DHCP requests and receives the DHCP response. To help the bootstrap server uniquely identify the device, ZTP sends the following DHCP options:
For details about the DHCP client, see DHCP client. |
|
| 6. | Verify that the device downloads the provisioning file from the web server. The network device downloads the file from the web server using the URL location provided in the DHCP response. |
|
| 7. | Verify that the device applies the configuration file or executes the script or binary in the default bash shell. If you need to run ZTP manually after the initial boot, see Invoke ZTP manually through CLI or Invoke ZTP through reload. |
|
| 8. | Verify that the network device is up and running after ZTP completes. For ZTP log details, see ZTP logs. For troubleshooting data collection, see Generate tech support information for ZTP. The network device is up and running. |
Cisco NCS 1010 completes DHCP-based ZTP fresh boot and applies the downloaded configuration file or script.