5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1198
•
For UDP: domain, echo, ntp, rip, snmp, tftp, time, and who.
For both TCP and UDP, each of these keywords translates into its
equivalent port number, which is used as both the start and end of a port
range.
If
range
is specified, the IP ACL rule matches only if the layer 4 port
number falls within the specified portrange. The
startport
and
endport
parameters identify the first and last ports that are part of the port range.
They have values from 0 to 65535. The ending port must have a value
equal or greater than the starting port. The starting port, ending port,
and all ports in between will be part of the layer 4 port range.
When
eq
is specified, the IP ACL rule matches only if the layer 4 port
number is equal to the specified port number or portkey.
When
neq
is specified, IP ACL rule matches only if the layer 4 port
number is not equal to the specified port number or portkey.
When
lt
is s specified, IP ACL rule matches if the layer 4 port number is
less than the specified port number or portkey. It is equivalent to
specifying the range as 0 to <specified port number — 1>.
When
gt
specified, the IP ACL rule matches if the layer 4 port number is
greater than the specified port number or portkey. It is equivalent to
specifying the range as <specified port 1> to 65535.
Two rules are added in the hardware one with range equal to 0 to
<specified port number _- 1> and one with range equal to <<specified
port 1 to 65535>>
Note:
Port number matches only apply to unfragmented or first
fragments.
dstip dstmask | any | host
dstip
Specifies a destination IP address and netmask for match condition of
the IP ACL rule.
Specifying any implies specifying dstip as 0.0.0.0 and dstmask as
255.255.255.255.
Specifying host A.B.C.D implies dstip as A.B.C.D and dstmask as
0.0.0.0.
precedence precedence |
tos tos [tosmask] | dscp
dscp
Specifies the TOS for an IP ACL rule depending on a match of
precedence or DSCP values using the parameters dscp, precedence,
tas/tasmask.
Note:
tosmask
is an optional parameter.
flag [+fin | -fin] [+syn | -syn]
[+rst | -rst] [+psh | -psh]
[+ack | -ack] [+urg | -urg]
[established]
Note:
This option is available only if the protocol is tcp. Specifies that
the IP ACL rule matches on the TCP flags.
When +<tcpflagname> is specified, a match occurs if the specified
<tcpflagname> flag is set in the TCP header.
When -<tcpflagname> is specified, a match occurs if the specified
<tcpflagname> flag is *NOT* set in the TCP header.
When
established
is specified, a match occurs if the specified RST or
ACK bits are set in the TCP header. Two rules are installed in the
hardware when the established option is specified.
icmp-type icmp-type [icmp-
code icmp-code] | icmp-
message icmp-message
Note:
This option is available only if the protocol is icmp. Specifies a
match condition for ICMP packets.
When
icmp-type
is specified, the IP ACL rule matches on the specified
ICMP message type, a number from 0 to 255.
When
icmp-code
is specified,the IP ACL rule matches on the specified
ICMP message code, a number from 0 to 255.