Knowledge Base ZPE Systems, Inc. FAQ

            How to Set NodeGrid via ZTP on IPv4 Network

            Zero Touch Provisioning (ZTP) is a method to provision network devices  such as switches, and your NodeGrid, automatically with no manual interaction.

            It will load configuration file during DHCP request from the network, as well as firmware upgrade.

            You will need to have a DHCP server and a TFTP server on the network.

             

            Just for a reference purpose, below is an example of the dhcpd.conf file from ISC-DHCP server:

             …

            option space zpe;

            option zpe.ztp-signature code 1 = text;

            option zpe.ztp-server-url code 2 = text;

            option zpe.ztp-image-filename code 3 = text;

            option zpe.ztp-config-filename code 4 = text;

             …

            host NSC-ZTP-Sample {

              hardware ethernet 00:90:fb:4e:09:1f;

              fixed-address 10.168.2.111;

              option tftp-server-name "10.168.2.201";

              next-server 10.168.2.201;

              option domain-name "zpesystems.com";

              option domain-name-servers 10.168.2.205, 8.8.8.8;

              option routers 10.168.2.254;

             

              vendor-option-space zpe;

              option zpe.ztp-signature = "ZPE-ZTP";

              option zpe.ztp-server-url = "tftp://10.168.2.201:69";

              option zpe.ztp-config-filename = "/nodegrid-3.1.14/config/ZTP.ttyS1.9600.cfg";

             }

             

            Notes

            a) the example above checks the unit's MAC address and assigns a fixed IP address, and sends the ZTP.ttyS1.9600.cfg file which will configure the unit

            b) the ZTP.9600.cfg is a configuration file based on the CLI commands. See example below for a NodeGrid Serial Console:

            cd /settings/devices/

            edit -

            set mode=enabled

            set baud_rate=9600

            set allow_telnet_protocol=no

            set allow_ssh_protocol=yes

            set ssh_port=7001

            commit

             

            cd /settings/network_settings

            set hostname=ZPE1

            set domain_name=domain.com

            set enable_ipv4_ip_forward=no

            set enable_ipv6_ip_forward=no

            set enable_network_failover=no

            commit

             

            set /settings/network_connections/ETH1 ethernet_interface=eth1

            set /settings/network_connections/ETH1 connect_automatically=yes

            set /settings/network_connections/ETH1 set_as_primary_connection=no

            set /settings/network_connections/ETH1 enable_lldp=yes

            set /settings/network_connections/ETH1 ipv4_mode=static

            set /settings/network_connections/ETH1 ipv4_address=198.168.2.100

            set /settings/network_connections/ETH1 ipv4_bitmask=24

            set /settings/network_connections/ETH1 ipv4_gateway=198.168.2.1

            set /settings/network_connections/ETH1 ipv6_mode=address_auto_configuration

            commit

             

            set /settings/network_connections/ETH0 ethernet_interface=eth0

            set /settings/network_connections/ETH0 connect_automatically=yes

            set /settings/network_connections/ETH0 set_as_primary_connection=yes

            set /settings/network_connections/ETH0 enable_lldp=no

            set /settings/network_connections/ETH0 ipv4_mode=static

            set /settings/network_connections/ETH0 ipv4_address=150.155.213.155

            set /settings/network_connections/ETH0 ipv4_bitmask=24

            set /settings/network_connections/ETH0 ipv4_gateway=150.155.213.1

            set /settings/network_connections/ETH0 ipv4_dns_server=8.8.8.8

            set /settings/network_connections/ETH0 ipv6_mode=address_auto_configuration

            commit

             

            The CLI syntax is: Command + Path + Arguments (parameters and values)

            Updated: 01 Nov 2016 02:38 AM
            Helpful?  
            Help us to make this article better
            0 0