Last active
August 27, 2021 14:15
-
-
Save 33Fraise33/709d2535cf5199cf4f02326ae402f778 to your computer and use it in GitHub Desktop.
Juniper ZTP ISC DHCP Config for EX Series Switches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dhcpd.conf | |
default-lease-time 600; | |
max-lease-time 7200; | |
option domain-name-servers 1.1.1.1; | |
option option-150 code 150 = ip-address; | |
option space juniper; | |
option juniper.image-file-name code 0 = text; | |
option juniper.config-file-name code 1 = text; | |
option juniper.image-file-type code 2 = text; | |
option juniper.transfer-mode code 3 = text; | |
option juniper.alt-image-file-name code 4 = text; | |
option juniper.http-port code 5 = text; | |
option juniper-encapsulation code 43 = encapsulate juniper; | |
class "ex3400-ex2300" { | |
match if ( | |
(option vendor-class-identifier ~~ ".*ex3400.*") | |
or | |
(option vendor-class-identifier ~~ ".*ex2300.*") | |
); | |
option option-150 10.200.0.252; | |
option juniper.image-file-name "juniper/{{ ex2300_firmware }}"; | |
option juniper.image-file-type "symlink"; | |
option juniper.http-port "8080"; | |
option juniper.transfer-mode "http"; | |
option juniper.config-file-name "juniper/juniper.conf"; | |
} | |
subnet 10.210.0.0 netmask 255.255.255.0 { | |
authoritative; | |
option routers 10.210.0.1; | |
pool { | |
allow members of "ex3400-ex2300"; | |
range 10.210.0.50 10.210.0.99; | |
} | |
pool { | |
allow unknown-clients; | |
range 10.210.0.2 10.210.0.49; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The regex is needed as between version
18.2R3-S4.1
and20.4R2-S1.6
the vendor-class-identifier changed fromJuniper-ex3400-24t-...
toJuniper:ex3400-24t:....