Professional Documents
Culture Documents
B Implement MP BGP Control Plane v2
B Implement MP BGP Control Plane v2
Americas Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
© 2020 Cisco Systems, Inc. All rights reserved.
CONTENTS
CHAPTER 1 About 1
About This Demonstration 1
Requirements 1
About This Solution 2
Topology 2
Session Users 3
Get Started 3
CHAPTER 2 Scenarios 7
CHAPTER 3 Appendix 25
Troubleshooting MTPuTTY 25
Troubleshooting – Fix My Demo 26
Requirements
The table below outlines the requirements for this preconfigured demonstration.
Required Optional
Laptop Cisco AnyConnect
Topology
This content includes preconfigured users and components to illustrate the scripted scenarios and features of
the solution. Most components are fully configurable with predefined administrative user accounts. You can
see the IP address and user account credentials to use to access a component by clicking the component icon
in the Topology menu of your active session and in the scenario steps that require their use.
dCloud Topology
Demonstration Topology
Session Users
Device IP Address Login Credentials
Spine_1 198.18.134.140 admin/C1sco12345
Spine_2 198.18.134.141 admin/C1sco12345
Leaf_1 198.18.134.142 admin/C1sco12345
Leaf_2 198.18.134.143 admin/C1sco12345
Leaf_3 198.18.134.144 admin/C1sco12345
Leaf_4 198.18.134.145 admin/C1sco12345
Server_1 198.18.134.50 root/C1sco12345
Server_2 198.18.134.100 root/C1sco12345
Server_3 198.18.134.150 root/C1sco12345
WAN 198.18.133.45 admin/C1sco12345
Remote Workstation 198.18.133.36 demouser/C1sco12345
Get Started
Follow the steps to schedule a session of the content and configure your presentation environment.
Step 2 Connect to the demonstration workstation using one of the following connection methods:
Example:
Step 6 If any session does not display a log in prompt, perform the Troubleshooting procedure.
Note It is best practice to have separate loopback interface for VXLAN VTEP. The point-to-point links and loopback
interfaces are shown in the following table.
Step 1 Enter the following series of commands on Spine-1 to configure the iBGP neighbor template on with the spine switch as
a route reflector, and apply the template to all the leaf switches as iBGP neighbors.
Example:
config t
feature bgp
Wait a moment for the prompt to return after the feature bgp command.
router bgp 65000
router-id 192.168.0.6
address-family ipv4 unicast
template peer LEAF-PEER
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
route-reflector-client
neighbor 192.168.0.8
Step 3 Enter the following commands on Spine-2 to configure iBGP between Spine-2 and all the leaf switches (leaf-1, leaf-2,
leaf-3, and leaf-4).
Example:
config t
feature bgp
Wait a moment for the prompt to return after the feature bgp command.
router bgp 65000
router-id 192.168.0.7
address-family ipv4 unicast
template peer LEAF-PEER
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
route-reflector-client
neighbor 192.168.0.8
inherit peer LEAF-PEER
neighbor 192.168.0.9
inherit peer LEAF-PEER
neighbor 192.168.0.10
inherit peer LEAF-PEER
neighbor 192.168.0.11
inherit peer LEAF-PEER
Step 5 Enter the following commands to configure BGP on Leaf-1, Leaf-2, Leaf-3 and Leaf-4, which will establish the iBGP
neighbor relationship with Spine-1 and Spine-2 on each leaf.
Note that the copy run start command at the end of each group saves the configuration.
Example:
Leaf 1:
config t
feature bgp
Wait a moment for the prompt to return after the feature bgp command.
router bgp 65000
router-id 192.168.0.8
address-family ipv4 unicast
neighbor 192.168.0.6
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
neighbor 192.168.0.7
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
copy run start
Leaf-2:
config t
feature bgp
Wait a moment for the prompt to return after the feature bgp command.
router bgp 65000
router-id 192.168.0.9
address-family ipv4 unicast
neighbor 192.168.0.6
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
neighbor 192.168.0.7
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
copy run start
Leaf-3:
config t
feature bgp
Wait a moment for the prompt to return after the feature bgp command.
router bgp 65000
router-id 192.168.0.10
address-family ipv4 unicast
neighbor 192.168.0.6
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
neighbor 192.168.0.7
remote-as 65000
update-source loopback0
address-family ipv4 unicast
send-community both
copy run start
Leaf-4:
config t
feature bgp
Wait a moment for the prompt to return after the feature bgp command.
Step 6 Enter show ip bgp sum on Spine-1 to verify the iBGP neighbors on the spine switches.
Optionally, also run the command on Spine-2. Messages sent and received may vary slightly.
Example:
Step 1 Enter the following commands on Spine-1 and Spine-2 to configure PIM and OSPF on a new loopback interface.
Because this is Anycast, the configuration commands are the same on both servers because they are rendezvous points
(RP). Note that the copy run start command saves the configuration.
Example:
config t
feature pim
Wait a moment for the prompt to return after the feature pim command.
interface loopback1
ip address 192.168.0.100/32
ip pim sparse-mode
ip router ospf 1 area 0.0.0.0
copy run start
Step 2 Enter the following commands on Spine-1 to configure PIM Anycast RP for RP redundancy.
Example:
ip pim rp-address 192.168.0.100
ip pim anycast-rp 192.168.0.100 192.168.0.6
ip pim anycast-rp 192.168.0.100 192.168.0.7
interface E1/1
ip pim sparse-mode
interface E1/2
ip pim sparse-mode
interface E1/3
ip pim sparse-mode
interface E1/4
ip pim sparse-mode
interface loopback0
ip pim sparse-mode
copy run start
Step 4 Configure PIM on the leaf switches by entering the following commands
Example:
Leaf-1:
config t
feature pim
Wait a moment for the prompt to return after the feature pim command.
ip pim rp-address 192.168.0.100
interface E1/1
ip pim sparse-mode
interface E1/2
ip pim sparse-mode
interface loopback0
ip pim sparse-mode
interface loopback1
ip pim sparse-mode
copy run start
Leaf-2:
config t
feature pim
Wait a moment for the prompt to return after the feature pim command.
ip pim rp-address 192.168.0.100
interface E1/1
ip pim sparse-mode
interface E1/2
ip pim sparse-mode
interface loopback0
ip pim sparse-mode
interface loopback1
ip pim sparse-mode
copy run start
Leaf-3:
config t
feature pim
Wait a moment for the prompt to return after the feature pim command.
ip pim rp-address 192.168.0.100
interface E1/1
ip pim sparse-mode
interface E1/2
ip pim sparse-mode
interface loopback0
ip pim sparse-mode
interface loopback1
ip pim sparse-mode
copy run start
Leaf-4:
config t
feature pim
Wait a moment for the prompt to return after the feature pim command.
ip pim rp-address 192.168.0.100
interface E1/1
ip pim sparse-mode
interface E1/2
ip pim sparse-mode
interface loopback0
ip pim sparse-mode
interface loopback1
ip pim sparse-mode
copy run start
Step 5 Enter show ip pim neighbor on both Spine-1 and Spine-2 to verify PIM neighbors.
Example:
Note For VXLAN routing, one L3 VNI is required for each Tenant/VRF.
Step 1 Enter the following commands on all leaf and spine switches to enable VXLAN.
Example:
config t
feature nv overlay
feature vn-segment-vlan-based
nv overlay evpn
copy run start
Step 2 Enter the following commands on Leaf-1, Leaf-2, Leaf-3, and Leaf-4 to configure VLAN 140, VLAN 141 and VLAN
999.
Example:
Note There will be a warning message after adding VLAN 999: Warning: Enable double-wide arp-ether
tcam carving if igmp snooping is enabled. Ignore if tcam carving is already
configured. This message can be ignored.
Step 3 Enter the following commands on Leaf-1, Leaf-2, Leaf-3, and Leaf-4 to configure VRF for Tenant-1 and SVI for
VLAN/VNI.
Example:
vrf context Tenant-1
vni 50999
rd auto
address-family ipv4 unicast
route-target both auto
route-target both auto evpn
fabric forwarding anycast-gateway-mac 0000.2222.3333
interface Vlan140
no shutdown
vrf member Tenant-1
no ip redirects
ip address 172.21.140.1/24
fabric forwarding mode anycast-gateway
interface Vlan141
no shutdown
vrf member Tenant-1
no ip redirects
ip address 172.21.141.1/24
fabric forwarding mode anycast-gateway
interface vlan999
no shutdown
vrf member Tenant-1
ip forward
Note There will be a warning message after each vrf member Tenant-1 command: Warning: Deleted all
L3 config on interface Vlanxxx. This message can be ignored.
Step 4 Enter the following commands on Leaf-1, Leaf-2, Leaf-3, and Leaf-4 to configure the VXLAN tunnel interface (NVE).
Example:
interface nve1
no shutdown
source-interface loopback1
host-reachability protocol bgp
member vni 50140
mcast-group 239.0.0.140
member vni 50141
mcast-group 239.0.0.141
member vni 50999 associate-vrf
interface nve1
no shutdown
source-interface loopback1
host-reachability protocol bgp
Step 5 Enter show nve vni on Leaf-1, Leaf-2, Leaf-3, and Leaf-4 to verify the VXLAN configuration.
Step 1 Enter the following commands on Spine-1 and Spine-2 to add the l2vpn evpn address family under the existing BGP AS.
Example:
config t
router bgp 65000
address-family l2vpn evpn
retain route-target all
template peer LEAF-PEER
address-family l2vpn evpn
send-community both
route-reflector-client
Step 2 Enter the following commands on Leaf-1, Leaf-2, Leaf-3, and Leaf-4 to add the l2vpn evpn address family under the
existing BGP AS.
Example:
config t
router bgp 65000
address-family l2vpn evpn
retain route-target all
neighbor 192.168.0.6
remote-as 65000
address-family l2vpn evpn
send-community both
neighbor 192.168.0.7
remote-as 65000
address-family l2vpn evpn
send-community both
Step 3 Enter the following commands on Leaf-1, Leaf-2, Leaf-3, and Leaf-4 to configure RD and RT for VXLAN bridging.
Example:
evpn
vni 50140 l2
rd auto
route-target import auto
route-target export auto
vni 50141 l2
rd auto
route-target import auto
route-target export auto
Note For VXLAN fabric with all Cisco Nexus switches, it is recommended to generate RD/RT automatically. For
VXLAN fabric with multi-vendor VTEP devices, it is recommended to manually configure the RT/RD values.
As per the topology, server-1 is connected to port e1/3 on Leaf1 so the interface must be configured as access
port and assigned a VLAN.
Step 1 Enter the following commands on Leaf-1 to configure Leaf-1 interface E1/3 to be part of VLAN 140.
Example:
int e1/3
description to Server-1
switchport mode access
switchport access vlan 140
Note As per the topology, server-2 is connected to port e1/3 on Leaf1, so it has to be configured as access port and
assigned to a VLAN.
Step 6 Enter the following commands on Leaf-3 to configure Leaf-3 interface E1/3 to be part of VLAN 141.
Example:
int e1/3
description to Server-2
switchport mode access
switchport access vlan 141
Step 11 On Server-1, enter the command ping 172.21.141.10 to perform a ping test between Server-1 and Server-2,
which will trigger an EVPN control plane update.
Example:
Step 12 Enter the following commands on Leaf-4 to verify the VXLAN EVPN control plane update.
a) If the Leaf-4 (config) # prompt is not displayed, enter config t.
b) Enter show nve peers to verify the dynamic tunnel between VTEPs.
If there was a configuration error during the process, there will be no output.
Example:
c) Enter sh ip route vrf Tenant-1 to verify the routing table with the /32 host route learned from BGP.
Example:
d) Enter show bgp l2vpn evpn to verify the EVPN control plane update.
Example:
e) Enter show l2route evpn mac-ip all to verify the forwarding table.
Example:
and to advertise a subnet behind WAN router into the VXLAN fabric. After complete this task, pings from
server-3 to server-1 and server-2 inside the VXLAN fabric will be successful.
Leaf-4 in this lab is a border leaf that connects to the external network outside the fabric. There are a few
options to redistribute the fabric routes to external entity. This scenario explores the option to use IGP between
the border leaf and the WAN, and redistribute the fabric routes in each Tennant.
Step 1 If Leaf-4 is not in config mode, showing the Leaf-4 (config) # prompt, enter config t.
Step 2 Enter the following commands on Leaf-4 to configure IGP under VRF Tenant-1.
Example:
interface Ethernet1/3
mtu 9216
vrf member Tenant-1
ip address 10.0.0.18/30
ip ospf network point-to-point
ip router ospf 1 area 0.0.0.0
no shutdown
router ospf 1
router-id 192.168.0.11
vrf Tenant-1
do copy run start
Note After the vrf Tenant-1 command, an error will be generated: Warning: Deleted all L3 config
on interface Ethernet1/3. This error can be ignored.
Example:
config t
int gig2
mtu 9216
description to Leaf-4
ip address 10.0.0.17 255.255.255.252
ip ospf network point-to-point
no shut
exit
router ospf 1
router-id 192.168.0.5
network 10.0.0.16 0.0.0.3 area 0
Step 6 Enter the following commands on Leaf-4 to configure the border leaf to redistribute Fabric routes into OSPF.
Example:
router bgp 65000
vrf Tenant-1
address-family ipv4 unicast
advertise l2vpn evpn
redistribute ospf 1 route-map permit-ospf-bgp
router ospf 1
vrf Tenant-1
redistribute bgp 65000 route-map permit-bgp-ospf
redistribute direct route-map permit-bgp-ospf
route-map permit-bgp-ospf permit 10
route-map permit-ospf-bgp permit 10
Step 10 Enter ping 172.21.141.10 and then, enter ping 172.21.140.10 to verify connectivity from Linux VM
Server-3 to Linux VM Server-1 and Server-2.
Example:
Step 11 In the WAN window, enter show ip route ospf to verify the fabric host routes on the WAN router.
Example:
Troubleshooting MTPuTTY
The purpose of the troubleshooting procedure is to restart any server that does not return a prompt in the
MTPuTTY console session.
Step 1 Open Google Chrome and click the Nexus Fabric Console Access tab.
Step 2 Log in using credentials root/C1sco12345) and then, click Ignore on the resulting certification pop-up.
Step 3 Click Virtual Machines to review the servers list.
Step 4 Right-click the affected server and select Power > Power ON in the resulting menu.
Example:
Step 5 Wait until the MTPuTTY session shows a login prompt before proceeding with the demonstration.
Do not close the command window until the task fully completes.