cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
632
Views
5
Helpful
9
Replies

Received Prefix BGP with MPLS VRF but not able to PING

TegarSaputra
Level 1
Level 1

Hai guy, someone can help me about my problem ?. I'm really confused

I'm used Router Reflector

tegarnaxzoe_1-1707442644193.png

 

This Config Router from blue circle mark :

RP/0/0/CPU0:SBYPE01#sh run vrf
Fri Feb 9 01:32:34.521 UTC
vrf TESTING
address-family ipv4 unicast
import route-target
15:10
!
export route-target
15:10
!
!
!

RP/0/0/CPU0:SBYPE01#sh run router bgp
Fri Feb 9 01:32:40.901 UTC
router bgp 4573
bgp router-id 20.20.20.4
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
neighbor 20.20.20.1
remote-as 4573
update-source Loopback0
address-family vpnv4 unicast
!
!
vrf TESTING
rd 15:10
address-family ipv4 unicast
redistribute connected
redistribute static
!
!
!

RP/0/0/CPU0:SBYPE01#sh route vrf TESTING
Fri Feb 9 01:32:58.170 UTC

Gateway of last resort is not set

C 192.168.1.0/30 is directly connected, 00:47:57, GigabitEthernet0/0/0/2.10
L 192.168.1.1/32 is directly connected, 00:47:57, GigabitEthernet0/0/0/2.10

RP/0/0/CPU0:SBYPE01#ping vrf TESTING 192.168.1.1
Fri Feb 9 01:33:13.069 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

And this my problem, received prefix but not able to ping :

(This config from one of routes am i mark with red circle)

RP/0/0/CPU0:TGRPE01#sh route vrf TESTING
Fri Feb 9 01:39:25.301 UTC

Gateway of last resort is not set

B 192.168.1.0/30 [200/0] via 20.20.20.4 (nexthop in vrf default), 00:47:59
RP/0/0/CPU0:TGRPE01#ping vrf TESTING 192.168.1.1
Fri Feb 9 01:39:32.031 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5)

RP/0/0/CPU0:TGRPE01#traceroute vrf TESTING 192.168.1.1
Fri Feb 9 01:43:56.953 UTC
% FIB did not return Source Address


RP/0/0/CPU0:TGRPE01#sh route vrf TESTING 192.168.1.1
Fri Feb 9 01:43:58.903 UTC

Routing entry for 192.168.1.0/30
Known via "bgp 4573", distance 200, metric 0, type internal
Installed Feb 9 00:51:25.809 for 00:52:33
Routing Descriptor Blocks
20.20.20.4, from 20.20.20.1
Nexthop in Vrf: "default", Table: "default", IPv4 Unicast, Table Id: 0xe0000000
Route metric is 0
No advertising protos.

RP/0/0/CPU0:TGRPE01#sh cef vrf TESTING 192.168.1.1
Fri Feb 9 01:44:06.402 UTC
192.168.1.0/30, version 1, internal 0x14004001 0x0 (ptr 0xa0f1d2f4) [1], 0x0 (0x0), 0x410 (0xa1442208)
Updated Feb 9 00:51:25.828
Prefix Len 30, traffic index 0, precedence n/a, priority 3
via 20.20.20.4, 3 dependencies, recursive [flags 0x6000]
path-idx 0 NHID 0x0 [0xa14aa874 0x0]
next hop VRF - 'default', table - 0xe0000000
next hop 20.20.20.4 via 16003/0/21
next hop 178.18.1.6/32 Gi0/0/0/1 labels imposed {16000 16000}
next hop 178.18.1.1/32 Gi0/0/0/2 labels imposed {16003 16000}

RP/0/0/CPU0:TGRPE01#sh run vrf TESTING
Fri Feb 9 01:42:34.199 UTC
vrf TESTING
address-family ipv4 unicast
import route-target
15:10
!
export route-target
15:10
!
!
!

RP/0/0/CPU0:TGRPE01#sh run router bgp
Fri Feb 9 01:42:36.898 UTC
router bgp 4573
bgp router-id 20.20.20.2
address-family ipv4 unicast
redistribute connected
redistribute ospf 1
!
address-family vpnv4 unicast
!
neighbor 20.20.20.1
remote-as 4573
update-source Loopback0
address-family vpnv4 unicast
!
!
vrf TESTING
rd 15:10
address-family ipv4 unicast
redistribute connected
redistribute static
!


1 Accepted Solution

Accepted Solutions

Harold Ritter
Cisco Employee
Cisco Employee

Hi @TegarSaputra ,

TGRPE01 does not have any interface in VRF TESTING. You could add a new loopback interface and configure it inside VRF TESTING. This should  fix the issue.

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

View solution in original post

9 Replies 9

When we test any mpls prefix we use source in ping and traceroute to specify IP reachable by test router

MHM

Harold Ritter
Cisco Employee
Cisco Employee

Hi @TegarSaputra ,

TGRPE01 does not have any interface in VRF TESTING. You could add a new loopback interface and configure it inside VRF TESTING. This should  fix the issue.

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

Thanks sir, it's work. Can i know for the reason ?

He dont need LO 
he already redistribute connected 
he can use 

ping x.x.x.x source <connect interface IP>&nbsp

;

@TegarSaputra as I mention you need to use IP reachable from the test router. 
MHM

Thanks for your answer, but i tried add some subif with same VRF. And it worked. Like mr @Harold Ritter says.

Hi @MHM Cisco World ,

How will TGRPE01 select a source address for the ping or traceroute if it doesn't have a local address it could use inside the VRF?

RP/0/0/CPU0:TGRPE01#sh route vrf TESTING
Fri Feb 9 01:39:25.301 UTC

Gateway of last resort is not set

B 192.168.1.0/30 [200/0] via 20.20.20.4 (nexthop in vrf default), 00:47:59
RP/0/0/CPU0:TGRPE01#

 

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

Now I see he share the

show ip vrf 
but 
vrf TESTING
rd 15:10
address-family ipv4 unicast
redistribute connected <<- this one make him have interface in this VRF ?
redistribute static

@TegarSaputra are you use eBGP between CE and PE ?

MHM

Oh, i'm not yet configure to CE. Just wanna makesure VRF connected at IGP. 

if that case and for test only as @Harold Ritter  mention add LO to vrf and use it as source in ping. 
thanks for clarify 
have a nice day 

MHM

Review Cisco Networking for a $25 gift card