Tuesday, February 21, 2012

BGP and IGP next hop alignment

When overlaying BGP onto an IGP topology you need to mindful that the next hop addresses align with the igp routing of those next hops. If there are differences then routing loops may occur.

R5#trace 200.200.200.200

Type escape sequence to abort.
Tracing the route to 200.200.200.200

  1 7.7.70.3 16 msec 16 msec 20 msec
  2 7.7.70.3 !H  *  !H


before changing next hop

router bgp 4
 no synchronization
 bgp log-neighbor-changes
 neighbor 7.7.3.3 remote-as 44
 neighbor 7.7.3.3 ebgp-multihop 10
 neighbor 7.7.3.3 update-source Loopback0
 neighbor 7.7.3.3 soft-reconfiguration inbound
 neighbor 7.7.3.3 route-map SETLP in
 neighbor 7.7.3.3 route-map SETMED out
 neighbor 7.7.4.4 remote-as 4
 neighbor 7.7.4.4 update-source Loopback0
 neighbor 7.7.4.4 next-hop-self
 neighbor 7.7.4.4 soft-reconfiguration inbound
 neighbor 7.7.4.4 route-map nh1 in
 no auto-summary

route-map nh1 permit 10
 set ip next-hop 7.7.70.4


Need this because

R5#s ip route | inc 7.7.4.0
D EX    7.7.4.0 [170/26140160] via 7.7.70.3, 07:08:35, Serial0/0
R5#











No comments: