A route map instance is a set of conditions with an assigned number. The number after the permit keyword designates an instance of a route map. For example, instance 10 of route map 10 begins with the following:
- host1(config)#route-map 10 permit 10
In the following commands to configure router LA, instance 10 of route map 10 assigns a weight of 1000 to any routes from AS 100. Instance 20 assigns a weight of 500 to routes from any other AS.
- host1(config)#router bgp 400
- host1(config-router)#neighbor 10.5.5.1 remote-as
100
- host1(config-router)#neighbor 10.5.5.1 route-map 10 in
- host1(config-router)#neighbor 10.72.4.2 remote-as
300
- host1(config-router)#neighbor 10.72.4.2 route-map 20 in
- host1(config-router)#exit
- host1(config)#route-map 10
- host1(config-route-map)#set weight 1000
- host1(config-route-map)#route-map 20
- host1(config-route-map)#set weight 500
See JUNOSe IP Services Configuration Guide for more information about using route maps.