Professional Documents
Culture Documents
Implementing BGP EVPN On IOS-XR
Implementing BGP EVPN On IOS-XR
by Abhijit Tamuli
Table of Contents
1. IMPLEMENTING BGP EVPN ON IOS-XR ................................................................................................ 3
ABOUT THIS DEMONSTRATION ............................................................................................................................. 3
EVPN Overview ........................................................................................................................................... 3
Route Type 1: Ethernet Auto-Discovery (AD) Route.................................................................................... 4
Route Type 2: MAC/IP Advertisement Route .............................................................................................. 4
Route Type 3: Inclusive Multicast Ethernet Tag Route ............................................................................... 4
Route Type 4: Ethernet Segment Route ...................................................................................................... 4
2. EVPN TESTBED: ................................................................................................................................... 4
3. LAB 0: TRANSPORT VERIFICATION....................................................................................................... 5
4. LAB 1: EVPN L2 ALL-ACTIVE MH SERVICE WITH INTRA-SUBNET IRB AND ANYCAST GATEWAY. ............ 6
5. LAB 2: VALIDATION AND VERIFICATION: ............................................................................................. 8
6. ROUTE-TYPE 4................................................................................................................................... 12
7. ROUTE-TYPE 1 (PER-ESI) .................................................................................................................... 13
8. ROUTE-TYPE 3 (INCLUSIVE-MULTICAST) ............................................................................................ 14
9. ROUTE-TYPE 2 (MAC-IP) .................................................................................................................... 15
10. ROUTE-TYPE 1 (PER-EVI) ................................................................................................................ 16
1. Implementing BGP EVPN on IOS-XR:
This lab introduces users to the industry standard BGP EVPN and Cisco implementation of BGP on IOS-XR.
Users need to use real IOS-XR boxes to implement BGP EVPN control and data plane. Upon completion of
this lab, users will able to
EVPN Overview:
Ethernet VPN (EVPN) is a next generation solution that provide Ethernet multipoint services over MPLS
networks. EVPN operates in contrast to the existing Virtual Private LAN Service (VPLS) by enabling control-
plane based MAC learning in the core. In EVPN, PE's participating in the EVPN instances learn customer MAC
routes in Control-Plane using MP-BGP protocol. Control-plane MAC learning brings a number of benefits that
allow EVPN to address the VPLS shortcomings, including support for multi-homing with per-flow load
balancing.
• Single homing - This enables you connect a customer edge (CE) device to one provider edge (PE) device.
• Multihoming - This enables you to connect a customer edge (CE) device to two or more provider edge
(PE) devices to provide redundant connectivity. The redundant PE device ensures that there is no traffic
disruption when there is a network failure. Following are the types of multihoming:
• Single-Active - In single-active mode, only a single PE among a group of PEs attached to the particular
Ethernet-Segment is allowed to forward traffic to and from that Ethernet Segment.
• Active-Active - In active-active mode, all the PEs attached to the particular Ethernet-Segment is allowed
to forward traffic to and from that Ethernet Segment.
EVPN Route Types:
2. EVPN TESTBED:
Note:
Þ R36, R37,R38 are PE routers.
Þ RR103 and RR104 are Route-Reflectors.
Þ ASR-9001-1 and N9K-C9372PX-1 are CE devices.
Lab Tasks:
The SP core is emulated via PE’s R36, R37 and R38. RR103 and RR104 are route-reflector’s. ISIS is used as the
underlay. All connected interfaces and associated loopback’s are advertised in Level-2.
After the ISIS Level-2 adjacency has been setup successfully, we should be able to see the loopback’s of
R37,R38,RR103 and RR104 on R36.
router isis 1
is-type level-2-only
net 00.0000.0000.0004.00
address-family ipv4 unicast
!
interface Loopback0
address-family ipv4 unicast
!
!
interface TenGigE0/0/2/0
address-family ipv4 unicast
!
!
!
R36/37 R38
evpn evpn
evi 100 evi 100
! !
interface Bundle-Ether100 interface Bundle-Ether100
ethernet-segment ethernet-segment
identifier type 0 36.37.00.00.00.00.00.11.00 identifier type 0 36.37.00.00.00.00.00.11.00
! !
! !
! !
interface BVI100
host-routing
vrf a
ipv4 address 192.168.1.1 255.255.255.0
mac-address 3637.3637.3637
!
l2vpn
bridge group 100
bridge-domain 100
interface Bundle-Ether100.12
!
routed interface BVI100
!
evi 100
!
!
!
!
cef adjacency route override rib
!
vrf a
address-family ipv4 unicast
import route-target
100:100
!
export route-target
100:100
!
!
!
router bgp 1
address-family vpnv4 unicast
!
!
Config: BGP for EVPN on L1/L2/L3:
RR103 RR104
RP/0/RSP0/CPU0:R36#show evpn evi vpn-id 100 detail RP/0/RSP0/CPU0:R37#show evpn evi vpn-id 100 detail
Verify bgp l2vpn evpn peering towards the RR’s 3.3.3.103 and 3.3.3.104.
This command verifies the DF election for the EVI 100. R36 is the DF for EVI 100 ( 100 modulo 2 = 0 ).
Usage:
• Auto-discovery of multi-homed Ethernet Segments
• Designated Forwarder election
PEs apply route filtering based on ES-Import community. Thus, Ethernet Segment route is imported only by
the PEs that are multi-homed to the same Ethernet segment
ES-Import extended community is not the same as the Route Target (RT) extended community
• Multicast tunnels used to transport Broadcast, Multicast and Unknown Unicast frames (BUM)
MAC-IP Advertisement.