Specifications
8-80 add switch l3filter entry Rapier Switch Software Reference
Software Release 2.7.3
C613-03098-00 REV A
add switch l3filter entry
Syntax ADD SWItch L3Filter=filter-id ENTry [ACTION={DENY|FORWARD|
SENDCOS|SENDEPORT|SENDMIRROR|SETPRIORITY|SETTOS|
MOVEPRIOTOTOS|MOVETOSTOPRIO|NODROP|
SENDNONUNICASTTOPORT|SETIPDSCP}[,...]]
[DIPaddress=ipadd] [EPORT=port-number] [IPDSCP=number]
[IPOrt=port-number] [NEWIPDSCP=0..63] [NEWTOS=0..7]
[PORT=port-number] [PRIORITY=0..7] [PROTOCOL={TCP|UDP|
ICMP|IGMP|protocol}] [SIPADDR=ipadd] [TCPAck={True|
False}] [TCPDport=port-id] [TCPFin={True|False}]
[TCPSport=port-id] [TCPSYn={True|False}] [TOS=0..7]
[TTL=0..255] [TYPE=protocol-type] [UDPSPORT=port-id]
[UDPDPORT=port-id]
where:
■
filter-id is a decimal number in the range 1 to the number of filters defined.
■ ipadd is an IP address in dotted decimal notation.
■ port-number is the switch port number from 1 to m where m is the highest
numbered Ethernet switch port, including uplink ports.
■ protocol is an IP protocol number from 1 to 255.
■ port-id is a TCP/UDP port number with a maximum value less than 65535.
■ protocol-type is a valid protocol-type number. A protocol type number is 2
bytes for Ethernet type II and 802.3 (DSAP/SSAP) encapsulation, or 5
bytes for SNAP encapsulation, and is specified in hexadecimal.
Description This command adds a filter entry to an existing filter match criteria. All criteria
specified in the filter match should also be set in the filter entry, and criteria not
specified in the filter match are not valid in the filter entry. Up to 127 filter
entries may be created for the switch. For the Rapier i Series switches only, up
to 126 filter entries may be created.
The switch hwfilter classifier commands may not be used with the switch
l3filter commands.
The l3filter parameter specifies the number of the filter match (filter-id) for
which the entry is being created. Each filter entry is automatically assigned an
entry-id number. Filter and filter entry numbers are in the output of the show
switch l3filter command on page 8-220.
The action parameter specifies a comma-separated list of actions to take when
a packet matches the filter criteria specified in this entry. If deny is specified,
the packet is discarded. If forward is specified, the packet is forwarded using
the default Class of Service (priority). If sendcos is specified, the packet is sent
to the priority queue specified by the priority parameter. If sendeport is
specified, the new output port is set to the value of the port parameter. If
sendmirror is specified, the packet is sent to the mirror port. If setpriority is
specified, the packet’s 802.1p priority is set to the value specified by the
priority parameter. If settos is specified, the packet’s tos (Type of Service) field
is set to the value specified by the newtos parameter. The default is forward.
On the Rapier i Series switches only, the following additional parameter
options are available. If movepriototos is specified, the ip tos field in the frame
is replaced with the 802.1 priority value. If movetostoprio is specified, the 802.1
priority field in the frame is replaced with the ip tos value, this also determines