Named acls – Brocade Communications Systems ServerIron ADX 12.4.00a User Manual

Page 79

Advertising
background image

ServerIron ADX Security Guide

65

53-1002440-03

Configuring numbered and named ACLs

2

ServerIronADX(config)#show access-list 99 | include 5

Standard IP access-list 99

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.

ServerIronADX(config)# show access-list 99 | exclude 5

Standard IP access-list 99

deny host 1.2.3.4

permit any

The second and third ACL entries are left out from the display.

Syntax: show access-list <acl-number> | begin | exclude | include <keyword>

Enter the ACL 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
the 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.

Named ACLs

You may have the following numbered ACL.

ServerIronADX(config)# show access-list melon

Standard IP access-list melon

deny host 1.2.3.4

permit host 5.6.7.8

permit host 5.10.11.12

permit any

If you want to display ACL entries beginning with the entry that contains the keyword “5” enter the
following command.

ServerIronADX(config)# show access-list melon | begin 5

Standard IP access-list melon

permit host 5.6.7.8

permit host 5.10.11.12

permit any

Since the second entry is the first entry that contains the keyword “5”, the display begins with line
2.

If you want to display only the ACL entries that contain the keyword “5” enter the following
command.

Advertising