09-10-2015 08:05 AM - edited 03-08-2019 01:43 AM
Hi,
I have two directly connected routers:
R1 <--Gi 0/2 --------- Gi 0/2 --> R2
R1:
! hostname R1 ! vrf definition blue rd 3005:20 route-target export 3005:20 route-target import 3005:1 route-target import 3005:10 ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family ! vrf definition red rd 3005:10 route-target export 3005:10 route-target import 3005:1 route-target import 3005:20 ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family ! vrf definition shared description SHARED VRF rd 3005:1 route-target export 3005:1 route-target import 3005:10 route-target import 3005:20 ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family ! interface GigabitEthernet0/1 vrf forwarding shared ip address 10.4.6.6 255.255.255.0 ipv6 address 2000::10:4:6:6/112 ospfv3 1 ipv4 area 0 ospfv3 1 ipv6 area 0 ! interface GigabitEthernet0/2 no ip address ! interface GigabitEthernet0/2.10 description VRF red encapsulation dot1Q 10 vrf forwarding red ip address 10.6.11.1 255.255.255.128 ipv6 address 2000::10:6:11:1/113 ospfv3 1 ipv6 area 54 ospfv3 1 ipv4 area 54 ! interface GigabitEthernet0/2.20 description VRF blue encapsulation dot1Q 20 vrf forwarding blue ip address 10.6.11.129 255.255.255.128 ipv6 address 2000::10:6:11:8001/113 ospfv3 1 ipv6 area 0 ospfv3 1 ipv4 area 0 ! router ospfv3 1 router-id 6.6.6.6 ! address-family ipv4 unicast vrf shared redistribute bgp 3005 exit-address-family ! address-family ipv6 unicast vrf shared redistribute bgp 3005 exit-address-family ! address-family ipv4 unicast vrf red redistribute bgp 3005 default-information originate always exit-address-family ! address-family ipv6 unicast vrf red default-information originate always redistribute bgp 3005 exit-address-family ! address-family ipv4 unicast vrf blue redistribute bgp 3005 default-information originate always exit-address-family ! address-family ipv6 unicast vrf blue default-information originate always redistribute bgp 3005 exit-address-family ! router bgp 3005 bgp router-id 6.6.6.6 bgp log-neighbor-changes no bgp default ipv4-unicast ! address-family ipv4 vrf blue redistribute ospfv3 1 exit-address-family ! address-family ipv6 vrf blue network 2000::10:6:11:8000/113 exit-address-family ! address-family ipv4 vrf red redistribute ospfv3 1 exit-address-family ! address-family ipv6 vrf red network 2000::10:6:11:0/113 exit-address-family ! address-family ipv4 vrf shared redistribute ospfv3 1 exit-address-family ! address-family ipv6 vrf shared network 2000::10:4:6:0/112 exit-address-family !
R2:
! hostname R2 ! vrf definition blue ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family ! vrf definition red ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family ! interface GigabitEthernet0/1 ip address 10.10.11.11 255.255.255.0 ipv6 address 2000::10:10:11:11/112 ! interface GigabitEthernet0/2 no ip address ! interface GigabitEthernet0/2.10 encapsulation dot1Q 10 vrf forwarding red ip address 10.6.11.2 255.255.255.128 ipv6 address 2000::10:6:11:2/113 ospfv3 1 ipv6 area 54 ospfv3 1 ipv4 area 54 ! interface GigabitEthernet0/2.20 encapsulation dot1Q 20 vrf forwarding blue ip address 10.6.11.130 255.255.255.128 ipv6 address 2000::10:6:11:8002/113 ospfv3 1 ipv4 area 0 ospfv3 1 ipv6 area 0 ! router ospfv3 1 ! address-family ipv4 unicast vrf red exit-address-family ! address-family ipv6 unicast vrf red exit-address-family ! address-family ipv4 unicast vrf blue exit-address-family ! address-family ipv6 unicast vrf blue exit-address-family !
I did the following pings:
R2>ping vrf red 10.6.11.130 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.6.11.130, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 3/3/4 ms R2>ping vrf red 2000::10:6:11:8002 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2000::10:6:11:8002, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/3 ms R2>ping vrf red 10.6.11.129 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.6.11.129, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 3/3/4 ms R2>ping vrf red 2000::10:6:11:8001 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2000::10:6:11:8001, timeout is 2 seconds: ..... Success rate is 0 percent (0/5)
What is wrong with the last Ping?
Thanks in advance,
Best regards
09-11-2015 04:24 AM
The address that you are trying to ping is in vrf blue but your ping is trying to access it in vrf red.
HTH
Rick
09-11-2015 05:12 AM
That is true, I want to do Inter-VRF-Routing on Router R1.
All 4 Pings are Pings from Router R2 (vrf red) to vrf blue on both Routers.
With IPv4 everything works fine, the IPv6 Ping from
R2 (red) --> R1 (red) --> R1 (blue) --> R2 (blue)
works fine too, the only Problem is the IPv6 Ping from
R2 (red) --> R1 (red) --> R1 (blue)
IPv4 works fine for the same ping source/ destination Interface.
The Routing Tables
R1/ IPv4
R1>show ip route vrf * Routing Table: blue Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks B 10.4.6.0/24 is directly connected, 23:43:36, GigabitEthernet0/1 L 10.4.6.6/32 is directly connected, GigabitEthernet0/1 B 10.6.11.0/25 is directly connected, 23:17:01, GigabitEthernet0/2.10 L 10.6.11.1/32 is directly connected, GigabitEthernet0/2.10 C 10.6.11.128/25 is directly connected, GigabitEthernet0/2.20 L 10.6.11.129/32 is directly connected, GigabitEthernet0/2.20 Routing Table: red Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks B 10.4.6.0/24 is directly connected, 23:43:36, GigabitEthernet0/1 L 10.4.6.6/32 is directly connected, GigabitEthernet0/1 C 10.6.11.0/25 is directly connected, GigabitEthernet0/2.10 L 10.6.11.1/32 is directly connected, GigabitEthernet0/2.10 B 10.6.11.128/25 is directly connected, 23:43:36, GigabitEthernet0/2.20 L 10.6.11.129/32 is directly connected, GigabitEthernet0/2.20 Routing Table: shared Gateway of last resort is not set 10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks C 10.4.6.0/24 is directly connected, GigabitEthernet0/1 L 10.4.6.6/32 is directly connected, GigabitEthernet0/1 B 10.6.11.0/25 is directly connected, 23:17:01, GigabitEthernet0/2.10 L 10.6.11.1/32 is directly connected, GigabitEthernet0/2.10 B 10.6.11.128/25 is directly connected, 23:43:36, GigabitEthernet0/2.20 L 10.6.11.129/32 is directly connected, GigabitEthernet0/2.20
R1/ IPv6
R1>show ipv6 route vrf * Routing Table: blue B 2000::10:4:6:0/112 [20/0] via GigabitEthernet0/1%shared, directly connected B 2000::10:6:11:0/113 [20/0] via GigabitEthernet0/2.10%red, directly connected C 2000::10:6:11:8000/113 [0/0] via GigabitEthernet0/2.20, directly connected L 2000::10:6:11:8001/128 [0/0] via GigabitEthernet0/2.20, receive L FF00::/8 [0/0] via Null0, receive Routing Table: red B 2000::10:4:6:0/112 [20/0] via GigabitEthernet0/1%shared, directly connected C 2000::10:6:11:0/113 [0/0] via GigabitEthernet0/2.10, directly connected L 2000::10:6:11:1/128 [0/0] via GigabitEthernet0/2.10, receive B 2000::10:6:11:8000/113 [20/0] via GigabitEthernet0/2.20%blue, directly connected L FF00::/8 [0/0] via Null0, receive Routing Table: shared C 2000::10:4:6:0/112 [0/0] via GigabitEthernet0/1, directly connected L 2000::10:4:6:6/128 [0/0] via GigabitEthernet0/1, receive B 2000::10:6:11:0/113 [20/0] via GigabitEthernet0/2.10%red, directly connected B 2000::10:6:11:8000/113 [20/0] via GigabitEthernet0/2.20%blue, directly connected L FF00::/8 [0/0] via Null0, receive
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide