Configure A Class Map - Cisco NCS 6000 Series Configuration Manual

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

Advertisement

Implementing BGP Flowspec
Command or Action
RP/0/RP0/CPU0:router(config-bgp-af)# exit
Step 5
neighbor ip-address
Example:
RP/0/RP0/CPU0:router(config-bgp)#neighbor 1.1.1.1
Step 6
remote-as as-number
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr)#remote-as 100
Step 7
address-family { ipv4 } flowspec
Example:
RP/0/RP0/CPU0:router(config-bgp)# address-family
ipv4 flowspec

Configure a Class Map

In order to associate the ePBR configuration to BGP flowspec you must perform these sub-steps: define the
class and use that class in ePBR to define the action. The steps to define the class include:
SUMMARY STEPS
1. configure
2. class-map [type traffic] [match-all] class-map-name
3. match match-statement
4. end-class-map
DETAILED STEPS
Command or Action
Step 1
configure
Step 2
class-map [type traffic] [match-all] class-map-name
Example:
RP/0/RP0/CPU0:router(config)# class-map type
traffic match all classc1
Step 3
match match-statement
Example:
RP/0/RP0/CPU0:router(config-cmap)# match protocol
ipv4 1 60
Purpose
Places the router in neighbor configuration mode for BGP
routing and configures the neighbor IP address as a BGP
peer.
Assigns a remote autonomous system number to the
neighbor.
Specifies an address family and enters address family
configuration submode, and initializes the global address
family for flowspec policy mapping.
Purpose
Creates a class map to be used for matching packets to the
class whose name you specify and enters the class map
configuration mode. If you specify match-any , one of the
match criteria must be met for traffic entering the traffic
class to be classified as part of the traffic class. This is the
default. If you specify match-all , the traffic must match
all the match criteria.
Configures the match criteria for a class map on the basis
of the statement specified. Any combination of tuples 1-13
match statements can be specified here. The tuple definition
possibilities include:
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
Configure a Class Map
113

Advertisement

Table of Contents
loading

Table of Contents