Reference Guide

4 Enter the neighbor to apply the route map conguration in ROUTER-BGP mode.
neighbor {ip-address}
5 Apply the route map to the neighbor’s 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 conguration in ROUTER-BGP mode.
template template-name
7 Apply the route map to the peer group’s incoming or outgoing routes in CONFIG-ROUTER-TEMPLATE-AF mode.
route-map map-name {in | out}
Congure 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
Inuence 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
5 Set a weight value for the route in ROUTER-TEMPLATE mode.
weight weight
Modify weight attribute
OS10(config)# router bgp 10
OS10(config-router-bgp-10)# neighbor 10.1.1.4
OS10(config-router-neighbor)# weight 400
OS10(config-router-neighbor)# exit
276
Layer 3