cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9322
Views
0
Helpful
5
Replies

Add remark using CLI to ASA

Andy White
Level 3
Level 3

Hello,

I'm faily new to the CLI world of the ASA.

1.)   I've just added an access rule, but how do I add a remark to this access rule?  Do I need to find the line it exists on?

2.)   How do I insert a rule before another using CLI?

Thanks

1 Accepted Solution

Accepted Solutions

Hi Andy,

You can use the command:

show access-list (to show all access-lists, with line number)

or

show access-list (for a specific acl with line number)

Hope this helps.

Thanks,

Varun

Thanks,
Varun Rao

View solution in original post

5 Replies 5

varrao
Level 10
Level 10

Here you go:

http://www.cisco.com/en/US/customer/docs/security/asa/asa82/command/reference/a1.html#wp1559889

Let me know if you need anything else.

Thanks,

Varun

Thanks,
Varun Rao

For eg:

You want to add the remark for this ACL:

access-list test permit ip any any

so the remark would be:

access-list test line 1 remark andy_test_acl

This would put the remark on the top.

Thanks,

Varun

Please do rate helpful posts.

Thanks,
Varun Rao

Thanks, how do I show the line numbers, my CLI doesn't show this so it is difficult to use "line x" in the command.

Hi Andy,

You can use the command:

show access-list (to show all access-lists, with line number)

or

show access-list (for a specific acl with line number)

Hope this helps.

Thanks,

Varun

Thanks,
Varun Rao

Anu M Chacko
Cisco Employee
Cisco Employee

Hi Andy,

1) You can add a remark as follows:

access-list remark

This line is placed at the end of the ACL, if you enter it after adding access-list entries.

2) To add a rule before another, you can specify the line number as follows:

eg: access-list line permit ip any any

To see which access-list entry is at which line, use "sh access-list ".

Hope this helps!

Regards,

Anu

P.S. Please mark this question as resolved if it has been answered. Do rate helpful posts.

Review Cisco Networking for a $25 gift card