[j-nsp] SRX bootp/dhcp autoinstallation

Carsten Pettersson c at petterssons.dk
Fri Aug 25 05:01:34 EDT 2017


Hi All,

Have anyone had success with Juniper SRX autoinstallation procedure? 

The SRX does get an IP from DHCP server but not its hostname, conf filename, and default route..?

Running same procedure for EX and everything is perfect..

Any help are welcome..


root> show system autoinstallation status
Autoinstallation status:
Master state: Active
Last committed file: None
Configuration server of last committed file: None
Interface:
  Name: ge-0/0/0
  State: Address Acquisition
  Acquired:
    Address: 10.230.0.200
    Hostname: None
    Hostname source: None
    Configuration filename: None
    Configuration filename server: None
  Address acquisition:
    Protocol: DHCP Client
    Acquired address: None

inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.230.0.0/24      *[Direct/0] 00:07:04
                    > via ge-0/0/0.0
10.230.0.200/32    *[Local/0] 00:07:04
                      Local via ge-0/0/0.0
192.168.1.1/32     *[Local/0] 19:22:22
                      Reject

autoinstallation {
    delete-upon-commit; ## Deletes [system autoinstallation] upon change/commit
    traceoptions {
        level verbose;
        flag {
            all;
        }
    }
    interfaces {
        ge-0/0/0 {
            bootp;
        }
    }
}
 
DHCP server (have been playing a lot around with different configs):

1. DHCP.conf 

ddns-update-style none;
authoritative;
log-facility local7;
default-lease-time 30;
max-lease-time 60;

option option-43 code 43 = text;
option option-66 code 66 = text;


subnet 192.168.75.0 netmask 255.255.255.0 {
}

subnet 10.230.0.0 netmask 255.255.255.0 {
        range 10.230.0.100 10.230.0.200;
        option domain-name-servers 10.230.0.1;
        option routers 10.230.0.1;
        option tftp-server-name "10.230.0.1";
        boot-unknown-clients true;


host srx01 {
                hardware ethernet 0c:86:10:17:e4:c0;
                fixed-address 10.230.0.200;
                filename "router.conf";
                server-name "bigmacbuntu";
                next-server 10.230.0.1;
                option host-name "srx01";
           }
}

2. DHCP.conf

ddns-update-style interim;
ignore client-updates;
authoritative;
log-facility local7;
option space ZTP;
option ztp-server code 150 = ip-address;
option ZTP.image-file-name code 0 = text;
option ZTP.config-file-name code 1 = text;
option ZTP.image-file-type code 2 = text;
#option ZTP.image-file-type "symlink";
option ZTP.transfer-mode code 3 = text;
#option ZTP.alt,g-image-file-name code 4 = text;
option ZTP.jloader-file code 5 = text;
option ZTP-encap code 43 = encapsulate ZTP;
option domain-name “ztp.intra";
option domain-name-servers 10.230.0.103;
option classless-routes code 121 = array of unsigned integer 8;
default-lease-time 30;
max-lease-time 60;
option ztp-server 10.231.253.16;
option ZTP.subscriber-id code 6 = text;
include "/etc/dhcp/dhcpd.classes";

shared-network "clients" {
      subnet 192.168.75.0 netmask 255.255.255.0 {
  }

  subnet 10.230.0.0 netmask 255.255.255.0 {
        option broadcast-address 10.230.0.255;
        option routers 10.230.0.1;

          pool {
                  #allow members of "SRX300";
                  range 10.230.0.100 10.230.0.200;
                  option classless-routes 24, 10,231,253, 10,230,0,1,
                                          16, 192,168, 10,230,0,1;
                  option tftp-server-name "10.231.253.16";
                  option log-servers 10.231.253.16;
                  option ntp-servers 172.16.0.230;
                  option domain-name "ztp.intra";
                  option domain-name-servers 10.230.0.103;
                  option ZTP.transfer-mode "ftp";
                  option ZTP.config-file-name "/junos/srx300/config/srx300_default.conf";
                  option ZTP.image-file-name "/junos/srx300/software/junos-srxsme-15.1X49-D100.6-domestic.tgz";

          host srx01 {
      hardware ethernet 44:aa:50:4e:9c:c0;
      fixed-address 10.230.0.101;
    }
    }
  }
  subnet 10.230.12.0 netmask 255.255.255.224 {
          option broadcast-address 10.230.12.31;
          option routers 10.230.12.1;
                                                                                                                                         
          option broadcast-address 10.230.12.31;
          option routers 10.230.12.1;

          pool {
                  allow members of "ex3300-24t-clients";
                  range 10.230.12.10 10.230.12.30;
      option classless-routes 24, 10,231,253, 10,230,12,1,
                                                16, 192,168, 10,230,12,1;
                  option tftp-server-name "10.231.253.16";
                  option log-servers 10.231.253.16;
                  option ntp-servers 172.16.0.230;
                  option host-name "EX_ZTP-host";
      option ZTP.transfer-mode "ftp";
                  option ZTP.config-file-name "/junos/ex3300/config/ex3300_default.conf";
                  option ZTP.image-file-name "/junos/ex3300/software/jinstall-ex-3300-15.1R4.6-domestic-signed.tgz";

    host ex01 {
      hardware ethernet e8:b6:c2:6b:f0:01;
      fixed-address 10.230.12.30;
      option host-name "ex01";
    }
    }
  }
}


//Carsten



More information about the juniper-nsp mailing list