There are two types of traditional l2vpn, one is point-to-point (VPWS) and the other is point-to-multipoint(VPLS).
For VPLS, EVPN has a corresponding technology PBB-EVPN.
This topic, will intruduction a simple PBB-EVPN configuration.
Refer to the following route types,PBB-EVPN will use Type 2 and Type 3.
Topology
Core IGP
1
router isis 1
2
is-type level-2-only
3
net 49.0001.1391.5900.7248.00
4
lsp-gen-interval maximum-wait 2000 initial-wait 100 secondary-wait 100
5
address-family ipv4 unicast
6
metric-style wide
7
!
8
interface Bundle-Ether1
9
circuit-type level-2-only
10
point-to-point
11
address-family ipv4 unicast
12
metric 5
13
!
14
!
15
interface Loopback0
16
passive
17
circuit-type level-2-only
18
address-family ipv4 unicast
19
!
1
RP/0/RSP0/CPU0:ASR9001-B#show run mpls ldp
2
Fri Oct 25 04:13:08.554 UTC
3
mpls ldp
4
router-id 139.159.7.248
5
address-family ipv4
6
!
7
interface Bundle-Ether1
8
address-family ipv4
9
!
10
PBB-EVPN
1
RP/0/RSP0/CPU0:ASR9001-B#show run router bgp
2
Fri Oct 25 04:14:28.506 UTC
3
router bgp 65001
4
bgp router-id 139.159.7.248
5
6
address-family l2vpn evpn
7
!
8
neighbor 139.159.48.213
9
remote-as 65001
10
update-source Loopback0
11
address-family l2vpn evpn
12
!
1
RP/0/RSP0/CPU0:ASR9001-B#show run l2vpn
2
Fri Oct 25 04:15:37.293 UTC
3
l2vpn
4
bridge group 1
5
bridge-domain PBB-core-10000
6
pbb core
7
evi 10000 <<<< need same with peer PE,Broadcast domain
8
!
9
!
10
!
11
bridge-domain PBB-edge-10000
12
interface GigabitEthernet0/0/0/4.1
13
!
14
pbb edge i-sid 10000 core-bridge PBB-core-10000
15
!
16
!
1
RP/0/RSP0/CPU0:ASR9001-B# show ru int gi0/0/0/4.1
2
Fri Oct 25 04:18:56.372 UTC
3
interface GigabitEthernet0/0/0/4.1 l2transport
4
encapsulation dot1q 10
5
rewrite ingress tag pop 1 symmetric
6
mtu 9000
7
!
Check the route learn from Peer PE
1
RP/0/RSP0/CPU0:ASR9001-B#show bgp l2vpn evpn
2
Fri Oct 25 04:19:25.234 UTC
3
BGP router identifier 139.159.7.248, local AS number 65001
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 36
9
BGP NSR Initial initsync version 6 (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: 139.159.7.248:10000 (default for vrf PBB-core-10000)
18
*> [2][0][48][e4c7.225a.2fd0][0]/104 <<< Self BMAC
19
0.0.0.0 0 i
20
*>i[2][0][48][e8ed.f344.050f][0]/104 <<< Remote PE BMAC
21
139.159.48.213 100 0 i
22
*> [3][10000][32][139.159.7.248]/80
23
0.0.0.0 0 i
24
*>i[3][10000][32][139.159.48.213]/80
25
139.159.48.213 100 0 i
26
Route Distinguisher: 139.159.48.213:10000
27
*>i[2][0][48][e8ed.f344.050f][0]/104 <<< Remote PE BMAC
28
139.159.48.213 100 0 i
29
*>i[3][10000][32][139.159.48.213]/80
30
139.159.48.213 100 0 i
1
RP/0/RSP0/CPU0:ASR9001-B#show l2vpn forwarding pbb backbone-source-mac detail location 0/rsp0/CPU0
2
Fri Oct 25 04:25:04.241 UTC
3
Backbone Source MAC: e4c7.225a.2fd0 <<< Check BMAC
4
Chassis MAC : e4c7.225a.2fd0
5
RP/0/RSP0/CPU0:ASR9001-B#
1
RP/0/RSP0/CPU0:ASR9001-B#show bgp l2vpn evpn rd 139.159.7.248:10000 [2][0][48][e8ed.f344.050f][0]/104 detail
2
Fri Oct 25 04:27:54.322 UTC
3
BGP routing table entry for [2][0][48][e8ed.f344.050f][0]/104, Route Distinguisher: 139.159.7.248:10000
4
Versions:
5
Process bRIB/RIB SendTblVer
6
Speaker 32 32
7
Flags: 0x00001001+0x00000000;
8
Last Modified: Oct 24 13:13:53.799 for 15:14:00
9
Paths: (1 available, best #1)
10
Not advertised to any peer
11
Path #1: Received by speaker 0
12
Flags: 0x4000020005060005, import: 0x80
13
Not advertised to any peer
14
Local
15
139.159.48.213 (metric 5) from 139.159.48.213 (139.159.48.213)
16
Received Label 16008 <<<< Inner Label recieve
17
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, imported, rib-install
18
Received Path ID 0, Local Path ID 1, version 32
19
Extended community: RT:65001:10000
20
EVPN ESI: 0000.0000.0000.0000.0000
21
Source AFI: L2VPN EVPN, Source VRF: default, Source Route Distinguisher: 139.159.48.213:10000
22
RP/0/RSP0/CPU0:ASR9001-B#
1
RP/0/RSP0/CPU0:ASR9001-B#show l2vpn forwarding bridge-domain 1:PBB-edge-10000 mac-address location 0/0/cPU0
2
<<<< This command can check the MAC-address learning
This Blog from Xuxing's Blog;