There is a example let you know how IOS router select which route into forwarding table. The topology is here "R1----eBGP----R2----ospf----R3
Both R1,R3 adv the route 192.168.1.0/24 to R2.
Q1, R2 will select R1 as next-hop, the reasion is AD value of eBGP is 20, OSPF is 110. eBGP win.
Q2, If R2 redsibute ospf into BGP then what ?
This make a little bit confuse here. R1 or R3 is the next-hop ?
Answer is R3 why ?
Once again, compare AD from eBGP and OSPf ?? NO, Then OSPF into BGP this makes 2 the same routes in the BGP table, from eBGP peer and from IGP with incomplete code (?). also the local generate route in the BGP table wil have higher weight the eBGP, so the best route in BGP table is the (?) route which is learn from OSPF. so R2 will using R3 as next-hop to 192.168.1.0/24.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment