Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3 |
router
bgp
autonomous-system-number
Example:
Router(config)# router bgp 45000
|
Enters router configuration mode to create or configure a BGP routing process.
|
Step 4 |
scope
{global
|
vrf
vrf-name}
Example:
Router(config-router)# scope global
|
Defines the scope to the BGP routing process and enters router scope configuration mode.
BGP general session commands that apply to a single network, or a specified VRF, are entered in this configuration mode.
Use the
global keyword to specify that BGP uses the global routing table.
Use the
vrf keyword and
vrf-name argument to specify that BGP uses a specific VRF routing table. The VRF must already exist.
|
Step 5 |
neighbor
{ip-address|
peer-group-name}
remote-as
autonomous-system-number
Example:
Router(config-router-scope)# neighbor 172.16.1.2 remote-as 45000
|
Adds the IP address of the neighbor in the specified autonomous system to the multiprotocol BGP neighbor table of the local router.
|
Step 6 |
neighbor
{ip-address|
peer-group-name}
transport{connection-mode {active |
passive} |
path-mtu-discovery |
multi-session |
single-session}
Example:
Router(config-router-scope)# neighbor 172.16.1.2 transport multi-session
|
Enables a TCP transport session option for a BGP session.
Use the
connection-mode keyword to specify the type of connection, either active or passive.
Use the
path-mtu-discovery keyword to enable TCP transport path maximum transmission unit (MTU) discovery.
Use the
multi-session keyword to specify a separate TCP transport session for each address family.
Use the
single-session keyword to specify that all address families use a single TCP transport session.
|
Step 7 |
address-family
ipv4
[mdt |
multicast |
unicast]
Example:
Router(config-router-scope)# address-family ipv4
|
Specifies the IPv4 address family and enters router scope address family configuration mode.
Use the
mdt keyword to specify IPv4 MDT address prefixes.
Use the
multicast keyword to specify IPv4 multicast address prefixes.
Use the
unicast keyword to specify the IPv4 unicast address family. By default, the router is placed in address family configuration mode for the IPv4 unicast address family if the
unicast keyword is not specified with the
address-family
ipv4 command.
Non-topology-specific configuration parameters are configured in this configuration mode.
|
Step 8 |
topology
{base|
topology-name}
Example:
Router(config-router-scope-af)# topology VIDEO
|
Configures the topology instance in which BGP will route class-specific or base topology traffic, and enters router scope address family topology configuration mode.
|
Step 9 |
bgp
tid
number
Example:
Router(config-router-scope-af-topo)# bgp tid 100
|
Associates a BGP routing process with the specified topology ID.
|
Step 10 |
neighbor
ip-address
activate
Example:
Router(config-router-scope-af-topo)#
neighbor 172.16.1.2 activate
|
Enables the BGP neighbor to exchange prefixes for the NSAP address family with the local router.
Note
| If you have configured a peer group as a BGP neighbor, you do not use this command because peer groups are automatically activated when any peer group parameter is configured.
|
|
Step 11 |
neighbor
{ip-address|
peer-group-name}
translate-topology
number
Example:
Router(config-router-scope-af-topo)# neighbor 172.16.1.2 translate-topology 200
|
(Optional) Configures BGP to install routes from a topology on another router to a topology on the local router.
|
Step 12 |
end
Example:
Router(config-router-scope-af-topo)# end
|
(Optional) Exits router scope address family topology configuration mode and returns to privileged EXEC mode.
|
Step 13 |
clear
ip
bgp
topology
{* |
topology-name} {as-number |
dampening [network-address [network-mask]] |
flap-statistics [network-address [network-mask]] |
peer-group
peer-group-name |
table-map |
update-group [number |
ip-address]} [in [prefix-filter] |
out|
soft [in [prefix-filter] |
out]]
Example:
Router# clear ip bgp topology VIDEO 45000
|
Resets BGP neighbor sessions under a specified topology or all topologies.
|
Step 14 |
show
ip
bgp
topology
{* |
topology}
summary
Example:
Router# show ip bgp topology VIDEO summary
|
(Optional) Displays BGP information about a topology.
Note
| Only the syntax required for this task is shown. For more details, see the Cisco IOS IP Routing: BGP Command Reference.
|
|