ipv6 route distance

Syntax

ipv6 route <DEST-IPV6-ADDR>/<MASK> [<NEXT-HOP-IP-ADDR>|<INTERFACE>] distance <VALUE>

no ipv6 route <DEST-IPV6-ADDR>/<MASK> [<NEXT-HOP-IP-ADDR>|<INTERFACE>] distance <VALUE>

Description

Configures the administrative distance for the IPv6 static route

The no form of this command deletes the static route.

Command context

config

Parameters

<DEST-IPV6-ADDR>

Specifies the route destination address in IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), where x is a hexadecimal number from 0 to F.

<MASK>

Specifies the number of bits in the address mask in CIDR format (x), where x is a decimal number from 0 to 128.

<NEXT-HOP-IP-ADDR>

Specifies the next hop in IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), where x is a hexadecimal number from 0 to F.

<INTERFACE>

Specifies the next hop as an outgoing interface.

distance <VALUE>

Specifies the administrative distance to associate with this static route. Range: 1 to 255. Default: 1.

Authority

Administrators or local user group members with execution rights for this command.

Examples

On the 6400 Switch Series, interface identification differs.

switch(config)# ipv6 route 122::/124 1/1/1 distance 5
switch(config)# ipv6 route 123::/124 120::1 distance 6
switch(config)# no ipv6 route 123::/124 120::1 distance 6