ipv6 route

Configure a static route to destination IPv6 address prefixes. Use this command to create static routes for data traffic in the GRT.

Syntax

Command Parameters

cost <1-65535>
Specifies the cost or distance ratio to reach the destination for this node. The default cost is 1.
enable
Enables the static route on the port. The default state for a new static route is enable.
next-hop WORD<0-46>
Specifies the IPv6 address of the next hop on this route. You do not need to specify the next hop if the devices directly connect to one another. Configure the next hop if the two nodes do not share the same network prefix but reside on the same link.
port {slot/port[/sub-port]}
Specifies the port to which this entry applies. You must specify the port if the next hop is a link-local address.

Identifies a single slot and port. If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

preference <1-255>
Specifies the routing preference of the destination IPv6 address. The default preference is 5.
tunnel <1-2000>
Specifies the tunnel to which this entry applies.
vlan <1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.

WORD<0-46>
Specifies the IPv6 destination network address.

Default

The default state for a new static route is enable.

Command Mode

Global Configuration