Matching metric type for IS-IS routes
About this task
Use this procedure to match the external metric-type by using a
route-map for any of the following cases:
accepting a remote IS-IS route with the help of IS-IS accept policies.
redistributing IS-IS routes into other protocols.
Before you begin
You must configure the required SPBM and IS-IS infrastructure.
You must log on to the route-map configuration mode in the CLI.
Procedure
Example
Match metric type for IS-IS routes:
Switch:1> enable Switch:1# configure terminal Switch:1(config)# route-map ro1 10 Switch:1(route-map)# match metric-type-isis internal Switch:1(route-map)# permit Switch:1(route-map)# enableMatch metric type for IS-IS routes in accept policies:
Switch:1> enable Switch:1# configure terminal Switch:1(config)# route-map ro1 10 Switch:1(route-map)# match metric-type-isis internal Switch:1(route-map)# permit Switch:1(route-map)# enable Switch:1(route-map)# exit Switch:1(config)# router isis Switch:1(config-isis)# accept route-map ro1 Switch:1(config-isis)# exit Switch:1(config)# isis apply acceptMatch metric type to redistribute IS-IS routes into some other protocol (OSPF,RIP,BGP)
Switch:1> enable Switch:1# configure terminal Switch:1(config)# route-map ro1 10 Switch:1(route-map)# match metric-type-isis internal Switch:1(route-map)# permit Switch:1(route-map)# enable Switch:1(route-map)# exit Switch:1(config)# router bgp Switch:1(router-bgp)# redistribute isis route-map ro1 Switch:1(router-bgp)# exit Switch:1(config)# ip bgp apply redistribute
Variable definitions
The following table defines parameters for the match metric-type-isis command.
Variable |
Value |
---|---|
metric-type-isis {any|internal|external} |
Specifies the IS-IS metric type.
|