Brocade Communications Systems 12.4.00a Manual De Usuario

Descargar
Página de 226
ServerIron ADX Security Guide
63
53-1002440-03
Configuring numbered and named ACLs
2
The <string> parameter is the ACL name. You can specify a string of up to 256 alphanumeric 
characters. You can use blanks in the ACL name if you enclose the name in quotation marks (for 
example, “ACL for Net1”). The <num> parameter allows you to specify an ACL number if you prefer. 
If you specify a number, you can specify from 1 – 99 for standard ACLs or 100 – 199 for extended 
ACLs.
NOTE
For convenience, the software allows you to configure numbered ACLs using the syntax for named 
ACLs. The software also still supports the older syntax for numbered ACLs. Although the software 
allows both methods for configuring numbered ACLs, numbered ACLs are always formatted in the 
startup-config and running-config files in using the older syntax, as follows. 
access-list 1 deny host 209.157.22.26 
access-list 1 deny 209.157.22.0 0.0.0.255 
access-list 1 permit any 
access-list 101 deny tcp any any eq http 
The options at the ACL configuration level and the syntax for the ip access-group command are the 
same for numbered and named ACLs and are described in 
“Configuring standard numbered ACLs”
 
on page 55.
Configuration example for extended ACL
To configure a named extended ACL entry, enter commands such as the following.
The options at the ACL configuration level and the syntax for the ip access-group command are the 
same for numbered and named ACLs and are described in 
“Configuring extended numbered ACLs”
 
on page 56.
Displaying ACL definitions
To display the ACLs configured on a device, use the show ip access-lists command. Here is an 
example.
ServerIronADX(config)# show ip access-lists
Extended IP access list 101
    deny tcp host 209.157.22.26 host 209.157.22.26 eq http 
Syntax: show ip access-lists [<num>
The show access-list and show ip access-list commands have been updated to display ACL entries 
with line numbers. 
Numbered ACL
For a numbered ACL, you can enter a command such as the following.
ServerIronADX(config)# ip access-list extended “block Telnet”  
ServerIronADX(config-ext-nacl)# deny tcp host 209.157.22.26 any eq telnet 
ServerIronADX(config-ext-nacl)# permit ip any any
ServerIronADX(config-ext-nacl)# exit
ServerIronADX(config)# int eth 1/1
ServerIronADX(config-if-1/1)# ip access-group “block Telnet” in