EVPN means next-generation all-in-one VPN technology that provides a wide of range of services such as E-LAN, E-Line, E-TREE, L3VPN, DCI, DC-Overlay, IRB, … The following is the mapping between EVPN and traditional VPN technologies.
This topic will introduce EVPN L3VPN.
Firstly, EVPN will provide below different route types, it use Type 5 to advise VPNv4 prefiex.

Topology

Core IGP
1
router isis core2
is-type level-2-only3
net 49.0000.0000.0000.4009.004
segment-routing global-block 100000 1655345
address-family ipv4 unicast6
metric-style wide7
segment-routing mpls8
!9
interface Loopback010
passive11
address-family ipv4 unicast12
prefix-sid index 913
!14
!15
interface HundredGigE0/0/1/016
circuit-type level-2-only17
point-to-point18
address-family ipv4 unicastEVPN
1
*********PE1**********2
router bgp 13
address-family vpnv4 unicast4
!5
address-family l2vpn evpn6
!7
neighbor-group evpn-peer8
remote-as 19
update-source Loopback010
address-family l2vpn evpn11
advertise vpnv4 unicast re-originated <<<< Send Type 5 12
!13
!14
neighbor 172.16.64.21 <<<< Neighbor with PE15
use neighbor-group evpn-peer16
!17
vrf vpn118
address-family ipv4 unicast19
!20
neighbor 10.1.1.1 <<< Neighbor with CE21
remote-as 6553522
address-family ipv4 unicast23
route-policy pass-all in24
route-policy pass-all out25
as-override26
soft-reconfiguration inbound always27
!28
!29
!30
!31
RP/0/RP0/CPU0:R2-5501#show run vrf 32
Fri Oct 25 02:50:36.685 UTC33
vrf vpn134
rd 172.16.64.9:135
address-family ipv4 unicast36
import route-target37
1:138
!39
export route-target40
1:141
!Check prefix from peer PE
1
RP/0/RP0/CPU0:R2-5501# show bgp l2vpn evpn summary 2
Fri Oct 25 03:14:10.589 UTC3
BGP router identifier 172.16.64.9, local AS number 34624
BGP generic scan interval 60 secs5
Non-stop routing is enabled6
BGP table state: Active7
Table ID: 0x0 RD version: 08
BGP main routing table version 2039
BGP NSR Initial initsync version 1 (Reached)10
BGP NSR/ISSU Sync-Group versions 0/011
BGP scan interval 60 secs12
13
BGP is operating in STANDALONE mode.14
15
16
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer17
Speaker 203 203 203 203 203 018
19
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd20
172.16.64.21 0 1 922 922 203 0 0 13:02:12 20 <<< Recieve Count.20 prefix1
RP/0/RP0/CPU0:R2-5501# show bgp l2vpn evpn 2
Fri Oct 25 03:15:09.399 UTC3
BGP router identifier 172.16.64.9, local AS number 14
BGP generic scan interval 60 secs5
Non-stop routing is enabled6
BGP table state: Active7
Table ID: 0x0 RD version: 08
BGP main routing table version 2039
BGP NSR Initial initsync version 1 (Reached)10
BGP NSR/ISSU Sync-Group versions 0/011
BGP scan interval 60 secs12
13
Status codes: s suppressed, d damped, h history, * valid, > best14
i - internal, r RIB-failure, S stale, N Nexthop-discard15
Origin codes: i - IGP, e - EGP, ? - incomplete16
Network Next Hop Metric LocPrf Weight Path17
Route Distinguisher: 172.16.64.21:118
*>i[5][0][32][200.0.0.1]/8019
172.16.64.21 100 0 65535 {1} i20
*>i[5][0][32][200.0.0.2]/8021
172.16.64.21 100 0 65535 {1} i22
<snip>23
1
RP/0/RP0/CPU0:R2-5501# show bgp l2vpn evpn rd 172.16.64.21:1 [5][0][32][200.0.0.1]/80 detail 2
Fri Oct 25 03:17:55.241 UTC3
BGP routing table entry for [5][0][32][200.0.0.1]/80, Route Distinguisher: 172.16.64.21:14
Versions:5
Process bRIB/RIB SendTblVer6
Speaker 197 1977
Flags: 0x00040001+0x00000000; 8
Last Modified: Oct 25 03:11:11.348 for 00:06:449
Paths: (1 available, best #1)10
Not advertised to any peer11
Path #1: Received by speaker 012
Flags: 0x4000000025060005, import: 0x1f, EVPN: 0x113
Not advertised to any peer14
65101 {1}15
172.16.64.21 (metric 10) from 172.16.64.21 (172.16.64.21), if-handle 0x0000000016
Received Label 24002 <<<< BGP label 17
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, not-in-vrf18
Received Path ID 0, Local Path ID 1, version 19719
Extended community: Flags 0x6: RT:1:1 20
EVPN ESI: 0000.0000.0000.0000.0000, Gateway Address : 0.0.0.01
RP/0/RP0/CPU0:R2-5501#show bgp vpnv4 unicast 2
Fri Oct 25 03:20:52.534 UTC3
BGP router identifier 172.16.64.9, local AS number 14
BGP generic scan interval 60 secs5
Non-stop routing is enabled6
BGP table state: Active7
Table ID: 0x0 RD version: 08
BGP main routing table version 2849
BGP NSR Initial initsync version 2 (Reached)10
BGP NSR/ISSU Sync-Group versions 0/011
BGP scan interval 60 secs12
13
Status codes: s suppressed, d damped, h history, * valid, > best14
i - internal, r RIB-failure, S stale, N Nexthop-discard15
Origin codes: i - IGP, e - EGP, ? - incomplete16
Network Next Hop Metric LocPrf Weight Path17
Route Distinguisher: 172.16.64.9:1 (default for vrf vpn1)18
*> 100.0.0.1/32 10.1.1.1 0 65535 {1} i19
*> 100.0.0.2/32 10.1.1.1 0 65535 {1} i20
*> 100.0.0.3/32 10.1.1.1 0 65535 {1} i21
*> 100.0.0.4/32 10.1.1.1 0 65535 {1} i22
*> 100.0.0.5/32 10.1.1.1 0 65535 {1} i23
*> 100.0.0.6/32 10.1.1.1 0 65535 {1} i24
*> 100.0.0.7/32 10.1.1.1 0 65535 {1} i25
*> 100.0.0.8/32 10.1.1.1 0 65535 {1} i26
*> 100.0.0.9/32 10.1.1.1 0 65535 {1} i27
*> 100.0.0.10/32 10.1.1.1 0 65535 {1} i28
*>i200.0.0.1/32 172.16.64.21 100 0 65535 {1} i29
*>i200.0.0.2/32 172.16.64.21 100 0 65535 {1} i30
*>i200.0.0.3/32 172.16.64.21 100 0 65535 {1} i31
*>i200.0.0.4/32 172.16.64.21 100 0 65535 {1} i32
*>i200.0.0.5/32 172.16.64.21 100 0 65535 {1} i33
*>i200.0.0.6/32 172.16.64.21 100 0 65535 {1} i34
*>i200.0.0.7/32 172.16.64.21 100 0 65535 {1} i35
*>i200.0.0.8/32 172.16.64.21 100 0 65535 {1} i36
*>i200.0.0.9/32 172.16.64.21 100 0 65535 {1} i37
*>i200.0.0.10/32 172.16.64.21 100 0 65535 {1} i38
*>i200.0.0.11/32 172.16.64.21 100 0 65535 {1} i39
*>i200.0.0.12/32 172.16.64.21 100 0 65535 {1} i40
*>i200.0.0.13/32 172.16.64.21 100 0 65535 {1} i41
*>i200.0.0.14/32 172.16.64.21 100 0 65535 {1} i42
*>i200.0.0.15/32 172.16.64.21 100 0 65535 {1} i43
*>i200.0.0.16/32 172.16.64.21 100 0 65535 {1} i44
*>i200.0.0.17/32 172.16.64.21 100 0 65535 {1} i45
*>i200.0.0.18/32 172.16.64.21 100 0 65535 {1} i46
*>i200.0.0.19/32 172.16.64.21 100 0 65535 {1} i47
*>i200.0.0.20/32 172.16.64.21 100 0 65535 {1} i1
RP/0/RP0/CPU0:R2-5501#show bgp vpnv4 unicast rd 172.16.64.9:1 200.0.0.1/32 detail 2
Fri Oct 25 03:22:05.318 UTC3
BGP routing table entry for 200.0.0.1/32, Route Distinguisher: 172.16.64.9:14
Versions:5
Process bRIB/RIB SendTblVer6
Speaker 265 2657
Flags: 0x00001001+0x00000000; 8
Last Modified: Oct 25 03:11:11.348 for 00:10:549
Paths: (1 available, best #1)10
Not advertised to any peer11
Path #1: Received by speaker 012
Flags: 0x4401000005060005, import: 0x8013
Not advertised to any peer14
65101 {1}15
172.16.64.21 (metric 10) from 172.16.64.21 (172.16.64.21), if-handle 0x0000000016
Received Label 24002 17
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, imported18
Received Path ID 0, Local Path ID 1, version 26519
Extended community: RT:1:1 20
EVPN Gateway Address : 0.0.0.021
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 172.16.64.21:1 <<<<< source was L2vpn EVPN The Blog from Xuxing's Blog;
Link: http://imxing.cn/?p=283

No comments:
Post a Comment