!
vrf blue
address-family ipv4
service-policy type pbr fs_table_blue local
!
!
!
!
Interface GigabitEthernet 0/0/0/0
vrf blue
ipv4 flowspec disable
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.
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
226
Implementing BGP Flowspec
Configuration Examples for Implementing BGP Flowspec