ZTP process during switch boot

  1. The switch boots up with the factory default configuration.

    If the ZTP operation detects that the switch configuration is different from the factory default configuration, the ZTP operation ends. The switch must be configured at the installation site.

  2. The switch sends out a DHCP discovery through the OOBM management port.

    The switch attempts the ZTP operation for the first 10 minutes after boot. If the switch does not receive DHCP options from the DHCP server during that time, the ZTP operation ends.

    After the ZTP operation ends, there is no automatic retry. You can either attempt to boot the switch with the factory default configuration again, or you can configure the switch at the installation site.

  3. The DHCP server responds with an offer containing the following:

    • The IPv4 address of the TFTP server

    • One or both of the following:

      • The name of the firmware image file

      • The name of the configuration file

  4. If a firmware image file is offered, the ZTP operation downloads the image file from the TFTP server to the switch. If the current switch image and downloaded firmware image version do not match, then the switch boots with the downloaded image:

    • If the image upgrade fails, the switch retains its original firmware image and the ZTP operation ends with a failed status.

    • If the image upgrade succeeds, the ZTP operation is started again after the switch reboots. Because the downloaded image file matches the image file installed on the switch, the ZTP operation continues, and checks if a configuration file is offered.

  5. If a configuration file is offered, the ZTP operation downloads the configuration file copies the file to the startup configuration of the switch:

    • If the startup configuration update fails, the switch retains its factory-default running configuration and the ZTP operation ends with a failed status.

    • If the startup configuration update is successful, the startup configuration is copied to the running configuration:

      • If the copy operation fails, the ZTP operation ends with a failed status.

      • If the copy operation succeeds, the ZTP operation ends successfully.