05-24-2010 09:30 PM - last edited on 03-25-2019 03:29 PM by ciscomoderator
I have three routers A (PE), B (PE) and C (CE). A and B has MPBGP between them and B and C has OSPF (vrf CCIE) between the. When trying to redistribute OSPF in to MPGBP on B, I saw a book configured
router bgp 100
address-family ipvpn4 vrf CCIE
redistribute connected ...................................................1
redistribute OSPF 5 vrf CCIE match internal external 2 external 1................2
My questions are below.
1. Why is "redistrubuted connected" , wont the connected route between B and C be redistributed if its not configured ?
2. If only "redistribute OSPF 5 vrf CCIE" is configured, wont external (1 and 2) and internal route be redistributed along ?
05-25-2010 12:14 AM
Hello Just,
1) the VRF access link would be present in router LSA or both CE and PE node, as a result of this it should be redistributed from OSPF 5 vrf CCIE into BGP address-faimly ipv4 vrf CCIE. your understanding is correct
2) again without any matching conditions the PE should accept all LSAs received from CE node unless they have the down bit set that would mean they were originated by another PE node.
Hope to help
Giuseppe
05-25-2010 03:52 AM
Hi Just,
1. Why is "redistrubuted connected" , wont the connected route between B and C be redistributed if its not configured ?
- As mentioned by Giuseppe, redistributing OSPF will adverise connected interfaces whcih are part of OSPF process. Basically when any routing protocol is redistributed into other, below 2 steps will be followed. For simplicity assume protocol A is redistributed to protocol B,
a. All prefixes learnt via protocol A and installed in routing table "show ip route
b. All connected interface whcih are part of protocol A will be candidates for redistribution.
Skip step b if you have "redistribute connected" enabled under protocol B.
2. If only "redistribute OSPF 5 vrf CCIE" is configured, wont external (1 and 2) and internal route be redistributed along ?
- When OSPF is redistributed into BGP, by default it will not advertise any external prefixes. You need to match external inorder to get them redistributed.
HTH,
Nagendra
05-25-2010 08:00 AM
Hello Nagendra,
thanks for your correction
Best Regards
Giuseppe
05-25-2010 10:36 PM
Thanks both,
Just Lab it, my finding is...
1. "redistributed connected" need not be specified as the OSPF connected route (and internal routes) is redistributed in BGP by default.
2. " redistribute ospf 1 vrf CCIE match external 1 external 2" needs to be explicitly configured before external (1 and 2) can be redistributed.
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