Users Guide

Table Of Contents
2. Change the LOCAL_PREF value for routes meeting the criteria of this route map in ROUTE-MAP mode, then return to
CONFIGURATION mode.
set local-preference value
exit
3. Enter ROUTER-BGP mode.
router bgp as-number
4. Enter the neighbor to apply the route map configuration in ROUTER-BGP mode.
neighbor {ip-address}
5. Apply the route map to the neighbors incoming or outgoing routes in ROUTER-BGP-NEIGHBOR-AF mode.
route-map map-name {in | out)
6. Enter the peer group to apply the route map configuration in ROUTER-BGP mode.
template template-name
7. Apply the route map to the peer groups incoming or outgoing routes in CONFIG-ROUTER-TEMPLATE-AF mode.
route-map map-name {in | out}
Configure and view local preference attribute
OS10(config)# route-map bgproutemap 1
OS10(conf-route-map)# set local-preference 500
OS10(conf-route-map)# exit
OS10(config)# router bgp 10
OS10(conf-router-bgp-10)# neighbor 10.1.1.4
OS10(conf-router-neighbor)# address-family ipv4 unicast
OS10(conf-router-bgp-neighbor-af)# route-map bgproutemap in
OS10 configure terminal
OS10(config)# route-map bgproutemap 1
OS10(conf-route-map)# set local-preference 500
OS10(conf-route-map)# exit
OS10(config)# router bgp 64601
OS10(conf-router-bgp-64601)# template bgppg
OS10(conf-router-template)# address-family ipv4 unicast
OS10(conf-router-bgp-template-af)# route-map bgproutemap in
View route-map
OS10(conf-route-map)# do show route-map
route-map bgproutemap, permit, sequence 1
Match clauses:
Set clauses:
local-preference 500
metric 400
origin incomplete
Weight attribute
You can influence the BGP routing based on the weight value. Routes with a higher weight value have preference when multiple
routes to the same destination exist.
1. Assign a weight to the neighbor connection in ROUTER-BGP mode.
neighbor {ip-address}
2. Set a weight value for the route in ROUTER-NEIGHBOR mode (1 to 4294967295, default 0).
weight weight
640
Layer 3