04-20-2022 02:56 PM
See attached for diagram:
04-20-2022 03:03 PM - edited 04-20-2022 04:11 PM
..
04-20-2022 03:25 PM
04-20-2022 03:29 PM
I could not open ZIP in may MacBook, can you share it as photo?
04-20-2022 03:51 PM
04-20-2022 04:11 PM - edited 04-20-2022 04:37 PM
...
04-20-2022 04:17 PM
Yes, i would like R2 to use the direct link to R1 (Which is running OSPF). Because of the lower AD, I think R2 would prefer the MPLS link.
04-20-2022 04:40 PM
So R2 is CE and have two path for prefix in R1
one via eBGP "between CE-R2 and MPLS Core" which have 20 and other is direct connect OSPF which have 90 ??
using backdoor,
see this link below both case using backdoor and sham-link.
https://networkinferno.net/ccie-study-ospf-sham-link
04-20-2022 04:17 PM
R2 advertises a /24 (10.1.0.0/24) subnet to the MPLS network – R3 will advertise this route to R1. How can I tell R3 to advertise a /16 (10.1.0.0/16 le 32) to R1 (not the specific route the /24) keep in mind R3 does not originate the route?
I think you config redundancy by this way
ip route 10.1.0.0/16 null0 <- in R3
router bgp
net 10.1.0.0 mask 255.255.0.0
this make R3 advertise /16 to R1 and still R1 receive /24 from R2 and prefer it "longest match of routing table"
when this /24 prefix disappear then still R1 have path via R3 /16
04-20-2022 03:17 PM - edited 04-20-2022 04:03 PM
1.) You could lower the AD of OSPF to choose that first
2.) You could add a route tag to the redistributed routes on R2 and filter them out when they try to leave the OSPF interface back to R1.
3.) YOU could do a BGP summary route on exit interface of R3 with extras:
aggregate-address 10.1.0.0 255.255.255.0 summary-only advertise-map <route-map-name> (route map references prefix list of le 16)
04-21-2022 12:46 AM - edited 04-21-2022 12:49 AM
Hello
A possible alternative if I understand your OP could be to use a condition within bgp, so if certain prefixes are seen within the bgp rib of R3 then withdraw an advertised prefix to R1
Example
R2 advertise 10.1.0.1/32
R3 to advertise 10.1.0.0/28 to R1 if 10.1.0.1/32 is not seen in its bgp rib table sent by R2
R3
access-list 10 permit host 10.1.0.1
access-list 20 permit host 10.1.0.0 0.0.0.15
route-map missing-routes
match ip address 10
route-map advertise-route
match ip address 20
router bgp xx
neighbor (r1) advertise-map advertise-route non-exist-map missing-routes
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