ipv6 route source interface
ipv6 route
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.
Parameter |
Description |
---|---|
Required: IPv6 IP-Address route destination. |
|
Required: IPv6 route destination |
|
Required: The outgoing interface. Use the formatmember/slot/port(for example,1/3/1). |
|
Optional: administrative distance of static route |
|
Optional: VRF instance |
Options
nullroute
reject
Discard packets to the destined route and return ICMP error to the sender.
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
使用这个com的有关特性的更多信息mand, refer to theIP Routing Guidefor your switch model.
Command History
Release |
Modification |
---|---|
10.10 |
Inclusive language update. |
10.07 or earlier |
-- |
Command Information
Platforms |
Command context |
Authority |
---|---|---|
8400 |
config |
Administrators or local user group members with execution rights for this command. |