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.
jpilhoeferAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Hardware-Other

From novice to tech pro — start learning today.