Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading new configs from TFTP

Status
Not open for further replies.
Sep 20, 1999
3,824
US
I'm in the process of migrating from one class C to another on my external network. I'd like to avoid having to manually edit the config while online, eg. issuing 'no' statements for every line and then pasting a new line in. I'd like to take a .bin config file that I saved on my TFTP server, edit it by doing lots of find/replace operations, and reload it on my router. I'm thinking that editing the file will screw up the checksum and I'm wondering what the best way to create a new config file on my TFTP server would be.

Seems like I'm missing something obvious.

ShackDaddy
 
I think .bin files are usually image files. Your config is a simple text file that often has no file extension at all or .txt. In any case, your approach is the right one. There is no checksum on a text file that I am aware of.

I edit my config files in MS Notepad. Just remember to keep a copy of your old config in case your new one has surprises in store for you.
 
You don't need to TFTP them! Just copy the config into notepad, edit the necessary lines and then just paste the whole config back in.

Chris.
************************
Chris Andrew, CCNA
chrisac@gmx.co.uk
************************
 
Chris, wouldn't I have to include a "no blah blah" statement for every line that had changed? That's what I'm trying to get around. I have a fairly complex configuration.
 
Chris,

Assuming you have physical access you don't have to tftp them. Otherwise you do.

Scott
 
Or telnet using editor. But we generally limit that type of activity to those who have physical access. Matter of perspective.
 
I always telnet in to our routers and make a backup of the config in notepad. In the event of a complete IP change I just edit the addresses in notepad and paste it back in. no "no blah blah" statements required. However, it all depends on your set up! We use user authentication for telnet sessions. Some people don't like to have telnet open and only access their routers via the console port. It's up to you!!

Chris.
************************
Chris Andrew, CCNA
chrisac@gmx.co.uk
************************
 
I agree with one some difference... whil enotepad works and I've used it ALOT.. I much prefer SolarWinds editor... it's a contained TFTP donwload/upload tool using SNMP. THe copy is color tagged and set in order. Most importantly, it has a differential view to put two configs up at the same time and highlight the differences between.. great for troubleshooting a recently changed config.

I have also used WinEdit with much satisfaction once I made a syntax color file for the same effect as the SolarWinds editor.

MikeS
Find me at
"The trouble with giving up civil rights is that you never get them back"
 
Configuring a router like what Shackdaddy is saying may shutoff the telnet port. I think the procedure that I would do is to make a copy of the old config, erase the existing config then paste the new config in. If at all possible, I would do it from the console just to be save then sorry. It is a matter of distance. If you screw up, how long it takes you to console port to correct the mistake.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top