cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2495
Views
1
Helpful
25
Replies

Cannot ping directly connected interface after a route leak

jhonnywblue
Level 1
Level 1

Need help in troubleshooting the following issue.

I have a router with the following interfaces:

Gi 0/1/0 - Global Routing.

Gi 0/1/1.123 -  VRF "A"

Loopback 0 - VRF "A"

Gi 0/1/0 is directly connected to a PC. PC has a default gateway set. I want to ping the PC through vrf A interface. I was able to route leak connected subnets from GRT to VRF using "ip vrf receive" and route-map commands. 

I cannot ping the PC IP address through VRF "A" but I can ping my own interface Gi 0/1/0 (which is GRT) through VRF A.

Please help.

@Peter Paluch

25 Replies 25

Harold Ritter
Level 12
Level 12

Hi @jhonnywblue ,

I was able to route leak connected subnets from GRT to VRF

You also need reachability from GRT to VRF as follow:

ip route <prefix assigned to Gi 0/1/1.123> <subnet mask> Gi 0/1/1.123

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

I tried this command and it did not help. I am still not able to ping the PC IP address from router using VRF. 

Check the arp table on the router - "show ip arp vrf A" to be sure you have L2 connectivity between the router and the PC in VRF "A" over Gi 0/1/1.123 subinterface  

I did ran the command "show ip arp vrf A" and I do not see the entry for the PC IP address (X.Y.100.1) that I am pinging in there. 

Here are the IPs

PC: X.Y.100.1

Router (Gi 0/0/0, Global): X.Y.100.254

Router (Gi 0/0/1.123, VRF A): A.B.100.2

When pinging global to X.Y.100.1, it is working fine. When pinging using vrf to the same address, it is not working. 

Hope this helps!

Share config you use.

On Router:

int Gi 0/0/0

ip vrf receive A

ip address X.Y.100.254 255.255.255.0

ip policy route-map GRT_TO_VRF

 

ip access list standard Leak_Route

permit X.Y.100.1 

route-map GRT_TO_VRF permit 10

match ip address Leak_Route

set ip vrf A next-hop A.B.100.3

I apologize, I will take my words back. I don't see an arp entry for the PC IP address under "show ip arp vrf A" table. However, I do see the entry in the regular arp table. 

Hi @jhonnywblue ,

I don't see an arp entry for the PC IP address under "show ip arp vrf A" table. However, I do see the entry in the regular arp table.

This is normal, as the PC is connected to the interface that belongs to the GRT, hence ARP will take place in the GRT for the PC.

Do you have a route in the VRF for the GRT subnet?

Do you have a route in the GRT for the VRF subnet?

If not, it will not work.

Try the following:

1. remove the "ip vrf receive" that is currently configured.

2. add "ip route A.B.100.0 <A.B.100.0 subnet mask> Gi0/1/1.123

3. add "ip route vrf A X.Y.100.1 255.255.255.255 Gi 0/0/0 X.Y.100.1

4. make sure the PC has a default gateway pointing to X.Y.100.254

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thank you for the reply. I will give a shot. Yes, I do see a route inside VRF for the GRT subnet. I added a static route for the VRF subnet into GRT, but that did not work, so I deleted that static route. 

Currently, I don't have a route inside GRT for VRF subnet. 

 

Hi Harold,

It still did not resolve the issue after I applied the recommended steps on the router. I couldn't ping the PC IP address using VRF. I even lost the pings for the router IP X.Y.100.254 using VRF. 

Hi @jhonnywblue ,

Can you source the ping from the Gi0/1/1.123 interface as follow:

ping vrf A X.Y.100.1 source Gi0/1/1.123

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

I tried that and it did not work. 

Can you run "deb ip icmp" on the router, run the ping again and see what messages you get.

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

After running "debug ip icmp" command on the router and initiating pings, I don't see any logs on the screen. I see logs of successful pings to different interfaces though.