System information

Configuring BGP
12-57
MOT(config)#router bgp 200
MOT(config-bgp)#neighbor 5.5.5.2 remote-as 100
MOT(config-bgp)#neighbor 4.4.4.2 remote-as 100
MOT(config-bgp)#neighbor 6.6.6.1 remote-as 300
The following commands configure Router Los Angeles:
MOT(config)#router bgp 300
MOT(config-bgp)#neighbor 6.6.6.2 remote-as 200
MOT(config-bgp)#neighbor 6.6.6.2 route-map 10 out
MOT(config-bgp)#neighbor 7.7.7.1 remote-as 100
MOT(config-bgp)#exit
MOT(config)#route-map 10 permit 10
MOT(config)#set metric 25
The following commands configure Router New York:
MOT(config)#router bgp 100
MOT(config-bgp)#neighbor 5.5.5.1 remote-as 200
MOT(config-bgp)#neighbor 5.5.5.1 route-map 10 out
MOT(config-bgp)#neighbor 3.3.3.1 remote-as 100
MOT(config-bgp)#exit
MOT(config)#route-map 10 permit 10
MOT(config)#set metric 100
The following commands configure Router Boston:
MOT(config)#router bgp 100
MOT(config-bgp)#neighbor 4.4.4.1 remote-as 200
MOT(config-bgp)#neighbor 4.4.4.1 route-map 10 out
MOT(config-bgp)#neighbor 3.3.3.2 remote-as 100
MOT(config-bgp)#neighbor 7.7.7.2 remote-as 300
MOT(config-bgp)#exit
MOT(config)#route-map 10 permit 10
MOT(config)#set metric 150
In the following commands, the bgp always-compare-med command changes the
configuration of Router Chicago so that it considers the MED attribute from Router
Los Angeles:
MOT(config)#router bgp 200
MOT(config-bgp)#neighbor 5.5.5.2 remote-as 100
MOT(config-bgp)#neighbor 4.4.4.2 remote-as 100
MOT(config-bgp)#neighbor 6.6.6.1 remote-as 300
MOT(config-bgp)#bgp always-compare-med