The following commands assign a weight of 1000 to all routes router LA receives from AS 100 and assign a weight of 500 to all routes router LA receives from AS 300:
- host1(config)#router bgp 400
- host1(config-router)#neighbor 10.5.5.1 remote-as
100
- host1(config-router)#neighbor 10.5.5.1 weight
1000
- host1(config-router)#neighbor 10.72.4.2 remote-as
300
- host1(config-router)#neighbor 10.72.4.2 weight
500
Router LA sends traffic through router Boston in preference to router NY.