Juniper Zero Touch Configuration (ZTP) Part 2 - Nginx Server Setup

Posted September 12, 2017 by Matthew McGeehan

In order for ZTP to work, a file repository will need to be created. The repository will store network device configuration files and installation media. Depending on your personal preference these files can be hosted on an FTP, TFTP, or Web server. For my test, I setup an instance of Nginx on a Linux box running CentOS7.

Nginx install steps:

  1. Add the EPEL repository
    • sudo yum install epel-release
  2. Next run the following command to install Nginx
    • sudo yum install nginx
  3. Set Nginx to start on system boot
    • sudo systemctl enable nginx
  4. Start the Nginx service
    • sudo systemctl start nginx

After the install has completed go to http://serverip. If all goes well, you should see the following page appear.

nginx

Now that the HTTP server is running, let's upload some example network configuration files. For my test, I uploaded files to the default Nginx directory and restarted the nginx service.

[root@localhost ~]# ls /usr/share/nginx/html/
index  leaf.config  nginx-logo.png  poweredby.png  spine.config  TEST.config

In part 3, I will walk through how to setup a DHCP server to work with ZTP.