System information
BSR 64000 Configuration and Management Guide
12-36
Example
For example, the commands in the following example configure Router Los Angeles
(as shown in Figure 12-13) using the neighbor weight command. This configuration
assigns the weight attribute of 1000 to all route updates received from AS 100 and
assigns 500 to the weight attribute of all route updates from AS 300. This causes
Router Los Angeles to send traffic through Router Boston to destinations reachable
via both the ASs.
MOT(config)#router bgp 400
MOT(config-bgp)#neighbor 3.3.3.1 remote-as 100
MOT(config-bgp)#neighbor 3.3.3.1 weight 1000
MOT(config-bgp)#neighbor 4.4.4.1 remote-as 300
MOT(config-bgp)#neighbor 4.4.4.1 weight 500
Using a Route Map
The commands in the following example configure Router Los Angeles using a route
map. In the commands to configure Router Los Angeles, Instance 10 or route map 10
assigns a weight of 1000 to any updates from AS 100. Instance 20 assigns a weight of
500 to updates from any other AS.
Example
MOT(config)#router bgp 400
MOT(config-bgp)#neighbor 3.3.3.1 remote-as 100
MOT(config-bgp)#neighbor 3.3.3.1 route-map 10 in
MOT(config-bgp)#neighbor 4.4.4.1 remote-as 300
MOT(config-bgp)#neighbor 4.4.4.1 route-map 10 in
MOT(config-bgp)#exit
MOT(config)#ip as-path access-list 1 permit ^100
MOT(config)#route-map 10 permit 10
MOT(config)#match as-path 1
MOT(config)#set weight 1000
MOT(config)#route-map 10 permit 20
MOT(config)#set weight 500