
Purpose
Command or Action
Configures the local router with a specified router ID.
bgp router-id ip-address
Example:
Step 7
RP/0/RP0/CPU0:router(config-bgp)# bgp router-id
192.168.70.24
Specifies either the IPv4 or IPv6 address family and enters
address family configuration submode.
address-family
{
ipv4
|
ipv6
}
unicast
Example:
Step 8
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)# address-family
ipv4 unicast
Exits the current configuration mode.
exit
Example:
Step 9
RP/0/RP0/CPU0:router(config-bgp-af)# exit
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 10
Creates a neighbor and assigns a remote autonomous
system number to it.
remote-as as-number
Example:
Step 11
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 12
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
(Optional) Applies the specified policy to inbound IPv4
unicast routes.
route-policy route-policy-name
{
in
|
out
}
Example:
Step 13
RP/0/RP0/CPU0:router(config-bgp-nbr-af)#
route-policy drop-as-1234 in
commit
Step 14
Configuring Multiple BGP Instances for a Specific Autonomous System
Perform this task to configure multiple BGP instances for a specific autonomous system.
All configuration changes for a single BGP instance can be committed together. However, configuration
changes for multiple instances cannot be committed together.
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
48
Implementing BGP
Configuring Multiple BGP Instances for a Specific Autonomous System