EasyManua.ls Logo

Cisco Nexus 7000 Series - Page 287

Cisco Nexus 7000 Series
536 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Send document comments to nexus7k-docfeedback@cisco.com.
10-17
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 10 Configuring Basic BGP
Configuring Basic BGP
The following example shows how to configure dynamic AS numbers for a prefix peer:
switch# config t
switch(config)# route-map BGPPeers
switch(config-route-map)# match as-number 64496, 64501-64510
switch(config-route-map)# match as-number as-path-list List1, List2
switch(config-route-map)# exit
switch(config)# router bgp 64496
switch(config-router)# neighbor 192.0.2.0/8 remote-as route-map BGPPeers
switch(config-router-neighbor)# description Peer Router B
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# copy running-config startup-config
See Chapter 16, “Configuring Route Policy Manager. for information on route maps.
Step 3
neighbor
prefix
remote-as route-map
map-name
Example:
switch(config-router)# neighbor
192.0.2.0/8 remote-as routemap BGPPeers
switch(config-router-neighbor)#
Configures the IPv 4 or IPv6 prefix and a route map for
the list of accepted AS numbers for the remote BGP
peers. The prefix format for IPv4 is x.x.x.x/length. The
length range is from 1 to 32. The prefix format for IPv6
is A:B::C:D/length. The length range is from 1 to 128.
The map-name can be any case-sensitive
alphanumerics string up to 63 characters.
Step 4
show bgp {ipv4 | ipv6}{unicast |
multicast} neighbors
Example:
switch(config-router-neighbor-af)# show
bgp ipv4 unicast neighbors
(Optional) Displays information about BGP peers.
Step 5
copy running-config startup-config
Example:
switch(config-router-neighbor-af) copy
running-config startup-config
(Optional) Saves this configuration change.
Command Purpose

Table of Contents

Other manuals for Cisco Nexus 7000 Series

Related product manuals