This command changes next hop attribute for received updates to its own IP address.
#neighbor 12.1.1.2 next-hop-self
The neighbor next-hop-unchanged command is used to
configured the propagate the next hop unchanged for multihop eBGP peering
sessions. This command should not be configured on a route reflector, and the neighbor next-hop-self command should not be
used to modify the next hop attribute for a route reflector when this feature
is enabled for a route reflector client.
R2(config-router)#do
show run | s bgp
router bgp
100
no synchronization
bgp log-neighbor-changes
network 2.2.2.0 mask 255.255.255.0
neighbor 12.1.1.1 remote-as 100
neighbor 12.1.1.1 route-reflector-client
neighbor 12.1.1.1 route-map NEXT-HOP-R1 out
neighbor 23.1.1.3 remote-as 100
neighbor 23.1.1.3 route-reflector-client
neighbor 23.1.1.3 route-map NEXT-HOP-R3 out
no auto-summary
R2(config-router)#do
show run | s route-map
neighbor 12.1.1.1 route-map NEXT-HOP-R1 out
neighbor 23.1.1.3 route-map NEXT-HOP-R3 out
route-map
NEXT-HOP-R3 permit 10
set ip next-hop 23.1.1.2
route-map
NEXT-HOP-R1 permit 10
set ip next-hop 12.1.1.2
No comments:
Post a Comment