Configure BGP Neighbor Group and Neighbors
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr)# remote-as 2002
Creates a neighbor and assigns a remote autonomous system number to it.
Step 14
commit
BGP Neighbor Configuration: Example
The following example shows how BGP neighbors on an autonomous system are configured to share
information. In the example, a BGP router is assigned to autonomous system 109, and two networks are listed
as originating in the autonomous system. Then the addresses of three remote routers (and their autonomous
systems) are listed. The router being configured shares information about networks 172 .16 .0.0 and 192.168
.7.0 with the neighbor routers. The first router listed is in a different autonomous system; the second neighbor
and remote-as commands specify an internal neighbor (with the same autonomous system number) at address
172 .26 .234.2; and the third neighbor and remote-as commands specify a neighbor on a different autonomous
system.
route-policy pass-all
pass
end-policy
router bgp 109
address-family ipv4 unicast
address-family ipv4 unicast
address-family ipv4 unicast
address-family ipv4 unicast
Disable BGP Neighbor
Perform this task to administratively shut down a neighbor session without removing the configuration.
BGP Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.2.x
38
network 172.16.0.0 255.255.0.0
network 192.16831.7.0 255.255.0.0
neighbor 172.16.200.1
remote-as 167
exit
route-policy pass-all in
route-policy pass-out out
neighbor 172.26.234.2
remote-as 109
exit
neighbor 172.26.64.19
remote-as 99
exit
route-policy pass-all in
route-policy pass-all out
Implementing BGP