• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4313
  • Last Modified:

Adding comments to a Cisco config

I would like to add comments in my cisco switch and router configurations. how do I go about doing this.
0
jpilhoefer
Asked:
jpilhoefer
2 Solutions
 
digitapCommented:
You can add comments to a configuration file describing the commands you have entered. Precede a comment with an exclamation point (!). Because comments are not  stored in NVRAM or in the active copy of the configuration file, comments do not appear when you list the active configuration with the show running-config EXEC command. Also, when the startup configuration is NVRAM, comments do not show up when you list the startup configuration with the show startup-config  EXEC command. Comments are stripped out of the configuration file when it is loaded onto the router.


http://www.cisco.com/en/US/docs/ios/11_3/configfun/configuration/guide/fccfgfil.html
0
 
jpilhoeferAuthor Commented:
So there is no way to enter a comment that will show up when the show run command is used? For instance, if I want to give an explination of an entry in an access list , this can't be done with comments. I tried:
 # ! comment
wr
sh run
and the comment was not there
0
 
RPPreacherCommented:
I think digitap sanswered that already.

"Because comments are not  stored in NVRAM or in the active copy of the configuration file, comments do not appear when you list the active configuration with the show running-config EXEC command"
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
GJHopkinsCommented:
Not true with regard to the specific question about  access lists  you can add comments thus

ip access-list extended LIST1
 remark this stops web traffic
 deny   tcp any any eq www          
0
 
jpilhoeferAuthor Commented:
I found using the description command as a work around to comments also.
0
 
digitapCommented:
Great!  Glad it's working and I could help!  Thanks for the points!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now