ipv6 route

Use this command to add or remove a static IPv6 route.

Syntax

ipv6 route prefix/length {ipv6-address [interface interface-name] [recursive] | vlan vlan-id | vrf egress-vrf } [distance] [tag tag-id]
no ipv6 route prefix/length {ipv6-address [interface interface-name] [recursive] | vlan vlan-id} [distance] [tag tag-id]

Parameters

prefix/prefix-length Specifies a destination IP address in prefix/prefix-length format.
ipv6-ip-address Specifies a next-hop router IP address for this static route.
interface interface-name Specifies a next-hop interface ID for this static route.
vlan vlan-id Specifies a next-hop VLAN interface for this static route. Valid values for VLAN ID: 1 - 4094.
vrf egress-vrf Specifies the egress VRF router that will determine the next hop for the route.
recursive (Optional) Specifies that the next-hop interface is determined by route lookup.
distance (Optional) Specifies an administrative distance metric for this route. Valid values are 1 (default) to 255. Routes with lower values receive higher preference in route selection.
tag tag-id (Optional) Specifies an OSPF tag ID for this route. Valid values are 1 - 4294967295.

Defaults

  • If interface interface-name is not specified when configuring an IPv6 address, a specific interface is not configured for the static route.
  • If distance is not specified, the default value of 1 will be applied.
  • If an OSPF tag ID is not specified, no OSPF tag is associated with the route.
  • If recursive is not specified, see usage section below.

Mode

Global configuration.

Usage

This command is used to configure static routes that will route transit frames.

Use the vrf egress-vrf parameter to point to the egress VRF router that will perform the next-hop lookup for this static route.

If you only enter the prefix/length and the IP address of the nexthop router and do not specify the optional recursive parameter, a search is performed of all configured subnets for a subnet containing the next?hop. If found, the static route will be anchored to that interface, else it will become a recursive route.

The no ipv6 route command removes the specified static IPv6 route.

Examples

This example shows how to configure a static route with a prefix and length of 2001:11ac:fd34::/48, a next hop IPv6 address of 2001:11ac:fd34:3333::4, to determine the next-hop interface using route lookup, and assigns the OSPF tag 65514 to the route:

System(su)->router Internet-Access
System(su-*t-Access)->configure
System(su-*t-Access-config)->ipv6 route 2001:11ac:fd34::/48 2001:11ac:fd34:3333::4 recursive tag 65514