In this article we will see how you can use Windows OS to perform ZTP on Juniper devices. There was a previous article, Zero Touch Provisioning on Juniper devices using Linux, where we saw how ZTP works when Linux is used.
The principle of ZTP is the same one: the network device with no configuration gets an IP address from the DHCP server and few options are pushed from the DHCP server with the help of which the device will upgrade its software and install a predefined configuration.
Using Linux is very easy to use suboptions of option43. But it’s not that easy on Windows. We need suboptions to specify the image file, the config file, the transfer mode.
And this is what we are going to see here. How you can make use of suboptions on Windows.
Let’s recap what we know about options 43 and its suboptions:
Suboption 00: image filename
Suboption 01: config filename
Suboption 03: transfer mode
We will use a tool to convert the image and config filenames and the transfer mode into something that is understood by the DHCP server where option43 will be configured.
So this is our network:
Once the device is zeroized, it will get the IP address:
To add the option43, we need the tool that will convert the suboptions into something that the DHCP server can work with.
The tool is opt43builder and it’s available on multiple platforms.
We will run the tool like this on Windows:
The output is the following one:
And we need to take the output for the section “Hex (Spaces)”:
Hex (Spaces): 00 35 6a 69 6e 73 74 61 6c 6c 2d 71 66 78 2d 35 2d 66 6c 65 78 2d 31 34 2e 31 58 35 33 2d 44 32 35 2e 32 2d 64 6f 6d 65 73 74 69 63 2d 73 69 67 6e 65 64 2e 74 67 7a 01 07 51 46 58 35 31 30 30 03 03 66 74 70
This output will be used to configure option43 on the DHCP server.
Select option43 from the list of available options and then insert the string generated.
Unfortunately, there is no way to do copy-paste, so you need to be careful when you insert the string. The smallest mistake might cause the device that is under ZTP to be attempted to be upgraded to an unexisting software for instance.
You should have the following options:
Once these options are configured, the device will get upgraded and configured as you need.
I hope you found this article useful and now you can perform ZTP using Windows servers as well.
Latest posts by Paris ARAU (see all)
- Junos Fusion – Part IV – Satellite policies and uplink failure detection - 30 July 2018
- Junos Fusion – Part III – Satellite commands and traffic forwarding - 16 July 2018
- Junos Fusion – Part II – Configuration, Administration and Operation - 16 July 2018
- Junos Fusion – Part I – Overview, Components, Ports and Software - 11 July 2018
- Vagrant – Part IV – Network topology using Juniper and Cumulus - 26 April 2018