Home > Archive > CCNA > March 2002 > How do you edit start-up config.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do you edit start-up config.
frank300zx

2002-03-29, 6:11 pm

What is the best way to edit a line or two in your startup config?. I am thinking probably to copy the file to TFTP server and open it with editor and then save it and copy it back to router...is that correct?
rsteedma

2002-03-29, 7:18 pm

Imagine a text editor.

Your startup-config is the version of the term paper you saved five minutes ago. Your running-config is the version of the term paper you see on your screen.

Usually, you modify the running-config first and then save it to the startup-config. This lets you test how it looks before making a final change.

Yes, you can also change it by copying your startup-config to a tftpserver, modifying it there, and then copying it back.


---
Ron Steedman CCNP, CCNA, MCP, BS Computer Science
Free CCNA Practice Tests, Study Guides, & Message Boards!
http://www.congonetworking.com/
chodan

2002-03-29, 8:28 pm

Edit the running config to suite you

then do a "copy run start" command
No need for all the tftp stuff for this.

Oh you can add the 2 lines of code to an ascii file and then tftp it to your startup config and it should just add the lines you need
rsteedma

2002-03-29, 10:16 pm

Yep. All that tftp copying is too much work.

-- Ron
frank300zx

2002-03-30, 12:04 pm

The only problem with editing running config is that other lines remain there. Lets say you are doing access list and you put it in and you realized you missed some subnets. If you go to running config and edit it and put more statements in there, when you do sh run it will show you all the statements. In other word, you can't erase the original line.
chodan

2002-03-30, 12:41 pm

you can with the "no" operator,
as in:
no ip access-list extended marketing_group
permit tcp any 171.69.0.0 0.0.255.255 eq telnet deny tcp any any

you can use named access lists to permit deletion of individual lines in the list.
rsteedma

2002-03-30, 2:09 pm

Access Control Lists are a special case.

You Can:
+ append lines to an ACL
+ delete an ACL
+ delete lines from an ACL (named only)

You Can't:
+ insert lines into an ACL
+ modify lines in an ACL

If your ACL is large, you may want to edit it offline then copy it to the running-con.

Procedure:

(1) Copy ACL from running-con to tftpserver
(3) Edit the ACL
(3) Delete existing ACL in running-config.
(4) Copy ACL from tftpserver to running-con.
(5) Save to startup-config when happy w/ ACL

There are also zero-downtime procedures, if the ACL is very critical to your network.

---
Ron Steedman CCNP, CCNA, MCP, BS Computer Science
Free CCNA Practice Tests, Study Guides, & Message Boards!
http://www.congonetworking.com/
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net