Users Guide

Table Of Contents
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
3. Return to ROUTER-BGP mode.
exit
4. Assign a weight value to the peer-group in ROUTER-BGP mode.
template template name
594
Layer 3