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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

anyway to put notes next to commands

Status
Not open for further replies.

caswcu

Technical User
Feb 16, 2005
93
US
when I add say

static (inside,outside) xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy

I want to put a note beside it like * to access web server *

is this possible?
 
Try

! Access to web server

That will not show up in the config. Anything starting with '!' is ignored.

This is often used in configs when they are printed or saved in a text file for reference and can aid someone reading through a config when trying to figure out what bit does what but on the router itself these lines will not show.

Chris.


**********************
Chris A.C, CCNA, CCSA
**********************
 
The PDM can put notes in, but they get switched around as you insert and move ACL entries, so I haven't found them to be useful. I think they use a "remark" keyword or something like that, not the "!".

In your particular case, I'd use hostnames so you can say "static (inside,outside) and "access-list inbound permit tcp any host eq 80".
 
Maybe I miss understood the question, But I thought the request was how to an a reference/note above a config line to make reading the config easier

! Static translate for webserver01
static (inside,outside) xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy
 
No, you understood it just fine. Like I said, you can put that line in on a text file but it won't show in the config on the router/switch/firewall.

Chris.


**********************
Chris A.C, CCNA, CCSA
**********************
 
For ACL's you can use the remark command:

access-list test permit ip any any
access-list test remark allow everything into my network
 
Hey that's a pretty good ACL. I'm going to apply it to our gateway router.

;-)

- stephan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top