06-19-2021 02:03 AM - edited 06-19-2021 02:08 AM
PE-1 is advertising routes to PE-5 via MP-BGP. Route-target import has not been configured on PE-5 for VRF TEST although routes are being received and installed in "show ip bgp vpnv4 all" but not not being installed in show ip bgp vpnv4 vrf TEST.
Why is PE-5 accepting routes and installed in "show ip bgp vpnv4 all" even though route-target export has not been configured? Is it default behavior , kind of bug or configuration mistake ?
PE-5#sh running-config | section vrf ->VRF configuration
ip vrf TEST
rd 5:5
route-target export 100:100
ip vrf forwarding TEST
Solved! Go to Solution.
06-19-2021 02:09 AM
we may be receiving GRT, is there any announcement in GRT From P ?
post the config of the device all.
show us an example output of the route you receiving in PE 5
06-19-2021 06:44 AM
when you export and import used, all will be exported and imported.
you can view best as per below :
show ip bgp vpnv4 vrf XXX
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-external
06-19-2021 08:04 AM
Hi Harold Ritter
It was configuration mistake . I configured route-reflector client command on PE-5 that is what it was receiving all routes without matching import command .Thanks for response.
06-19-2021 02:09 AM
we may be receiving GRT, is there any announcement in GRT From P ?
post the config of the device all.
show us an example output of the route you receiving in PE 5
06-19-2021 06:36 AM
Hi balaji.bandi
It was configuration mistake . I configured route-reflector client command on PE-5 that is what it was receiving all routes without matching import command .Thanks for response.
I would like to clear one more doubt. As per my understanding if PE-5 receive subnet "x" from different PE routers, PE-5 installs all information in "show ip bgp vpnv4 all" and import only best path to "show ip bgp vpnv4 vrf TEST". I hope I am correct. If it is wrong please correct it
06-19-2021 06:44 AM
when you export and import used, all will be exported and imported.
you can view best as per below :
show ip bgp vpnv4 vrf XXX
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, x best-external
06-20-2021 03:15 AM - edited 06-20-2021 03:20 AM
May I know why I am getting different output in each VRF table.?
As per my understanding import only best path to VRF table. show ip bgp vpnv4 vrf xxx .
>When PE-5 importing 10.89.16.0/24, it is being shown only best path in VRF TEST table but same time there are all paths in VRF NEW.
>VRF NEW is having same RD value on PE-5 (Import PE for 10.89.16.0/24) and on PE-1 and PE-2 (Export PE for 10.89.16.0/24)(RD=1:1)
>VRF TEST is having rd 5:5 on PE-5 (Import PE for 10.89.16.0/24) and on PE-1 and PE-2 are having rd 1:1 (Export PE for 10.89.16.0/24)
PE-5#sh ip bgp vpnv4 all
BGP table version is 101, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf NEW)
*>i 10.89.16.0/24 2.2.2.2 0 100 0 65000 ?
* i 2.2.2.2 0 100 0 65000 ?
Route Distinguisher: 5:5 (default for vrf TEST)
*>i 10.89.16.0/24 2.2.2.2 0 100 0 65000 ?
PE-5#
PE-5#sh ip bgp vpnv4 vrf TEST
BGP table version is 101, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 5:5 (default for vrf TEST)
*>i 10.89.16.0/24 2.2.2.2 0 100 0 65000 ? ---->Showing only best path
PE-5#
PE-5#sh ip bgp vpnv4 vrf NEW
BGP table version is 101, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf NEW)
*>i 10.89.16.0/24 2.2.2.2 0 100 0 65000 ?
* i 2.2.2.2 0 100 0 65000 ?---->Showing all imported paths
PE-5#
VRF configuration of PE routers
=========================
PE-1 - VRF
==========
ip vrf TEST
rd 1:1
route-target export 200:200
PE-2 - VRF
==========
ip vrf TEST
rd 1:1
route-target export 200:200
PE-5 - VRF
==========
ip vrf NEW
rd 1:1
route-target import 200:200
ip vrf TEST
rd 5:5
route-target import 200:200
06-19-2021 08:00 AM
Hi @Ratheesh mv ,
This is not default behavior. Do you have "no bgp default route-target filter" configured on PE-5 by any chance?
Regards,
06-19-2021 08:04 AM
Hi Harold Ritter
It was configuration mistake . I configured route-reflector client command on PE-5 that is what it was receiving all routes without matching import command .Thanks for response.
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