Icmp Type And Code - Avaya G250 Administration

Media gateways
Hide thumbs Also See for G250:
Table of Contents

Advertisement

greater than — type gt, followed by a port name or port number, to apply the rule to all
ports with a name or number greater than the specified name or number
less than — type lt, followed by a port name or port number, to apply the rule to all ports
with a name or number less than the specified name or number
any — type any to apply the rule to all port names and port numbers
Use the no form of the appropriate command to specify that the rule does not apply to the ports
defined by the command.
The following command specifies a source TCP port named telnet for rule 1 in access control
list 301:
G350-001(ACL 301/ip rule 1)# tcp source-port eq telnet
The following command specifies any destination UDP port less than 1024 for rule 3 in QoS list
404:
G350-001(QoS 404/rule 3)# udp destination-port lt 1024
The following command specifies any destination TCP port in the range 5000 through 5010 for
rule 1 in access control list 301:
G350-001(ACL 301/ip rule 1)# tcp destination-port range 5000 5010
The following command specifies any source TCP port except a port named http for rule 7 in
access control list 304:
G350-001(ACL 304/ip rule 7)# no tcp source-port eq http

ICMP type and code

To apply the rule to a specific type of ICMP packet, use the icmp command. This command
sets the IP protocol parameter to ICMP, and specifies an ICMP type and code to which the rule
applies. You can specify the ICMP type and code by integer or text string, as shown in the
examples below. To apply the rule to all ICMP packets except the specified type and code, use
the no form of this command.
The following command specifies an ICMP echo reply packet for rule 1 in QoS list 401:
G350-001(QoS 401/rule 1)# icmp Echo-Reply
The following command specifies any ICMP packet except type 1 code 2 for rule 5 in access
control list 321:
G350-001(ACL 321/ip rule 5)# no icmp 1 2
Defining rules
Issue 3 February 2007
543

Advertisement

Table of Contents
loading

This manual is also suitable for:

G350

Table of Contents