Configuring administrative distance based on route type

The default administrative distances for intra-area routes, inter-area routes, and external routes can be altered.

Before you begin

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the ipv6 router ospf command to enter OSPFv3 router configuration mode and enable OSPFv3 globally.
    device(config)# ipv6 router ospf
  3. Enter the distance command with the intra-area parameter.
    device(config-ipv6-router-ospf-vrf-default-vrf)# distance intra-area 80
    The administrative distance for intra-area routes is changed from the default to 80.
  4. Enter the distance command with the inter-area parameter.
    device(config-ipv6-router-ospf-vrf-default-vrf)# distance inter-area 90
    The administrative distance for inter-area routes is changed from the default to 90.
  5. Enter the distance command with the external parameter.
    device(config-ipv6-router-ospf-vrf-default-vrf)# distance external 100
    The administrative distance for external routes is changed from the default to 100.

Example

The following example changes the default administrative distances for intra-area routes, inter-area routes, and external routes.

device# configure terminal
device(config)# ipv6 router ospf 
device(config-ipv6-router-ospf-vrf-default-vrf)# distance intra-area 80
device(config-ipv6-router-ospf-vrf-default-vrf)# distance inter-area 90
device(config-ipv6-router-ospf-vrf-default-vrf)# distance external 100