
Purpose
Command or Action
Places the router in neighbor configuration mode for BGP
routing and configures the neighbor IP address as a BGP
peer.
neighbor ip-address
Example:
RP/0/RP0/CPU0:router(config-bgp)# neighbor
172.168.40.24
Step 3
Creates a neighbor and assigns a remote autonomous system
number to it.
remote-as as-number
Example:
Step 4
RP/0/RP0/CPU0:router(config-bgp-nbr)# remote-as
2002
Specifies either the IPv4 or IPv6 address family and enters
address family configuration submode.
address-family
{
ipv4
|
ipv6
}
unicast
Example:
Step 5
To see a list of all the possible keywords and arguments for
this command, use the CLI help (?).
RP/0/RP0/CPU0:router(config-bgp-nbr)#
address-family ipv4 unicast
Assigns a weight to all routes learned through the neighbor.
weight
weight-value
Example:
Step 6
RP/0/RP0/CPU0:router(config-bgp-nbr-af)# weight
41150
commit
Step 7
Tuning the BGP Best-Path Calculation
Perform this task to change the default BGP best-path calculation behavior.
SUMMARY STEPS
1.
configure
2.
router bgp as-number
3.
bgp bestpath med missing-as-worst
4.
bgp bestpath med always
5.
bgp bestpath med confed
6.
bgp bestpath as-path ignore
7.
bgp bestpath compare-routerid
8.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
54
Implementing BGP
Tuning the BGP Best-Path Calculation