ipv6 route
Use this command to create an IPv6 static route.
Use the no form of this command to delete a static route
Using an interface name as the gateway next-hop for an IPv6 static route is not supported.
Command Syntax
ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) IFNAME
ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X
ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X IFNAME
ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) IFNAME (<1-255>|) (track <1-500>|) (description LINE|)
ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X (<1-255>|) (track <1-500>|) (recursive|) (description LINE|)
ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X IFNAME (<1-255>|) (track <1-500>|) (recursive|) (description LINE|)
ipv6 route vrf NAME (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X IFNAME global (track <1-500>|) (recursive|)
ipv6 route vrf NAME (X:X::X:X/M|X:X::X:X X:X::X:X) IFNAME global (track <1-500>|)
no ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) IFNAME
no ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X
no ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X IFNAME
no ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) IFNAME {<1-255>|track <1-500>|description LINE}
no ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X {<1-255>|track <1-500>|recursive|description LINE}
no ipv6 route (vrf NAME|) (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X IFNAME {<1-255>|track <1-500>|recursive|description LINE}
no ipv6 route vrf NAME (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X IFNAME global
no ipv6 route vrf NAME (X:X::X:X/M|X:X::X:X X:X::X:X) X:X::X:X IFNAME global {track <1-500>|recursive}
no ipv6 route vrf NAME (X:X::X:X/M|X:X::X:X X:X::X:X) IFNAME global
no ipv6 route vrf NAME (X:X::X:X/M|X:X::X:X X:X::X:X) IFNAME global (track <1-500>|)
Parameters
vrf NAME
Specifies the user-defined VRF instance name.
X:X::X:X/M
Denotes the subnet by specifying the IPv6 address destination prefix along with a mask length.
X:X::X:X X:X::X:X
Specifies the subnet with an IPv6 destination address and its corresponding mask.
X:X::X:X
Specifies the gateway's next-hop IPv6 address.
IFNAME
Specifies the gateway's next-hop interface name.
global
Global table lookup (to support inter-VRF static route leaking).
<1-255>
Specifies the administrative distance value.
track <1-500>
Associates a tracking ID with an IPv6 static route for the tracked object.
description LINE
Adds a description to the static route, with a maximum character limit of 80.
recursive
Enables recursive lookup behavior for the next-hop in each static route. By default, it is disabled.
Default
None
Command Mode
Configure mode
Applicability
Introduced in OcNOS version 1.3. Added a new parameter recursive in OcNOS version 6.6.0.
Example
#configure terminal
(config)#ipv6 route 1234::/64 1000::1 128
(config)#ipv6 route 1235::/64 eth1 32
(config)#ipv6 route vrf vrf3 1236::/64 eth3
(config)#end
#show ipv6 route vrf all
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
IA - OSPF inter area, E1 - OSPF external type 1,
E2 - OSPF external type 2, E - EVPN N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2, i - IS-IS, B - BGP
Timers: Uptime
IP Route Table for VRF "default"
C ::1/128 via ::, lo, 23:35:55
C 2::2/128 via ::, lo, 23:35:55
C 1000::/64 via ::, eth1, 00:07:45
S 1234::/64 [128/0] via 1000::1, eth1, 00:07:04
S 1235::/64 [32/0] via ::, eth1, 00:06:38
C 6000::/64 via ::, eth1, 23:35:55
C 7000::/64 via ::, eth7, 23:35:55
C fe80::/64 via ::, eth7, 23:35:55
IP Route Table for VRF "management"
IP Route Table for VRF "vrf3"
S 1236::/64 [1/0] via ::, eth3, 00:00:13
C 3000::/64 via ::, eth3, 00:07:55
C fe80::/64 via ::, eth3, 00:08:05
#show ipv6 route vrf all static
IP Route Table for VRF "default"
S 1234::/64 [128/0] via 1000::1, eth1, 00:15:28
S 1235::/64 [32/0] via ::, eth1, 00:15:02
IP Route Table for VRF "management"
IP Route Table for VRF "vrf3"
S 1236::/64 [1/0] via ::, eth3, 00:08:37