PurposeCommand or Action
Specifies the BGP AS number and enters the BGP
configuration mode, allowing you to configure the BGP
routing process.
router bgp as-number
Example:
RP/0/RSP0/CPU0:router(config)# router bgp 120
Step 6
Configures the local router with a specified router ID.
bgp router-id ip-address
Example:
RP/0/RSP0/CPU0:router(config-bgp)# bgp router-id
192.168.70.24
Step 7
Specifies either the IPv4 or IPv6 address family and
enters address family configuration submode.
address-family { ipv4 | ipv6 } unicast
Example:
RP/0/RSP0/CPU0:router(config-bgp)# address-family
ipv4 unicast
Step 8
To see a list of all the possible keywords and arguments
for this command, use the CLI help (?).
Exits the current configuration mode.exit
Example:
RP/0/RSP0/CPU0:router(config-bgp-af)# exit
Step 9
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/RSP0/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:
RP/0/RSP0/CPU0:router(config-bgp-nbr)# remote-as
2002
Step 11
Specifies either the IPv4 or IPv6 address family and
enters address family configuration submode.
address-family { ipv4 | ipv6 } unicast
Example:
RP/0/RSP0/CPU0:router(config-bgp-nbr)#
address-family ipv4 unicast
Step 12
To see a list of all the possible keywords and arguments
for this command, use the CLI help (?).
(Optional) Applies the specified policy to inbound IPv4
unicast routes.
route-policy route-policy-name { in | out }
Example:
RP/0/RSP0/CPU0:router(config-bgp-nbr-af)#
route-policy drop-as-1234 in
Step 13
commit
Step 14
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
OL-30423-03 77
Implementing BGP
Enabling BGP Routing