Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
Step 2 |
configure terminal
Example:
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
router bgp
as-number
Example:
Device(config)# router bgp 1
|
Configures an eBGP routing process and places the device in router configuration mode.
- The
as-number argument indicates the number of an autonomous system that identifies the device to other BGP devices and tags the routing information passed along. The range is 0 to 65535. Private autonomous system numbers that can be used in internal networks range from 64512 to 65535.
|
Step 4 |
no bgp default route-target filter
Example:
Device(config-router)# no bgp default route-target filter
|
Disables BGP route-target community filtering.
-
All received VPN-IPv4 routes are accepted by the configured device. Accepting VPN-IPv4 routes is the desired behavior for a device configured as an ASBR.
|
Step 5 |
neighbor {ip-address |
peer-group-name}
remote-as
as-number
Example:
Device(config-router)# neighbor 10.1.0.4 remote-as 1
|
Adds an entry to the BGP or multiprotocol BGP neighbor table.
-
ip-address—IP address of the neighbor.
-
peer-group-name—Name of a BGP peer group.
-
as-number—The autonomous system to which the neighbor belongs.
|
Step 6 |
neighbor {ip-address |
peer-group-name}
update-source
interface-type
interface-number
Example:
Device(config-router)# neighbor 10.1.0.4 update-source loopback 0
|
Allows BGP sessions to use any operational interface for TCP connections.
-
ip-address—IP address of the neighbor.
-
peer-group-name—Name of a BGP peer group.
-
interface-typeinterface-number—Type and number for the operational interface.
This example shows how to set up BGP TCP connections for the specified neighbor with the IP address of the loopback interface rather than the best local address.
|
Step 7 |
neighbor {ip-address |
peer-group-name}
next-hop-self
Example:
Device(config-router)# neighbor 10.1.0.4 next-hop-self
|
Configures the device as the next hop for a BGP neighbor or peer group.
-
ip-address—IP address of the BGP neighbor.
-
peer-group-name—Name of a BGP peer group.
|
Step 8 |
neighbor {ip-address |
peer-group-name}
remote-as
as-number
Example:
Device(config-router)# neighbor 172.16.1.9 remote-as 2
|
Adds an entry to the BGP or multiprotocol BGP neighbor table.
-
ip-address—IP address of the neighbor.
-
peer-group-name—Name of a BGP peer group.
-
as-number—Autonomous system to which the neighbor belongs.
|
Step 9 | Repeat Step 8 for each BGP neighbor.
|
—
|
Step 10 |
address-family vpnv4 [unicast]
Example:
Device(config-router)# address-family vpnv4
|
Enters address family configuration mode.
-
unicast—Specifies a unicast prefix.
This command configures a routing session to carry VPN-IPv4 addresses across the VPN backbone. Each address is globally unique by the addition of an 8-byte RD.
|
Step 11 |
neighbor {ip-address |
peer-group-name}
activate
Example:
Device(config-router-af)# neighbor 10.1.0.4 activate
|
Enables the exchange of information with a neighboring device.
-
ip-address—IP address of the neighbor.
-
peer-group-name—Name of a BGP peer group.
|
Step 12 |
neighbor {ip-address |
peer-group-name}
next-hop-self
Example:
Device(config-router-af)# neighbor 10.1.0.4 next-hop-self
|
Configures the device as the next hop for a BGP neighbor or peer group.
-
ip-address—IP address of the BGP neighbor.
-
peer-group-name—Name of a BGP peer group.
|
Step 13 |
neighbor {ip-address |
peer-group-name}
send-community [both |
standard |
extended]
Example:
Device(config-router-af)# neighbor 10.1.0.4 send-community extended
|
Specifies that a communities attribute should be sent to a BGP neighbor.
-
ip-address—IP address of the neighboring device.
-
peer-group-name—Name of a BGP peer group.
-
both—Specifies that both standard and extended communities will be sent.
-
standard—Specifies that only standard communities will be sent.
-
extended—Specifies that only extended communities will be sent.
|
Step 14 |
neighbor {ip-address |
peer-group-name |
ipv6-address}
activate
Example:
Device(config-router-af)# neighbor 172.16.1.9 activate
|
Enables the exchange of information with a BGP neighbor.
-
ip-address—IP address of the neighboring device.
-
peer-group-name—Name of a BGP peer group.
-
ipv6-address—IPv6 address of the BGP-speaking neighbor.
This argument must be in the form documented in RFC 2373, where the address is specified in hexadecimal using 16-bit values between colons.
|
Step 15 |
neighbor {ip-address |
peer-group-name}
send-community [both |
standard |
extended]
Example:
Device(config-router-af)# neighbor 172.16.1.9 send-community extended
|
Specifies that a communities attribute should be sent to a BGP neighbor.
-
ip-address—IP address of the neighboring device.
-
peer-group-name—Name of a BGP peer group.
-
both—Specifies that both standard and extended communities will be sent.
-
standard—Specifies that only standard communities will be sent.
-
extended—Specifies that only extended communities will be sent.
|
Step 16 | Repeat Steps 14 and 15 for each BGP neighbor.
|
|
Step 17 |
maximum-paths
number-paths
Example:
Device(config-router-af)# maximum-paths 2
|
Configures the maximum number of parallel routes that an IP routing protocol will install into the routing table.
-
number-paths—Number of routes to install to the routing table.
|
Step 18 |
exit-address-family
Example:
Device(config-router-af)# exit-address-family
|
Exits from address family configuration mode.
|
Step 19 |
end
Example:
Device(config-router)# end
|
(Optional) Exits to privileged EXEC mode.
|