02-07-2023 06:18 AM
I have a new NCS540 router configured with mpls, ospf, bgp and a few vrf's. This NCS540 has a connection with a ASR9k within the same mpls domain. The strange thing is that the command "show route vrf XXX is not showing the expected results, but only the local loopback ip address. I need to use command "show bgp vpnv4 unicast vrf XXX to see the expected results. For my understanding the show route vrf XXX should also be working.
Has anyone experienced this problem before?
02-07-2023 06:33 AM
show bgp vpnv4 all
then check each VRF with it RD to see the prefix
02-08-2023 07:53 AM
Do you have an import statement in your vrf configuration?
Sam
02-16-2023 01:18 PM
Here' s my vrf config.
vrf Internet
address-family ipv4 unicast
import route-target
64534:1
!
export route-target
64534:1
!
02-16-2023 02:00 PM
What code are you running and how many characters is your VRF name?
Is there a traffic impact or can you ping a route that is in your BGP VRF table?
Sam
02-16-2023 02:06 PM
My software code is Cisco IOS XR Software, Version 7.3.2
02-16-2023 02:20 PM
Thanks. This is a bit tricky to debug without seeing the router, are there any alarms on the router, or errors in the syslog? Is it the same behavior for all VRFs? Can you ping to any non-connected route in the vrf?
02-17-2023 01:33 AM
I run small lab and I see in both
show ip bgp vpnv4 vrf CE
and
show ip route vrf CE
are the show ip bgp vpnv4 vrf CE x.x.x.x <<- check if route is receive with MPLS Lab
and check this lab in
show mpls forwarding
02-17-2023 11:53 AM
Can you share the XR configs you used (since its a minimal setup)? I suspect something might be missing from the configuration we are troubleshooting.
Sam
02-17-2023 11:56 AM
sorry I use IOS not IOS XR,
but let explain what hapened
usually the Router use Next-hop to forward the traffic but
the VPNv4 advertise the prefix with next-hop and label, and the router use label to forward the traffic if the label is missing then it use next-hop but next-hop for VPNv4 is not found in RIB of VRF, and hence the route is not add to RIB.
am I right??
02-17-2023 12:35 PM
I wonder if we forgot redistibute connected or something like that? That would explain the next-hop not found and it was mentioned that only the loopback is showing in the vrf rib. Having the full bgp vrf config would be helpful for this scenario, the only major difference in XR is that you have to use an rpl for eBGP or we wont get any routes but thats not our issue as the bgp table has the routes.
Sam
02-17-2023 12:41 PM
Having the full bgp vrf config would be helpful for this scenario <<- that indeed will help us in this issue.
thanks a lot.
02-17-2023 01:49 PM
02-17-2023 02:04 PM
show ip bgp vpnv4 vrf x z.z.z.z <<- only share the output of prefix that not appear in VRF RIB
02-17-2023 02:52 PM
Here is what I'm thinking, you have no up dataports for that VRF so there is no next hop that can be programmed. I need to test on Monday. Is this a PE or RR? RR won't install the routes.
Sam
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