
Configuring Traffic Filters and Protocol Prioritization
314470-15.5 Rev 00 13-15
Specifying Protocol Identifiers As Match Criteria
Internet Protocol Version 4 (IPv4) specifies an 8-bit protocol field to identify the
next-level protocol. You can use the protocol field to identify traffic that you want
to accept or drop.
If you specify a protocol other than TCP or UDP, the software prevents you from
filtering on the TCP or UDP source or destination. Otherwise, the offset
associated with one of the parameters in the non-UDP/TCP packet could
coincidentally match the filter, and the software would perform the filter’s action.
To filter traffic using the protocol field, navigate to the match-ip-ip prompt (for
example,
box; serial/3/1; protocol-priority; ip-outbound-filter <filter_name>);
match-ip-ip) and enter the following command:
pri-ip-ip-protocol {<list_of_protocols>}
list_of_protocols can include any number of protocol identifiers. It can also
specify ranges of protocol identifiers.
Table 13-4 lists some common protocol ID codes for IP traffic.
Note: If you filter on a TCP or UDP source or destination, the software
automatically changes the value to the protocol number associated with TCP
or UDP.
Table 13-4. Common Protocol IDs for IP Traffic
Protocol ID Code (Decimal)
ICMP (Internet Control Message Protocol) 1
IGMP (Internet Group Management Protocol) 2
TCP (Transmission Control Protocol) 6
EGP (Exterior Gateway Protocol) 8
IGP (Interior Gateway Protocol) 9
UDP (User Datagram Protocol) 17
RSVP (Resource Reservation Protocol) 46
GRE (Generic Routing Encapsulation) 47
NHRP (Next Hop Resolution Protocol) 54
OSPF (Open Shortest Path First) 89
Komentáře k této Příručce