Using ZTP for firmware version / stacking with Linux TFTP/DHCPD?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Greetings,

Has anyone out there used Zero Touch Provisioning (ZTP) with Extreme switches and standard Linux TFTP/DHCP?  I can get the configuration file to load properly with ZTP, using these options in the /etc/dhcpd.conf file:

option EXTREME.tftp-server-ip code 100 = ip-address;                
option EXTREME.config-file-name code 101 = text;

# In the class field
option EXTREME.tftp-server-ip X.X.X.X;
option EXTREME.config-file-name "mgmtsw_policy_files/base-extreme-config.xsf";

I'm wondering if it's possible to add another field for firmware, or do I need to edit the .xsf script to have a line that says something like 'download image vr vr-default <summit-file.xos> inactive' ?

Any help is appreciated ! 
Photo of Karl Witthuhn

Karl Witthuhn

  • 120 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
Hello Karl

Here's a great article that I think will help you https://gtacknowledge.extremenetworks.com/articles/How_To/Zero-Touch-Provisioning-With-EXOS-and-Nets...

Also if you have XOS 21.1 and ExtremeManagement 7.0 we now have ZTP+ which allows the switch to automatically discover the management and download a profile.

Let me know if this helps

P
(Edited)
Photo of Karl Witthuhn

Karl Witthuhn

  • 120 Points 100 badge 2x thumb
Thanks for the reply Paul - 

I'm trying to achieve this strictly using Linux CLI dhcpd/atftpd, which works great for configuration, I'm just wondering if there was an option specifically for EXOS firmware that you might know? For example the configuration file syntax is

option EXTREME.config-file-name code 101 = text;
#In Class Section
vendor-option-space EXTREME;\n')                   
option EXTREME.config-file-name "mgmtsw_policy_files/base-extreme-config.xsf";

Something like 'option EXTREME.firmware-file-name code 110 = text;'
and 'option EXTREME.firmware-file-name 'summitX-21.1.1.4-patch1-5.xos';

I've successfully used the configuration file to run a tftp get command from the switch to pull down files like default.xsf and autoexec.xsf, but I'm wondering if it's the proper method to use the initial configuration script to download a firmware file and install it.

download image <ip-address> summitX-21.1.1.4-patch1-5.xos vr-default inactive
install image summitX-21.1.1.4-patch1-5.xos vr-default inactive

^ The above seems to work, but I just want to figure out if that's the proper way or not. 

Thanks!
Photo of Paul Russo

Paul Russo, Alum

  • 9,694 Points 5k badge 2x thumb
Hey Karl

Sorry I have never done it first hand but here are a few things that may help.  This other link was written by an SE for bringing a switch up from scratch https://community.extremenetworks.com/extreme/topics/how-to-restore-quickly-xos-with-netsight-invent...

In addition for linux:

To implement option 125 in Linux you have to modify the dhcpd.conf file.
 
You have to add a global option definition and a specific parameter definition for each address subnet:
 
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ignore client-updates;
option option-125 code 125 = string;
 
#
#PC-Client subnet
subnet 192.168.10.0 netmask 255.255.255.0 {
        range 192.168.10.2 192.168.10.9;
        range 192.168.10.110 192.168.10.210;
        default-lease-time 600;
        max-lease-time 600;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.10.255;
        option routers 192.168.10.1;
        option domain-name-servers 192.168.30.1;
        option domain-name "demo.com";
        option option-125 00:00:15:f8:06:01:04:C0:A8:1E:22;
        }
 

I hope this helps. ZTP+ is much easier as the switch is already defaulted to use ZTP+ so no need to enable it.

P