Home > Networking Tips > Network Engineering > Automating configurations
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK ENGINEERING

Automating configurations


Tom Lancaster
11.22.2004
Rating: -3.71- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


If you're working in an environment where you have lots of routers and switches with standardized configs, and you're looking for a good way to automate some of your tasks, consider building your device configs in your favorite spreadsheet application.

The trick here is to put each command in a row, as you want it listed in your config, and to put each keyword and parameter that you would want to change in a separate column. Then, you can either print it to a text file, or better yet, export it as a space-delimited text file.

Consider a scenario where you had a bunch of switches, and you always gave their management interface an IP address of .10 in whichever /24 bit subnet you assign. You could put some input fields at the top for the first 3 octets of the IP address. Then, in the appropriate row where you assign the ip address, your first cell could contain "ip address", and your second cell would be a formula like =string(cell with first octet) + "." + string(cell with second octet) + "." + string(cell with third octet) + "10". Your last cell would contain "255.255.255.0". So when these are exported as text, they would read "ip address a.b.c.10 255.255.255.0".

Since you probably use the first three octets of that IP address several times in the config, and things like your passwords and snmp community strings over on each switch, this can save you a lot of typing. So you could just enter your data in the entry fields once, and then print them out to generate nearly identical configs.

Alternatively, you could get a little more sophisticated and create something akin to a mail merge utility, using macros, where you could press a button and generate all your configs.

Finally, if you name the configs correctly, and have your merge macro export them to a directory on a TFTP server, you can use the Cisco autoconfiguration feature to help you load them.

This also makes it very easy for you to make changes later on, as long as you have the discipline not to go tweaking each individual config.

And, this is especially handy when you're dealing with configs that have lots of access-lists, as the parameters there lend themselves to formulas.


Tom Lancaster, CCIE# 8829 CNX# 1105, is a consultant with 15 years experience in the networking industry, and co-author of several books on networking, most recently, CCSPTM: Secure PIX and Secure VPN Study Guide published by Sybex.


Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Installation and Configuration
Use 'admin distance' to assist in migration
Networking Products of the Year 2004
The best of 2004
Simplifying and standardizing your device configurations
Who cares about Cisco?
Top five things to know about access control lists
Know your network cable
Securing Cisco networks
Tracking to ensure failover
Bandwidth optimization

Network Engineering
Preventing hacker attacks with network behavior analysis IPS
Internal cloud computing on the cheap: Free automated provisioning?
Improved storage performance without adding more disk
Troubleshooting -- 'Network Know-How' Chapter 17
Windows Server 2008 IP routing configuration: Static and dynamic RIPv2
Understand Windows tracert output to troubleshoot network connectivity
Using tracert and TTL to troubleshoot network connectivity problems
10 Gigabit Ethernet interconnect solutions: Investigate carefully before choosing
Optimization of the data center with 10 Gigabit Ethernet
Converged Enhanced Ethernet: New protocols enhance data center Ethernet

Network Hardware
Juniper to CIOs: Invest in internal cloud computing networks
802.11n wireless APs bring IP video to sprawling Illinois high school
802.11n upgrade: College ditches legacy network for new vendor
Network device management overload: Engineers managing too many boxes
What is network infrastructure and what is a hybrid network?
What preventative maintenance procedures for network devices exist?
Can wireless adapters operate as client access points to make SoftAPs?
Is there VLAN software recommend for Realtek NICs?
IBM data center networking strategy: Battle HP with partnerships
Intelligent edge switches: Complexity is driving a smarter LAN
Network Hardware Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
core router  (SearchNetworking.com)
fiber jumper  (SearchNetworking.com)
flow routing  (SearchNetworking.com)
foreign agent  (SearchNetworking.com)
foreign network  (SearchNetworking.com)
hardware load-balancing device  (SearchNetworking.com)
logical router  (SearchNetworking.com)
mrouter  (SearchNetworking.com)
patch cord  (SearchNetworking.com)
port interface card (PIC)  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts