
Purpose
Command or Action
Specifies the autonomous system number and enters the
BGP configuration mode, allowing you to configure the
BGP routing process.
router bgp as-number
Example:
RP/0/RP0/CPU0:router(config)# router bgp 120
Step 2
Sets the default metric, which is used to set the MED to
advertise to peers for routes that do not already have a
metric set (routes that were received with no MED attribute).
default-metric value
Example:
RP/0/RP0/CPU0:router(config-bgp)# default metric
10
Step 3
commit
Step 4
Configuring BGP Weights
Perform this task to assign a weight to routes received from a neighbor. A weight is a number that you can
assign to a path so that you can control the best-path selection process. If you have particular neighbors that
you want to prefer for most of your traffic, you can use the
weight
command to assign a higher weight to all
routes learned from that neighbor.
Before you begin
The
clear bgp
command must be used for the newly configured weight to take effect.
Note
SUMMARY STEPS
1.
configure
2.
router bgp as-number
3.
neighbor ip-address
4.
remote-as as-number
5.
address-family
{
ipv4
|
ipv6
}
unicast
6.
weight
weight-value
7.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Specifies the autonomous system number and enters the
BGP configuration mode, allowing you to configure the
BGP routing process.
router bgp as-number
Example:
RP/0/RP0/CPU0:router(config)# router bgp 120
Step 2
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
53
Implementing BGP
Configuring BGP Weights