
Drop Packet Length
This example shows a drop packet length action configuration:
class-map type traffic match-all match-pkt-len
match packet length 100-150
end-class-map
!
policy-map type pbr test2
class type traffic match-pkt-len
drop
!
class type traffic class-default
!
end-policy-map
!
To configure a traffic class to discard packets belonging to a specific class, you use the drop command in
policy-map class configuration mode. In this example, a multi-range packet length value from 100-150 has
been defined. If the packet length of the incoming traffic matches this condition, the action is defined to 'drop'
this packet.
Remark DSCP
This is an example of the set dscp action configuration.
class-map type traffic match-all match-dscp-af11
match dscp 10
end-class-map
!
policy-map type pbr test6
class type traffic match-dscp-af11
set dscp af23
!
class type traffic class-default
!
end-policy-map
!
In this example, the traffic marking extended community (
match dscp
) instructs the system to modify or set
the DSCP bits of a transiting IP packet from dscp 10 to dscp af23.
Additional References for BGP Flowspec
The following sections provide references related to implementing BGP Flowspec.
Related Documents
Document Title
Related Topic
Routing Command Reference for Cisco NCS
6000 Series Routers
BGP flowspec commands: complete command syntax,
command modes, command history, defaults, usage
guidelines, and examples
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
125
Implementing BGP Flowspec
Drop Packet Length