Use this command to configure an IPv6 static route. The ipv6-prefix is the IPv6 network that is the destination of the static route. The prefix_length is the length of the IPv6 prefix - a decimal value (usually 0-64) that shows how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash mark must precede the prefix_length. The next-hop-address is the IPv6 address of the next hop that can be used to reach the specified network. Specifying Null0 as nexthop parameter adds a static reject route. The preference parameter is a value the router uses to compare this route with routes from other route sources that have the same destination. The range for preference is 1-255, and the default value is 1. The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The keyword vlan is used to specify the VLAN ID of the routing VLAN directly instead of a unit/slot/port format. You can specify a unit/slot/port or vlan id or tunnel tunnel_id interface to identify direct static routes from point-to-point and broadcast interfaces. The interface must be specified when using a link-local address as the next hop. A route with a preference of 255 cannot be used to forward traffic.
Use the track object-number to specify that the static route is installed only if the configured track object is up. When the track object is down the static route is removed from the Route Table. Use the no form of this command to delete the tracked static route. The object-number parameter is the object number representing the object to be tracked. The range is from 1 to 128. Only one track object can be associated with a specific static route. If you configure a different track object, the previously configured track object is replaced by the newly configured track object. To display the IPv6 static routes that being tracked by track objects, use the show ipv6 route track-table command.
| Default | Disabled |
| Format | ipv6 route ipv6-prefix/prefix_length {next-hop-address | Null0 | interface {unit/slot/port | vlan 1-4093 | tunnel tunnel_id} next-hop-address} [preference] [track object- number] |
| Mode | Global Config |