IPv6 route source interface
Syntax
ipv6 route <IPv6 ADDR/MEMBER><IPv6 ADDR> source <INTERFACE>
[<DISTANCE> | <VRF INSTANCE-NAME>]
no ipv6 route
Description
Creates a route leak between the source VRF and destination VRF. Using the static method, the route must first be added to the destination VRF. The route is added to the local interface of the source VRF with a next-hop interface. The existing IPv6 route command takes the source interface only when next-hop IP is link-local. To support VRF route leaking for global IPv6 unicast addresses, the command takes next-hop interface information along with next-hop IP regardless of next-hop IP is link-local or not.
Users must provide both the next-hop IP and the interface information to leak the global unicast IPv6 network routes (route that is not directly reachable).
The next-hop IP information is not required to leak connected global unicast IPv6 routes (route that is directly reachable).
The
[no]
form of command deletes the static VRF leaked route.
Command context
config
Parameters
- <IPv6 ADDR/MEMBER>
Required: IPv6 IP-Address route destination.
Some switches (such as the Aruba 8400 Switch Series), use the format member/slot/port (for example, 1/1/1).
- <IPv6 ADDR>
Required: IPv6 route destination
- <INTERFACE>
Required: The outgoing interface in an m/s/p format
- <DISTANCE>
Optional: administrative distance of static route
- <VRF INSTANCE-NAME>
Optional: VRF instance
Options
blackhole
- Discard packets to the destined route silently.
reject
Discard packets to the destined route and return ICMP error to the sender.
Authority
Administrators
Examples
Configures a route leak between the source VRF and destination VRF:
switch(config)# show runn
Current configuration:
!
vrf blue
vrf green
vrf red
!
vlan 1
interface 1/1/1
no shutdown
vrf attach red
ip address 2000::1/64
interface 1/1/2
no shutdown
vrf attach green
ip address 3000::1/64
interface 1/1/3
no shutdown
vrf attach blue
ip address 4000::1/64
switch(config)# ipv6 route 5000::0/64 3000::2 source 1/1/2 vrf red
switch(config)# ipv6 route 6000::0/64 3000::3 source 1/1/2 vrf blue
switch(config)# show runn
Current configuration:
!
vrf blue
vrf green
vrf red
!
vlan 1
interface 1/1/1
no shutdown
vrf attach red
ip address 2000::1/64
interface 1/1/2
no shutdown
vrf attach green
ip address 3000::1/64
interface 1/1/3
no shutdown
vrf attach blue
ip address 4000::1/64
ipv6 route 5000::0/64 3000::2 source 1/1/2 vrf red
ipv6 route 6000::0/64 3000::3 source 1/1/2 vrf blue
switch(config)# no ipv6 route 5000::0/64 3000::2 source 1/1/2 vrf red
switch(config)# no ipv6 route 6000::0/64 3000::3 source 1/1/2 vrf blue
switch(config)# show runn
Current configuration:
!
vrf blue
vrf green
vrf red
!
vlan 1
interface 1/1/1
no shutdown
vrf attach red
ip address 2000::1/64
interface 1/1/2
no shutdown
vrf attach green
ip address 3000::1/64
interface 1/1/3
no shutdown
vrf attach blue
ip address 4000::1/64