cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
83
Views
0
Helpful
2
Replies

Automated Standard Switch Configuration

VC805
Community Member

Hello, I am a student learning IoT and Digital Transformation. I want to be able to automate simple switch configurations. I would like to be able to have a standard configuration on all switches that I can modify as needed. What type of program or code would you recommend for doing something like this? Thank you!

2 Replies 2

paboer
Level 1
Level 1

Hi VC805,

There are several ways to automate switch configurations, and no single approach is wrong. The best path often depends on the hardware and software you're working with — and your own preferences. With a bit of Googling or asking ChatGPT, you'll get far.

Personally, I started by building standard text-based configurations. These keep most settings uniform, while allowing for unique values like the hostname and IP address. If you're using Python, you can easily automate this using Jinja2 templates.

Once you’ve built the configs, the next step is having Python push them to your devices.

If your switches support protocols like RESTCONF or NETCONF (as many modern Cisco devices do), those are great tools to explore for API-based configuration.

Also, take a look around at the community and/or the DevNet website. A lot of great content is already there for you!

Good luck with your learning — you're on the right track!

wajidhassan
Level 1
Level 1

 

Python is widely used for network automation because it’s simple and powerful. Libraries like Netmiko and NAPALM allow you to programmatically connect to switches via SSH and push configurations. You can create standard config templates as strings or files and dynamically modify them in your Python scripts.