06-01-2009 01:24 AM - edited 03-06-2019 06:01 AM
Hi All,
I need to add comment for ACL's (rule) to know others exactly what rule functioning what.
For example there is a ACl (rule) like...
#permit ip host 192.168.xxx.xx host 10.xx.x.xx
Here I what add comment for this rule like....
Thanks in advance,
Regards,
Naidu.
06-01-2009 02:21 AM
Hi Naidu
Check out this link
http://www.cisco.com/en/US/docs/ios/12_0t/12_0t2/feature/guide/comment.html
for information on adding comments to ACL's on Cisco equipment.
HTH.
Best Regards,
Michael
06-01-2009 04:20 AM
Hi Michael,
Thanks for your response.
Thats ok, but what i want is both access-list command as well comment should in single line like....
#permit ip 10.XX.X.X 0.0.255.255 any (Aalborg network can access any outisde network)
Regards,
Naidul
06-01-2009 07:44 AM
Naidul
I believe that the suggestion from Michael is your best option. While I can agree that it would be nice to have the comment and the the rule in the same line I do not believe that IOS supports this.
HTH
Rick
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: