66 ServerIron ADX Security Guide
53-1002440-03
Configuring numbered and named ACLs
2
ServerIronADX(config)# show access-list melon | include 5
Standard IP access-list melon
permit host 5.6.7.8
permit host 5.10.11.12
The second and third entries in the ACL contain the keyword “5” and are displayed in the show
access-list.
If you want to exclude ACL entries that contain a keyword from the show access-list display, enter
the following command.
The second and third ACL entries are left out from the display.
Syntax: show ip access-list <acl-number> | begin | exclude | include <keyword>
Enter the ACL’s number for the <acl-number> parameter.
Use the | operator to indicate a keyword.
Enter the begin <keyword> parameter to start the display beginning with the first line containing
text that matches the keyword. For example, if you enter begin Total, the displayed information
begins with the line containing the word “Total”.
Enter the exclude <keyword> parameter to exclude any lines containing text that match the
keyword. For example, if you enter exclude Total, any line containing the word “Total” is excluded
from the display.
Enter the include <keyword> display only those lines containing text that match the keyword. For
example, if you enter include Total, any line containing the word “Total” is included in the display.
If ACL entries, for both numbered and named ACLs, have remarks, the display
will also include the remarks if they contain characters that match the
specified keywords. For example, ACL 99 might contain the following entries:
ServerIronADX(config)# show access-list 99
Standard IP access-list 99
ACL Remark: Deny Building A
deny host 1.2.3.4
Permit First Floor Users
permit host 5.6.7.8
deny host 5.10.11.12
permit any
To show all entries containing the keyword “deny” you obtain the following
output:
ServerIronADX(config)#show access-list 99 | include deny
Standard IP access-list 99
ACL Remark: Deny Building A
deny host 1.2.3.4
deny host 5.10.11.12
NOTE
All lines with the keyword “deny”, including remarks are included in the display.
ServerIronADX(config)# show access-list melon | exclude 5
Standard IP access-list melon
deny host 1.2.3.4
permit any