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 core
2
is-type level-2-only
3
net 49.0000.0000.0000.4009.00
4
segment-routing global-block 100000 165534
5
address-family ipv4 unicast
6
metric-style wide
7
segment-routing mpls
8
!
9
interface Loopback0
10
passive
11
address-family ipv4 unicast
12
prefix-sid index 9
13
!
14
!
15
interface HundredGigE0/0/1/0
16
circuit-type level-2-only
17
point-to-point
18
address-family ipv4 unicast
EVPN
1
*********PE1**********
2
router bgp 1
3
address-family vpnv4 unicast
4
!
5
address-family l2vpn evpn
6
!
7
neighbor-group evpn-peer
8
remote-as 1
9
update-source Loopback0
10
address-family l2vpn evpn
11
advertise vpnv4 unicast re-originated <<<< Send Type 5
12
!
13
!
14
neighbor 172.16.64.21 <<<< Neighbor with PE
15
use neighbor-group evpn-peer
16
!
17
vrf vpn1
18
address-family ipv4 unicast
19
!
20
neighbor 10.1.1.1 <<< Neighbor with CE
21
remote-as 65535
22
address-family ipv4 unicast
23
route-policy pass-all in
24
route-policy pass-all out
25
as-override
26
soft-reconfiguration inbound always
27
!
28
!
29
!
30
!
31
RP/0/RP0/CPU0:R2-5501#show run vrf
32
Fri Oct 25 02:50:36.685 UTC
33
vrf vpn1
34
rd 172.16.64.9:1
35
address-family ipv4 unicast
36
import route-target
37
1:1
38
!
39
export route-target
40
1:1
41
!
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 UTC
3
BGP router identifier 172.16.64.9, local AS number 3462
4
BGP generic scan interval 60 secs
5
Non-stop routing is enabled
6
BGP table state: Active
7
Table ID: 0x0 RD version: 0
8
BGP main routing table version 203
9
BGP NSR Initial initsync version 1 (Reached)
10
BGP NSR/ISSU Sync-Group versions 0/0
11
BGP scan interval 60 secs
12
13
BGP is operating in STANDALONE mode.
14
15
16
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
17
Speaker 203 203 203 203 203 0
18
19
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
20
172.16.64.21 0 1 922 922 203 0 0 13:02:12 20 <<< Recieve Count.20 prefix
1
RP/0/RP0/CPU0:R2-5501# show bgp l2vpn evpn
2
Fri Oct 25 03:15:09.399 UTC
3
BGP router identifier 172.16.64.9, local AS number 1
4
BGP generic scan interval 60 secs
5
Non-stop routing is enabled
6
BGP table state: Active
7
Table ID: 0x0 RD version: 0
8
BGP main routing table version 203
9
BGP NSR Initial initsync version 1 (Reached)
10
BGP NSR/ISSU Sync-Group versions 0/0
11
BGP scan interval 60 secs
12
13
Status codes: s suppressed, d damped, h history, * valid, > best
14
i - internal, r RIB-failure, S stale, N Nexthop-discard
15
Origin codes: i - IGP, e - EGP, ? - incomplete
16
Network Next Hop Metric LocPrf Weight Path
17
Route Distinguisher: 172.16.64.21:1
18
*>i[5][0][32][200.0.0.1]/80
19
172.16.64.21 100 0 65535 {1} i
20
*>i[5][0][32][200.0.0.2]/80
21
172.16.64.21 100 0 65535 {1} i
22
<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 UTC
3
BGP routing table entry for [5][0][32][200.0.0.1]/80, Route Distinguisher: 172.16.64.21:1
4
Versions:
5
Process bRIB/RIB SendTblVer
6
Speaker 197 197
7
Flags: 0x00040001+0x00000000;
8
Last Modified: Oct 25 03:11:11.348 for 00:06:44
9
Paths: (1 available, best #1)
10
Not advertised to any peer
11
Path #1: Received by speaker 0
12
Flags: 0x4000000025060005, import: 0x1f, EVPN: 0x1
13
Not advertised to any peer
14
65101 {1}
15
172.16.64.21 (metric 10) from 172.16.64.21 (172.16.64.21), if-handle 0x00000000
16
Received Label 24002 <<<< BGP label
17
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, not-in-vrf
18
Received Path ID 0, Local Path ID 1, version 197
19
Extended community: Flags 0x6: RT:1:1
20
EVPN ESI: 0000.0000.0000.0000.0000, Gateway Address : 0.0.0.0
1
RP/0/RP0/CPU0:R2-5501#show bgp vpnv4 unicast
2
Fri Oct 25 03:20:52.534 UTC
3
BGP router identifier 172.16.64.9, local AS number 1
4
BGP generic scan interval 60 secs
5
Non-stop routing is enabled
6
BGP table state: Active
7
Table ID: 0x0 RD version: 0
8
BGP main routing table version 284
9
BGP NSR Initial initsync version 2 (Reached)
10
BGP NSR/ISSU Sync-Group versions 0/0
11
BGP scan interval 60 secs
12
13
Status codes: s suppressed, d damped, h history, * valid, > best
14
i - internal, r RIB-failure, S stale, N Nexthop-discard
15
Origin codes: i - IGP, e - EGP, ? - incomplete
16
Network Next Hop Metric LocPrf Weight Path
17
Route Distinguisher: 172.16.64.9:1 (default for vrf vpn1)
18
*> 100.0.0.1/32 10.1.1.1 0 65535 {1} i
19
*> 100.0.0.2/32 10.1.1.1 0 65535 {1} i
20
*> 100.0.0.3/32 10.1.1.1 0 65535 {1} i
21
*> 100.0.0.4/32 10.1.1.1 0 65535 {1} i
22
*> 100.0.0.5/32 10.1.1.1 0 65535 {1} i
23
*> 100.0.0.6/32 10.1.1.1 0 65535 {1} i
24
*> 100.0.0.7/32 10.1.1.1 0 65535 {1} i
25
*> 100.0.0.8/32 10.1.1.1 0 65535 {1} i
26
*> 100.0.0.9/32 10.1.1.1 0 65535 {1} i
27
*> 100.0.0.10/32 10.1.1.1 0 65535 {1} i
28
*>i200.0.0.1/32 172.16.64.21 100 0 65535 {1} i
29
*>i200.0.0.2/32 172.16.64.21 100 0 65535 {1} i
30
*>i200.0.0.3/32 172.16.64.21 100 0 65535 {1} i
31
*>i200.0.0.4/32 172.16.64.21 100 0 65535 {1} i
32
*>i200.0.0.5/32 172.16.64.21 100 0 65535 {1} i
33
*>i200.0.0.6/32 172.16.64.21 100 0 65535 {1} i
34
*>i200.0.0.7/32 172.16.64.21 100 0 65535 {1} i
35
*>i200.0.0.8/32 172.16.64.21 100 0 65535 {1} i
36
*>i200.0.0.9/32 172.16.64.21 100 0 65535 {1} i
37
*>i200.0.0.10/32 172.16.64.21 100 0 65535 {1} i
38
*>i200.0.0.11/32 172.16.64.21 100 0 65535 {1} i
39
*>i200.0.0.12/32 172.16.64.21 100 0 65535 {1} i
40
*>i200.0.0.13/32 172.16.64.21 100 0 65535 {1} i
41
*>i200.0.0.14/32 172.16.64.21 100 0 65535 {1} i
42
*>i200.0.0.15/32 172.16.64.21 100 0 65535 {1} i
43
*>i200.0.0.16/32 172.16.64.21 100 0 65535 {1} i
44
*>i200.0.0.17/32 172.16.64.21 100 0 65535 {1} i
45
*>i200.0.0.18/32 172.16.64.21 100 0 65535 {1} i
46
*>i200.0.0.19/32 172.16.64.21 100 0 65535 {1} i
47
*>i200.0.0.20/32 172.16.64.21 100 0 65535 {1} i
1
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 UTC
3
BGP routing table entry for 200.0.0.1/32, Route Distinguisher: 172.16.64.9:1
4
Versions:
5
Process bRIB/RIB SendTblVer
6
Speaker 265 265
7
Flags: 0x00001001+0x00000000;
8
Last Modified: Oct 25 03:11:11.348 for 00:10:54
9
Paths: (1 available, best #1)
10
Not advertised to any peer
11
Path #1: Received by speaker 0
12
Flags: 0x4401000005060005, import: 0x80
13
Not advertised to any peer
14
65101 {1}
15
172.16.64.21 (metric 10) from 172.16.64.21 (172.16.64.21), if-handle 0x00000000
16
Received Label 24002
17
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, imported
18
Received Path ID 0, Local Path ID 1, version 265
19
Extended community: RT:1:1
20
EVPN Gateway Address : 0.0.0.0
21
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