Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
6-38
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 6 Configuring Advanced BGP
Configuring Advanced BGP
8. (Optional) copy running-config startup-config
DETAILED STEPS
This example shows how to create a VRF and configure the router ID in the VRF:
switch# configure terminal
switch(config)# vrf context NewVRF
switch(config-vrf)# exit
switch(config)# router bgp 65536
switch(config-router)# vrf NewVRF
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
vrf context vrf-name
Example:
switch(config)# vrf context
RemoteOfficeVRF
switch(config-vrf)#
Creates a new VRF and enters VRF configuration
mode.
Step 3
exit
Example:
switch(config-vrf)# exit
switch(config)#
Exits VRF configuration mode.
Step 4
router bgp as-number
Example:
switch(config)# router bgp 65536
switch(config-router)#
Creates a new BGP process with the configured
autonomous system number.
Step 5
vrf vrf-name
Example:
switch(config-router)# vrf
RemoteOfficeVRF
switch(config-router-vrf)#
Enters the router VRF configuration mode and
associates this BGP instance with a VRF.
Step 6
neighbor ip-address remote-as as-number
Example:
switch(config-router-vrf)# neighbor
209.165.201.1 remote-as 65536
switch(config-router--vrf-neighbor)#
Configures the IP address and AS number for a remote
BGP peer.
Step 7
bestpath as-path multipath-relax
Example:
switch(config-router-vrf)# bestpath
as-path multipath-relax
(Optional) Beginning with Cisco NX-OS
Release 5.0(3)U1(2), allows the switch to treat paths
received from different AS’s for multipath, if their
AS-path lengths are the same and other multipath
conditions are met.
Step 8
copy running-config startup-config
Example:
switch(config-router-vrf-neighbor)# copy
running-config startup-config
(Optional) Saves this configuration change.