ipv6 route
This command provides support for configuring IPv6 static routes (destination prefix).
Syntax
ipv6 route vrf <VRF anme> <IPv6 destination address>/<prefix> <IPv6 gateway address> <interface name> <interface ID> [<metric value>] [track <track ID>] [description <string>] ipv6 route <IPv6 destination address>/<prefix> [<next hop>] <interface name> <interface ID> [<metric value>] [track <track ID>] [description <string>]
This syntax describes a route that depends also on the source prefix of the packets:
Ipv6 route [vrf <VRF name>] source <IP source prefix>|local-voip destination <IP destination prefix> [<next hop>] <interface type> <interface ID> [<metric value>] [track <track ID>] [output-vrf <name>] [description <string>]
Command |
Description |
|
---|---|---|
VRF Name |
Defines the vrf name. |
|
IPv6 source prefix or local-voip |
Defines the IP source prefix as X:X::X:X/M MSBR in single network mode can also be set with local-voip to define the route source address to all VoIP packets generated locally by the MSBR |
|
IPv6 destination prefix |
Defines an IPv6 prfix as X:X::X:X/M. |
|
next hop |
Defines the next hop for routing |
|
metric value |
Defines the priority (0 - 255) of the route in the routing table. The smaller the value, the higher the priority of the route. |
|
track id |
Defines the option to make the route dependable on the configured track. (1-100). Up to two tracking objects can be configured (track <first track number> track <second track number>) and in this scenario, the route will only be active if both tracking objects are in "up" state. |
|
output-vrf |
Defines the outout vrf, for route leaking between vrfs. |
|
description |
Defines a route description. |
Interface Type (ifname) |
Interface ID |
|
---|---|---|
gigabitethernet |
GigabitEthernet interface slot and port (VLAN ID is optional) |
[SLOT/PORT.VLANID] |
cellular |
Cellular interface ID |
0/0 |
gre |
Tunnel GRE ID |
[1-255] |
ipip |
Tunnel IPIP ID |
[1-255] |
l2tp |
L2TP ID |
[0-99] |
pppoe |
PPPoE interface ID |
[1-3] |
pptp |
PPTP ID |
[0-99] |
vlan |
Vlan ID |
[1-3999] |
loopback |
Loopback ID |
[1-5] |
bvi |
Bridge interface |
[1-255] |
Interface |
Description |
|
---|---|---|
a.b.c.d |
Defines the IP address. |
Note
■ | This command is applicable only to data-router functionality. |
■ | IPv6 support is available only if the installed Software License Key contains the IPv6 Feature Key. |
Command Mode
Privileged User
Example
■ | This example configures an IPv6 static route. |
(config-data)# ipv6 route 2001:10::/64 2050:8:: GigabitEthernet 0/0 1
■ | The IPv6 static route can be displayed using the regular show running-config command or the following new IPv6 command: |
# show data ipv6 route [<ipv6-address[prefix]>] [connected] [kernel] [static] [summary]