An engineer is configuring MPLS L3VPN on a Cisco IOS XE router. The customer edge (CE) router uses OSPF and the provider edge (PE) router must redistribute OSPF routes into MP-BGP. Which configuration is required on the PE to prevent routing loops and ensure proper route propagation?
Trap 1: Configure a route distinguisher (RD) and route target (RT) under…
RD and RT are essential for MPLS L3VPN to identify VPN routes and control import/export, but they do not specifically prevent routing loops when redistributing OSPF into MP-BGP. The loop prevention is achieved by using the OSPF domain ID and the BGP extended community, which are separate from RD/RT configuration.
Trap 2: Enable OSPF sham link between PE routers to carry VPN traffic.
An OSPF sham link is used to create a backdoor link between VPN sites over the MPLS backbone to avoid routing through the hub site, but it does not prevent loops when redistributing OSPF into MP-BGP. Sham links are for optimal routing, not for loop prevention in redistribution.
Trap 3: Configure BGP cost community to influence path selection.
BGP cost community is used to influence best path selection, but it does not prevent routing loops during OSPF redistribution. The loop prevention mechanism for OSPF into MP-BGP is the OSPF domain ID carried as a BGP extended community, not the cost community.
- A
Configure a route distinguisher (RD) and route target (RT) under the VRF address family.
Why it fails: RD and RT are essential for MPLS L3VPN to identify VPN routes and control import/export, but they do not specifically prevent routing loops when redistributing OSPF into MP-BGP. The loop prevention is achieved by using the OSPF domain ID and the BGP extended community, which are separate from RD/RT configuration.
- B
Enable OSPF sham link between PE routers to carry VPN traffic.
Why it fails: An OSPF sham link is used to create a backdoor link between VPN sites over the MPLS backbone to avoid routing through the hub site, but it does not prevent loops when redistributing OSPF into MP-BGP. Sham links are for optimal routing, not for loop prevention in redistribution.
- C
Set the OSPF domain ID under the VRF and configure the BGP extended community to carry it.
When redistributing OSPF into MP-BGP, the OSPF domain ID is used to prevent routes from being redistributed back into the same OSPF domain. The PE router attaches the domain ID as a BGP extended community, and when routes are redistributed back into OSPF, the domain ID is checked to avoid loops. This is critical for MPLS L3VPN with OSPF.
- D
Configure BGP cost community to influence path selection.
Why it fails: BGP cost community is used to influence best path selection, but it does not prevent routing loops during OSPF redistribution. The loop prevention mechanism for OSPF into MP-BGP is the OSPF domain ID carried as a BGP extended community, not the cost community.