
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
206
Specifies either an IPv4 or IPv6 address family unicast 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
Sets the next-hop attribute for all routes advertised to the
specified neighbor to the address of the local router.
next-hop-self
Example:
Step 6
Disabling the calculation of the best next hop to use when
RP/0/RP0/CPU0:router(config-bgp-nbr-af)#
next-hop-self
advertising a route causes all routes to be advertised with
the local network device as the next hop.
commit
Step 7
Configuring BGP Community and Extended-Community Advertisements
Perform this task to specify that community/extended-community attributes should be sent to an eBGP
neighbor. These attributes are not sent to an eBGP neighbor by default. By contrast, they are always sent to
iBGP neighbors. This section provides examples on how to enable sending community attributes. The
send-community-ebgp
keyword can be replaced by the
send-extended-community-ebgp
keyword to
enable sending extended-communities.
If the
send-community-ebgp
command is configured for a neighbor group or address family group, all
neighbors using the group inherit the configuration. Configuring the command specifically for a neighbor
overrides inherited values.
BGP community and extended-community filtering cannot be configured for iBGP neighbors. Communities
and extended-communities are always sent to iBGP neighbors under IPv4, and IPv6 address families.
Note
SUMMARY STEPS
1.
configure
2.
router bgp as-number
3.
neighbor ip-address
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
70
Implementing BGP
Configuring BGP Community and Extended-Community Advertisements