ipv6 route

Last Updated : Nov 06, 2012 |

Adds a static route for a remote IPv6 network. Use the no ipv6 route CLI command to delete a static route.

Note:

You can specify up to three next hops.

Syntax

ipv6 route <ipv6–addr> <prefix-length> <next-hop>[%zone-id] [<next-hop>[%zone-id]] [<next-hop>[%zone-id]]

no ipv6 route <ipv6–addr> <prefix-length> <next-hop>[%zone-id]

Parameters

Parameter

Description

Possible Values

Default Value

ipv6-addr

Address of remote IPv6 network.

prefix length

The length in bits of the network part of the address

0 — 128

next-hop

The next hop address in the network.

zone-id

VLAN number

1 — 4,090

User level

read-write

Context

general

Example

To define a static route to the network 2001:db:2179:1:: via next-hop global address 64 2001:db8:2179::2:

Gxxx-001(super)# ipv6 route 2001:db8:2179:1::1 64 2001:db8:2179::2

To define a static route to the specific host 2001:db8:2179:1::1 via next-hop with the link-local address FE80::205:32FF:FE01:C800 and zone ID "%Vlan1"

Gxxx-001(super)# ipv6 route 2001:db8:2179:1::1 64 FE80::205:32FF:FE01:C800%Vlan1