Consider the following scenario:
The requirements for using route maps to set weight for specific prefixes received from a neighbor are as follows.
- Create a prefix-list to define the interesting traffic
- Define a route map, name
- Match the prefix-list
- Set the weight
- Provide a default permit statement for catch-all
- Apply to the BGP neighbor statement using the following syntax:
neighbor <neighbor IP> route-map <route-map name> in