Setting metric type for IS-IS routes

About this task

Use this procedure to set the IS-IS 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 routes from other protocols into IS-IS.

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

  1. Enter Route-Map Configuration mode:

    enable

    configure terminal

    route-map WORD<1-64> <1-65535>

  2. Set IS-IS metric type:

    set metric-type-isis {any|internal|external}

  3. Permit the route policy action:

    permit

  4. Enable the route policy

    enable

Example

Set metric type for IS-IS routes:
Switch:1> enable
Switch:1# configure terminal
Switch:1(config)# route-map ro1 10
Switch:1(route-map)# set metric-type-isis internal
Switch:1(route-map)# permit
Switch:1(route-map)# enable
Set 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)# set 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 accept
Set metric type to redistribute routes from other protocols into IS-IS:
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)# redistribute bgp route-map ro1
Switch:1(config-isis)# exit
Switch:1(config)# isis apply redistribute

Variable definitions

The following table defines parameters for the set metric-type-isis command.

Variable

Value

metric-type-isis {any|internal|external}

Specifies the IS-IS metric type.
  • internal – permits or denies routes that are internal to the IS-IS domain.

  • external – permits or denies routes that originate from an external routing protocol domain.

  • any – permits or denies both internal routes as well as external routes.