Step 1
|
enable
|
Enables privileged EXEC mode.
Enter your password if prompted.
|
Step 2
|
configure
terminal
Device# configure terminal
|
Enters global configuration mode.
|
Step 3
|
router bgp
autonomous-system
|
Enters BGP router configuration mode.
|
Step 4
|
neighbor
peer-group-name
peer-group
|
Creates a BGP peer group.
|
Step 5
|
neighbor
ip-address
peer-group
peer-group-name
|
Makes a BGP neighbor a member of the peer group.
|
Step 6
|
neighbor {ip-address | peer-group-name} remote-as
number
|
Specifies a BGP neighbor. If a peer group is not configured with a remote-as
number , use this command to create peer groups containing EBGP neighbors. The range is 1 to 65535.
|
Step 7
|
neighbor {ip-address | peer-group-name} description
text
|
(Optional) Associates a description with a neighbor.
|
Step 8
|
neighbor {ip-address | peer-group-name} default-originate [route-map
map-name]
|
(Optional) Allows a BGP speaker (the local router) to send the default route 0.0.0.0 to a neighbor for use as a default route.
|
Step 9
|
neighbor {ip-address | peer-group-name} send-community
|
(Optional) Specifies that the COMMUNITIES attribute be sent to the neighbor at this IP address.
|
Step 10
|
neighbor {ip-address | peer-group-name} update-source
interface
|
(Optional) Allows internal BGP sessions to use any operational interface for TCP connections.
|
Step 11
|
neighbor {ip-address | peer-group-name} ebgp-multihop
|
(Optional) Allows BGP sessions, even when the neighbor is not on a directly connected segment. The multihop session is not
established if the only route to the multihop peer’s address is the default route (0.0.0.0).
|
Step 12
|
neighbor {ip-address | peer-group-name} local-as
number
|
(Optional) Specifies an AS number to use as the local AS. The range is 1 to 65535.
|
Step 13
|
neighbor {ip-address | peer-group-name} advertisement-interval
seconds
|
(Optional) Sets the minimum interval between sending BGP routing updates.
|
Step 14
|
neighbor {ip-address | peer-group-name} maximum-prefix
maximum [threshold]
|
(Optional) Controls how many prefixes can be received from a neighbor. The range is 1 to 4294967295. The threshold (optional) is the percentage of maximum at which a warning message is generated. The default is 75 percent.
|
Step 15
|
neighbor {ip-address | peer-group-name} next-hop-self
|
(Optional) Disables next-hop processing on the BGP updates to a neighbor.
|
Step 16
|
neighbor {ip-address | peer-group-name} password {0-7}string
|
(Optional) Sets MD5 authentication on a TCP connection to a BGP peer. The same password must be configured on both BGP peers,
or the connection between them is not made.
The encryption modes supported for the password are:
Type 7 is used only for storing the password in the device configuration. The actual value that gets used at the time of BGP
session establishment is the MD5 hash of the plaintext password.
|
Step 17
|
neighbor {ip-address | peer-group-name} route-map
map-name {in | out}
|
(Optional) Applies a route map to incoming or outgoing routes.
|
Step 18
|
neighbor {ip-address | peer-group-name} send-community
|
(Optional) Specifies that the COMMUNITIES attribute be sent to the neighbor at this IP address.
|
Step 19
|
neighbor {ip-address | peer-group-name} timers
keepalive holdtime
|
(Optional) Sets timers for the neighbor or peer group.
-
The keepalive interval is the time within which keepalive messages are sent to peers. The range is 1 to 4294967295 seconds; the default
is 60.
-
The holdtime is the interval after which a peer is declared inactive after not receiving a keepalive message from it. The range is 1 to
4294967295 seconds; the default is 180.
|
Step 20
|
neighbor {ip-address | peer-group-name} weight
weight
|
(Optional) Specifies a weight for all routes from a neighbor.
|
Step 21
|
neighbor {ip-address | peer-group-name} distribute-list {access-list-number | name} {in | out}
|
(Optional) Filter BGP routing updates to or from neighbors, as specified in an access list.
|
Step 22
|
neighbor {ip-address | peer-group-name} filter-list
access-list-number {in | out | weight
weight}
|
(Optional) Establish a BGP filter.
|
Step 23
|
neighbor {ip-address | peer-group-name} version
value
|
(Optional) Specifies the BGP version to use when communicating with a neighbor.
|
Step 24
|
neighbor {ip-address | peer-group-name} soft-reconfiguration inbound
|
(Optional) Configures the software to start storing received updates.
|
Step 25
|
end
|
Returns to privileged EXEC mode.
|
Step 26
|
show ip bgp neighbors
|
Verifies the configuration.
|
Step 27
|
copy running-config startup-config
Device# copy running-config startup-config
|
(Optional) Saves your entries in the configuration file.
|