Implementing BGP on Cisco IOS XR Software
How to Implement BGP on CiscoIOS XR Software
RC-76
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Step4 exit
Example:
RP/0/RP0/CPU0:router(config-bgp-af)# exit
Exits the current configuration mode.
Step5 neighbor-group name
Example:
RP/0/RP0/CPU0:router(config-bgp)#
neighbor-group nbr-grp-A
Places the router in neighbor group configuration mode.
Step6 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.
Step7 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.
Step8 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.
Step9 exit
Example:
RP/0/RP0/CPU0:router(config-bgp-nbrgrp-af)#
exit
Exits the current configuration mode.
Step10 exit
Example:
RP/0/RP0/CPU0:router(config-bgp-nbrgrp)# exit
Exits the current configuration mode.
Step11 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.
Step12 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