Configuring extended named acls, Extended named acl syntax – Brocade TurboIron 24X Series Configuration Guide User Manual

Page 945

Advertising
background image

Brocade TurboIron 24X Series Configuration Guide

911

53-1003053-01

Configuring extended named ACLs

Configuring extended named ACLs

The commands for configuring named ACL entries are different from the commands for configuring
numbered ACL entries. The command to configure a numbered ACL is access-list. The command
for configuring a named ACL is ip access-list. In addition, when you configure a numbered ACL
entry, you specify all the command parameters on the same command. When you configure a
named ACL, you specify the ACL type (standard or extended) and the ACL number with one
command, which places you in the configuration level for that ACL. Once you enter the
configuration level for the ACL, the command syntax is the same as the syntax for numbered ACLs.

Extended ACLs let you permit or deny packets based on the following information:

IP protocol

Source IP address or host name

Destination IP address or host name

Source TCP or UDP port (if the IP protocol is TCP or UDP)

Destination TCP or UDP port (if the IP protocol is TCP or UDP)

The IP protocol can be one of the following well-known names or any IP protocol number from 0 –
255:

Internet Control Message Protocol (ICMP)

Internet Group Management Protocol (IGMP)

Internet Gateway Routing Protocol (IGRP)

Internet Protocol (IP)

Open Shortest Path First (OSPF)

Transmission Control Protocol (TCP)

User Datagram Protocol (UDP)

For TCP and UDP, you also can specify a comparison operator and port name or number. For
example, you can configure a policy to block web access to a specific website by denying all TCP
port 80 (HTTP) packets from a specified source IP address to the website’s IP address.

Extended named ACL syntax

Syntax: [no] ip access-list extended <ACL-name> deny | permit <ip-protocol> <source-ip> |

<hostname> <wildcard> [<operator source-tcp>/<udp-port>] <destination-ip> |
<hostname> [<icmp-num>| <icmp-type>] <wildcard> [<tcp/udp comparison operator>
<destination-tcp>/<udp-port>] [dscp-marking <0-63> [802.1p-priority-marking <0 –7...>
]] [dscp-matching <0-63>] [log] [precedence <name> | <0 – 7>] [tos <0 – 63> | <name>]
[traffic policy <name>]

Syntax: [no] access-list <num> deny | permit host <ip-protocol> any any

Syntax: [no] ip access-group <num> in

The <ACL-name> parameter is the access list 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 deny | permit parameter indicates whether packets that match the policy are dropped or
forwarded.

Advertising