distance (IS-IS)

Use this command to configure the administrative distance for IS-IS routes.

Syntax

distance [isis {external | internal}] weight
no distance [isis {external | internal}]

Parameters

isis external | internal (Optional) Applies the distance value to either external or internal routes only.

The value for intra-area distance must be less than the value for external distance.

weight Specifies an administrative distance for IS-IS routes. Valid values are 1-255. Default: 115.

Defaults

If route type is not specified, the distance value will be applied to all IS-IS routes.

Mode

IS-IS router configuration or IS-IS IPv6 unicast address family configuration.

Usage

If several routes (coming from different protocols) are presented to the Route Table Manager (RTM), the protocol with the lowest administrative distance will be chosen for route installation. By default, IS-IS administrative distance is set to 110. The distance command can be used to change this value, resetting IS-IS‘s route preference in relation to other routes as shown in the table below.

Route Source Default Distance
Connected 0
Static 1
BGP (S-, 7100-Series) 20 - Routes external to the AS

200 - Routes internal to the AS

OSPF 110
RIP 120

You must be in IS-IS IPv6 unicast address family configuration mode to configure distance on an IPv6 IS-IS router instance. Use address-family to enter IS-IS IPv6 unicast address family configuration mode.

The distance isis command applies the value to the specified external or internal route type only.

The “no” form of this command resets IS-IS administrative distance to the default value of 115.

Example

This example shows how to change the administrative distance for external IS-IS routes to 100:

System(rw-config)->router isis
System(rw-config-isis)->distance isis external 100