Configuring Destination-Based Flow-Tag Propagation - Cisco NCS 6000 Series Configuration Manual

Ios xr release 6.4.x
Hide thumbs Also See for NCS 6000 Series:
Table of Contents

Advertisement

Configuring Destination-Based Flow-Tag Propagation

• A route-policy can have either 'set qos-group' or 'set flow-tag,' but not both for a prefix-set.
• Route policy for qos-group and route policy flow-tag cannot have overlapping routes. The QPPB and
• Mixing usage of qos-group and flow-tag in route-policy and policy-map is not recommended.
• Only destination-based flow-tag propagation is supported.
Configuring Destination-Based Flow-Tag Propagation
The destination-based flow tag feature allows you to match packets based on the flow-tag assigned to the
destination address of the incoming packets. Once matched, you can then apply any supported PBR action
on this policy.
Note
You will not be able to enable both QPPB and flow tag features simultaneously on an interface.
Configuration
Use the following sample configuration to configure destination-based flow-tag propagation.
/* Configure a route policy for flow-tag propagation */
Router(config)# prefix-set FLOWTAG36
Router(config-pfx)# 10.1.30.0/24
Router(config-pfx)# end-set
Router(config)# prefix-set FLOWTAG38
Router(config-pfx)# 10.1.40.0/24
Router(config-pfx)# end-set
Router(config)# route-policy SETFLOWTAG
Router(config-rpl)# if destination in FLOWTAG36 then set flow-tag 36 endif
Router(config-rpl)# if destination in FLOWTAG38 then set flow-tag 38 endif
Router(config-rpl)# end-policy
Router(config)# commit
Tue Apr
/* Configure the class map and policy map for flow-tag propagation */
Router(config)# class-map type traffic match-any FLOWMATCH36
Router(config-cmap)# match flow-tag 36
Router(config-cmap)# end-class-map
Router(config)# class-map type traffic match-any FLOWMATCH38
Router(config-cmap)# match flow-tag 38
Router(config-cmap)# end-class-map
Router(config)# policy-map type pbr FLOWMATCH
Router(config-pmap)# class type traffic FLOWMATCH36
Router(config-pmap-c)# redirect ipv4 nexthop 20.20.20.1
Router(config-pmap-c)# exit
Router(config-pmap)# class type traffic FLOWMATCH38
Router(config-pmap-c)# drop
Router(config-pmap-c)# exit
Router(config-pmap)# class type traffic DEFAULT
Router(config-pmap-c)# exit
Router(config-pmap)# end-policy-map
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
96
flow tag features can coexist (on same as well as on different interfaces) as long as the route policy used
by them do not have any overlapping route.
3 15:10:07.223 IST
Implementing BGP

Advertisement

Table of Contents
loading

Table of Contents