Xrdocs Io ncs5500 Tutorials BGP Evpn Configuration Ncs 5500 Part 3
Xrdocs Io ncs5500 Tutorials BGP Evpn Configuration Ncs 5500 Part 3
Save to PDF
O N T H I S PA G E
R E F E R E N C E T O P O L O G Y:
In the last post, we con gured the BGP-EVPN based Multi-homing of host/CE using EVPN Ethernet Segment. In this post,
we will provision BGP-EVPN based Layer-2 VPN service between the Leafs. The EVPN Layer-2 service will enable
forwarding between host-1 and host-5 which are part of the same subnet.
Reference Topology:
In this setup, Host-1 and Host-5 belong to the same subnet. Host-1 is dual-homed to Leaf-1 and Leaf-2 while Host-5 is
single homed to the Leaf-5. Packets sourced from Host-1 for destination Host-5 will arrive to Leaf-1 or Leaf-2 based on
the LAG’s hash calculation. On Leaf the lookup will be performed for destination Host-5 MAC address. Host-5’s MAC
address will be learnt on Leaf-1 and Leaf-2 via EVPN control-plane. After the lookup, the tra c will be forwarded to the
Host-5 MAC address using EVPN service label and transport label to reach to Leaf-5.
Host-1 and Host-5 will be part of the same subnet to communicate over layer-2 stretch. Host-1 is connected dual-
homed to uplink Leafs via LACP link aggregation and Host-5 is connected single-homed to Leaf-5. Con gure IP address
on Host-1’s and Host-5 as follows.
Host-1
interface Bundle-Ether1
description "Bundle to Leaf-1/2"
ipv4 address 10.0.0.10 255.255.255.0
!
Host-5
interface TenGigE0/0/2/0
description "Link to Leaf-5"
ipv4 address 10.0.0.50 255.255.255.0
!
Con gure layer-2 interfaces with dot1q encapsulation for VLAN 10 on Leaf-1 and Leaf-2. Use the following con guration
for both Leaf-1, Leaf-2 and Leaf-5.
Leaf-5
l2vpn
bridge group bg-1
bridge-domain bd-10
interface Bundle-Ether 1.10
!
!
Leaf-5
l2vpn
bridge group bg-1
bridge-domain bd-10
interface TenGigE0/0/0/47.10
!
!
Verify that the bridge-domain and the related attachment circuits are up. Following output shows that the bridge-domain
bd-10’s state is ‘up’, its attachment circuit is ‘up’.
Leaf-1
Leaf-5
The layer-2 service/stretch across the Leafs is o ered by con guring EVPN EVI (EVPN Instance). EVI allows the layer-2 to
be stretched via MP-BGP EVPN control-plane across multiple participating Leafs/PEs. An EVI is con gured on a per
layer-2 bridge basis across Leafs/PEs. Each EVI has a unique route distinguisher and one or more route targets.
For Layer-2 VPN use case, we are stretching the layer-2 between Leaf-1, Leaf-2 and Leaf-5. Therefore, we will
provision Layer-2 VPN service by con gure EVI on all three leafs.
First we will con gure the EVI on Leaf-1 and Leaf-2, then we will verify that the Ethernet Segment for vlan 10 tagged data
is up.
Con gure EVI in EVPN con g on Leaf-1 and Leaf-2. Also assign the route-target values for the EVI related network to get
advertised and received via BGP EVPN control-plane. Advertise-mac keyword is used to advertise the MAC addresses in
EVI to other Leafs part of EVI via BGP EVPN.
evpn
evi 10
bgp
route-target import 1001:11
route-target export 1001:11
!
advertise-mac
!
!
Associate the EVI to bridge-domain for VLAN 10, this is where the attachment-circuit/host is connected to.
l2vpn
bridge group bg-1
bridge-domain bd-10
evi 10
As we have now con gured layer-2 service with EVI for Bridge-domain 10, lets verify the Ethernet Segment status to see
that the multi-homing is operational for Bridge-domain 10 forwarding.
Observe in the below output that for Ethernet-segment bundle interface ‘BE1’, there are two next-hops. The next-hops
represent each Leaf-1 and Leaf-2 forming Leaf pair for Ethernet Segment. Also in below output we can see that
Ethernet-segment state is ‘Up’ and all-active multi-homing is operational. We have one forwarder which is VLAN 10 and
Leaf-1 is the elected designated forwarded (DF) for it.
Leaf-1
RP/0/RP0/CPU0:Leaf-1#
With the following CLI command we can verify that the MAC address of Host-1 is being learnt on Leaf-1 and Leaf-2.
MAC address of Host-5 will be learnt on Leaf-1 and Leaf-2 after we con gure EVI on Leaf-5 for VLAN 10 layer-2 stretch.
Leaf-1
Leaf-2
On Leaf-5
evpn
evi 10
bgp
route-target import 1001:11
route-target export 1001:11
!
advertise-mac
!
!
Associate the EVI to bridge-domain for VLAN 10, this is where the attachment-circuit/host is connected to.
l2vpn
bridge group bg-1
bridge-domain bd-10
evi 10
!
!
Task 5: Verify EVPN EVI and Layer-2 Stretch between the Leaf-1, Leaf-2 and Leaf-5
We have con gured the Layer-2 stretch between Leaf-1, Leaf-2 and Leaf-5 using EVPN EVI. In the next steps lets verify
the layer-2 connectivity is up and we can reach from one host to another via layer-2. “show evpn evi detail” cli command
shows the con gured EVI and its associated bridge-domain. It also shows the route-target import and export values as
shown in the below output.
Statistics:
Packets Sent Received
Total : 0 0
Unicast : 0 0
BUM : 0 0
Bytes Sent Received
Total : 0 0
Unicast : 0 0
BUM : 0 0
RD Config: none
RD Auto : (auto) 1.1.1.1:10
RT Auto : 65001:10
Route Targets in Use Type
------------------------------ ---------------------
1001:11 Import
1001:11 Export
RP/0/RP0/CPU0:Leaf-1#
Ping from Host-1 to Host-5 and verify that the Hosts are reachable. We can see in the below output that that Host-1 can
ping Host-5. Also, below output shows that the MAC address for Host-5 is learnt on Leaf-1 and Leaf-2. Similarly, we are
learning the MAC address of Host-1 on Leaf-5.
Host-1
RP/0/RSP0/CPU0:Host-1#ping 10.0.0.50
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.50, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms
RP/0/RSP0/CPU0:Host-1#
Leaf-1
Leaf-2
Leaf-5
We can verify the BGP EVPN control-plane to verify the various routes and mac addresses are advertised and learnt.
In the below output from Leaf-1 we can see the MAC address of Host-1 and Host-5 are being learnt under their
respective route distinguishers. MAC addresses are advertised using EVPN Route-Type-2.
The route distinguisher value is comprised of router-id:EVI eg. 1.1.1.1:10, 2.2.2.2:10 which are highlighted below.
Leaf-5
CLI command “show evpn evi vpn-id 10 mac” can be used to verify the MAC address and Host IP addresses being learnt
related to the EVI. In the following output of EVI table from Leaf-5, we can see that we are learning MAC address of Host-
1 via EVI 10 on Leaf-5. We can reach to Host-1 MAC address either via next-hop 1.1.1.1 of Leaf-1 or 2.2.2.2 which is
Leaf-2. We can run the same command on Leaf-1 and Leaf-2 for veri cation.
Leaf-5
We are only seeing MAC address and not IP address of the Host in the above output. This is because we con gured only
Layer-2 service between the Leafs. Once we con gure EVPN IRB, we will start advertising MAC + IP of the host via EVPN
Route-Type-2 and will be able to see IP address in the above show command as well as in Leaf’s routing table.
Since only MAC address is advertised, the advertisement will only have Bridge-Domain/EVI label and its respective route-
target. In below output on Leaf-5 for route type 2 learnt from Leaf-1 (RD 1.1.1.1:10), we can see the highlighted route-
target and Bridge-Domain/EVI label value.
Leaf-5
In the next post, we are covering EVPN Integrated Routing and Bridging (IRB) con guration in detail.
SHARE ON
Leave a Comment
11 Comments
1 Login
Name
Twana Othman − ⚑
T 2 years ago
Hi Ahmed,
Printed with Pdfcrowd.com
Hi Ahmed,
First of all, I would like to thank you for such a amazing post.
I am providing Layer-2 VPN service on NCS5500 (single home ) and CEs are ping each
other. But, when I issue " show evpn evi vpn-id 20 mac " isn't showing me any MAC. How
can I check the MAC of the CE and next hop ? please
evpn
evi 20
bgp
route-target import 10:10
route-target export 10:30
!
bridge group 20
bridge-domain 20
interface TenGigE0/0/0/10
!
evi 20
!
The output command is attached
⛺
0 0 Reply ⥅
should I have to add " l2vpn forwarding inject local-mac add mac-address "
manually per CE port ?
0 0 Reply ⥅
Majid − ⚑
M 3 years ago
Hi Ahmad,
How to deploy point to multipoint vpls in evpn ?
0 0 Reply ⥅
CongBT − ⚑
3 years ago edited
Hi Ahmad,
I wonder why you con gured IP in BE1 of H1 but you have Sub interface BE1.10 in BD of
Leaf1&2. How Leaf1&2 understand the data which is sent from H1 without tag 10?
0 0 Reply ⥅
Alfonso Nah − ⚑
A Printed with Pdfcrowd.com
A 4 years ago
I have a question.
Regards!
0 0 Reply ⥅
M. Hasanuz Zaman − ⚑
M 5 years ago edited
Hi Dear,
Very good write up.A quick question to you .How HOST-1 learn HOST-5 MAC address and
vice versa ??
0 0 Reply ⥅
Once the Leafs learn the local host's MAC address they advertise them as route-
type-2 via EVPN control-plane. The Leafs/PEs will import these MAC addresses
based on their EVI import con guration.
0 0 Reply ⥅
0 0 Reply ⥅
0 0 Reply ⥅
Arif Mohammad − ⚑
5 years ago
Hi Ahmad
I like your blog can i perform these scenario on cisco xrv 6.1.3
0 0 Reply ⥅
You can test the EVPN control-plane but data-plane with multi-homing options
are not supported in xrv 6.1.3.
0 0 Reply ⥅
This site is maintained by Cisco Systems, Inc. employees. Powered by Jekyll & Minimal Mistakes.