Posted on July 5, 2016 2:15 pm
 |  Asked by Alessandro Carpi
 |  2117 views
Tags:
0
0
Print Friendly, PDF & Email

I am using ISC-DHCP server, and currently serving the ZTP script using TFTP.  I would like to serve the ZTP script using HTTP instead.  What are the proper DCHP options needed to set this up correctly?

Thank you!

0
Posted by Jeremy Georges
Answered on July 5, 2016 2:53 pm

Alessandro,

You need to use the bootfile-name option. Note the config snippet below. So we’re only sending this boot option to Arista switches, you can create a class and match on the vendor-class-identifier. Then we have a pool for Arista switches (matching on the class Arista) and another pool for other devices which we do not provide the bootfile-name/option 67.

 

 

class "ARISTA" {
 match if substring(option vendor-class-identifier, 0, 6) = "Arista";
 option bootfile-name "http://192.168.100.1:8080/ztp.py";
}

subnet 192.168.100.0 netmask 255.255.255.0 {

 option routers 192.168.100.1;
 option subnet-mask 255.255.255.0;
 option broadcast-address 192.168.100.255;
 default-lease-time 86400;
 max-lease-time 86400;
 option domain-name-servers 4.2.2.2;
 pool {
 range 192.168.100.2 192.168.100.20;
 allow members of "ARISTA";
 }
 pool {
 range 192.168.100.21 192.168.100.30;
 }

}

Post your Answer

You must be logged in to post an answer.