Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing BGP on Cisco IOS XR Software
How to Implement BGP on Cisco IOS XR Software
RC-76
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Step 4
exit
Example:
RP/0/RP0/CPU0:router(config-bgp-af)# exit
Exits the current configuration mode.
Step 5
neighbor-group name
Example:
RP/0/RP0/CPU0:router(config-bgp)#
neighbor-group nbr-grp-A
Places the router in neighbor group configuration mode.
Step 6
remote-as as-number
Example:
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)#
remote-as 2002
Creates a neighbor and assigns a remote autonomous
system number to it.
Step 7
address-family {ipv4 unicast | ipv4 multicast |
ipv4 labeled-unicast | ipv4 tunnel | ipv4 mdt |
ipv6 unicast | ipv6 multicast | ipv6
labeled-unicast | vpnv4 unicast | vpnv6
unicast}
Example:
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)#
address-family ipv4 unicast
Enters neighbor group address family configuration mode
for the specified address family.
Step 8
route-policy route-policy-name {in | out}
Example:
RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)#
route-policy drop-as-1234 in
(Optional) Applies the specified policy to inbound IPv4
unicast routes.
Step 9
exit
Example:
RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)#
exit
Exits the current configuration mode.
Step 10
exit
Example:
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# exit
Exits the current configuration mode.
Step 11
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 as a BGP
peer.
Step 12
use neighbor-group group-name
Example:
RP/0/RP0/CPU0:router(config-bgp-nbr)# use
neighbor-group nbr-grp-A
(Optional) Specifies that the BGP neighbor inherit
configuration from the specified neighbor group.
Command or Action Purpose