Cisco Systems IOS XR Laptop User Manual


 
Implementing BGP on Cisco IOS XR Software
How to Implement BGP on Cisco IOS XR Software
RC-38
Cisco IOS XR Routing Configuration Guide
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.
Restrictions
The clear bgp command must be used for the newly configured weight to take effect.
SUMMARY STEPS
1. configure
2. router bgp autonomous-system-number
3. neighbor ip-address
4. remote-as autonomous-system-number
5. address-family {ipv4 unicast | ipv4 multicast | ipv6 unicast | ipv6 multicast}
6. weight weight-value
7. end
or
commit
DETAILED STEPS
Command or Action Purpose
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Enters global configuration mode.
Step 2
router bgp
autonomous-system-number
Example:
RP/0/RP0/CPU0:router(config)# router bgp 120
Enters BGP configuration mode allowing you to configure
the BGP routing process.
Step 3
neighbor
ip-address
Example:
RP/0/RP0/CPU0:router(config-bgp)# neighbor
172.168.40.24
Places the router in neighbor configuration mode for BGP
routing and configures the neighbor IP address
172.168.40.24 as a BGP peer.
Step 4
remote-as
autonomous-system-number
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr)# remote-as
2002
Creates a neighbor and assigns it a remote autonomous
system number of 2002.