4.1.6. ipv6 route

Syntax

ipv6 route ipv6-addr/length route-ipv6-addr

no ipv6 address ipv6-addr/length

Parameter


ipv6-addr/length Destination ipv6 prefix and length

route-ipv6-addr Forwarding router’s ipv6 address


Default

The ipv6 routing entry is not configured by default.

Mode

Global configuration and vlan interface configuration.

Usage

Use the ipv6 route command to configure a static ipv6 routing entry.

Use the no ipv6 address command to delete a static ipv6 routing entry. You can verify your setting by entering the show ipv6 route static Privileged EXEC command.

Example

The following example shows how to configure an ipv6 routing entry.

Switch(config)# ipv6 route 2002:01::01:01/96 2001:01::01:02
Switch# show ipv6 route static
Codes: A - active, I - inactive
I 2002:1::/96 [1/1] via 2001:1::1:2, inactive