Zero Touch Provisioning

Zero Touch Provisioning

ZTP process is well explained in the Data Center Swithing cource (DCX) – read about it there if you can find this material. Especially the lab module for ZTP.
Also there is fine free ZTP Day One book.

The core part of ZTP process is the configuration of DHCP server, that looks something like this:

set vendor-string = option vendor-class-identifier;
option space ZTPDEMO;
option ZTPDEMO.image-file-name code 0 = text;
option ZTPDEMO.config-file-name code 1 = text;
option ZTPDEMO.image-file-type code 2 = text;
option ZTPDEMO.transfer-mode code 3 = text;
option ZTPDEMO-encapsulation code 43 = encapsulate ZTPDEMO;
option ZTPDEMO.image-file-type “symlink”;
option option-150 code 150 = ip-address;

host CAN1 {
    hardware ethernet 78:fe:3d:e4:01:bf;
    option host-name “CAN1”;
    option vendor-class-identifier “Juniper-ex2200-c-12p-2g”;
    option option-150;
    option ZTPDEMO.transfer-mode “http”;
    option ZTPDEMO.config-file-name “CAN1.config;
    option ZTPDEMO.image-file-name “jinstall-ex-2200-12.3R9.4-domestic-signed.tgz;

subnet netmask {
    option domain-name-servers;
    option routers;
    default-lease-time 600;
    max-lease-time 7200;
    option ZTPDEMO.transfer-mode “http”;
    pool {
        range dynamic-bootp;
        option OPTION-150;
        option P61.config-file-name “default-ex2200-c-12p.config;

Don’t worry, I doubt that we are expected to memorize all this crazy stuff just to perform ZTP.
I think it just required to have an idea about roles of this DHCP options and be able to edit /etc/dhcpd.conf file on DHCP server.
Also don’t forget to check the status of DHCP server:

sudo service dhcpd status

and restart it after you made changes to /etc/dhcpd.conf file:

sudo service dhcpd restart

And the most important thing on this topic: ensure you have the most useful skill with vi text editor – know how to exit from it 🙂

4 thoughts on “Zero Touch Provisioning

  1. Hello Alex,

    what about if my DHCP server is a juniper EX?
    I’m using the Juniper EX to provide POAP (cisco’s verson of ZTP) to my Cisco Nexus Switches. with this simple config

    set system services dhcp pool router
    set system services dhcp pool boot-file
    set system services dhcp pool option 150 array ip-address

    how would i configure my EX switch to support ZTP for juniper QFX ?

Leave a Reply

Your email address will not be published. Required fields are marked *