Understanding ZTP
ZTP makes it easier for the network operators to deploy and manage the network. The field technician need not login into each router during its deployment to configure the router as it is automatically configured.
ZTP Client on 42XX platform (XE Device)
ZTP client runs on the 42XX platform and ZTP is configured on NCS 4000. In this case, the ZTP client uses the TFTP server to download and apply an initial ZTP configuration.
ZTP Client on NCS 540
ZTP client runs on NCS 540 and ZTP is configured on NCS 4000. In this case, the ZTP client uses the HTTP server to perform the following tasks:
-
Download and apply an initial configuration—If the downloaded file content starts with !! IOS XR it is considered as a configuration file, and ZTP performs apply_config action on the configuration file.
-
Download and execute a shell script—If the downloaded file content starts with #! /bin/bash, #! /bin/sh or #!/usr/bin/python it is considered as a script file, and ZTP executes the script.
Prerequisites
-
The connection between the DHCP server, TFTP (for 42XX platform) or HTTP server (for NCS 540), and the router must be established.
-
The TFTP or HTTP server must have the required ZTP configuration file and must be accessible to the router.
-
(ZTP on NCS 540) Ensure that the ncs4k-k9sec.pkg and ncs4k-mgbl.pkg packages are installed on NCS 4000.
-
(ZTP on NCS 540) Ensure that the host name is not configured on NCS 540.
Restriction
ZTP is supported only on the data port and not on the management port.
Limitation of ZTP on NCS 540
ZTP client does not run on NCS 540 when the DHCP sever is configured on a VLAN other than the default VLAN.