r/Cisco•
Nitroix

Looking for a better way to do this, preferably open source

So i have a lot of switches going up and down with similar config, its for a LAN party with about 500 ppl. The switches do not support ZTP. I have a deafault config wich basicly only has one vlan I call config vlan. I have a server with linux/dhcp on that vlan. Then I wrote a simple program wich tails the dhcp log, looks for DHCPACK, extracts the IP and pushes it to a file. Then I use snmp to pull cdp data from that switch, from the cdp data i know what distrobution switch its connected to, on which port, based on that I push a the name of the config along with the IP of my tftp server to the switch, ordering it to download the switch from there. The tftp server is a python program i have written to process php files and give the result instead of pure files. It is simply a hacked solution instead of ZTP on old switches. Anyone who has some ideas for improving this? All sugestions or brainstorming is welcome

Posted Feb 18, 2019, 8:24 PM UTC

1011
supnul•

maybe using DevOps software of some type..

what is the goal anyway? provide dynamic config to switches ?

ZTP allows for factory reset switches to get DHCP off native .. and DTP being enabled by default will have the switches build truck ports between them so... if vlan 1 is the switch management and vlan 1000 is for users.. you could automate this.

what kind of LAN party has 500 people ;] seems like a noticeable event

5
dirtymunke•

That’s exactly how we used to do it where I work, until smart install was available. If your switches support SI, that could be an option.

1
tris10335•

What's the end goal? To automate the vlan and trunk config? Could you configure the switches manually with rw snmp or setup ssh and use something like ansible for the rest?

1
Aresik•

You can make use of the console port with something like pySerial or ser2net. Have a script which pushes default config (ssh, eigrp, vlan, uplink config, eigrp/ospf) and IP addresses which increment with each execution of the script. Once you have layer 3 communication you can do more things to discover, document and draw a map of the network.

1
comeroutewithme•

When you say don’t support ztp, do you mean they don’t support smart install? I don’t know about anything “less” than 2960 flavor switched (I.e. SG models) but 2960/up supports smart install and/or guest-shell. If you have smart install then you should check out FreeeZTP, it’s pretty slick.

1
NitroixOP•

Thanks a lot, i dont know why, but i allways seem to fail when i google cisco features

1
sanmigueelbeer•

Cisco's ZeroTouch SmartInstall is supported from 2960, 3560/3750 that runs IOS versions 12.2(55)SE (please see How to use Zero-Touch SmartInstall). 3650/3850 also supports ZeroTouch SmartInstall (Install Mode).

IMPORTANT: Cisco has stopped the support of ZeroTouch SmartInstall from IOS/IOS-XE that have a release date starting from July 2018.

​

1
NitroixOP•

Thanks, we run 2960s, dont know what ios yet tough, think we run the newest availeble, but they are eof

1
sanmigueelbeer•

we run 2960s

Good choice. 2960S are very good models for access ports. Not too expensive but stable.

Unfortunately I can't say the same for the 3650/3850.

1
NitroixOP•

Yeah its one of the big ones in Norway, but then again, its Norway

1
fyxim•

Dreamhack made their own tooling for this: https://github.com/dhtech/swboot

Works all the way down to C2950 (which is still being used today..)

1