cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

Karl_Witthuhn
New Contributor
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 inactive' ?

Any help is appreciated !
3 REPLIES 3

Paul_Russo
Extreme Employee
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

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

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 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!
GTM-P2G8KFN