首先放两张图,了解下EVPN VPWS。EVPN VPWS 会使用到Type1和Type 4两类路由,也分为Single-Home 和 Multi-home两种架构,这里记录下single-home的简单配置。
TOPO
Configuration
PE1:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | RP/0/RP0/CPU0:ASR9922-B#show run int bundle-ether 800 Thu Sep 10 08:48:09.262 UTCinterface Bundle-Ether800 mtu 4860 l2transport !!RP/0/RP0/CPU0:ASR9922-B#show run l2vpn xconnect group cisco-l2vpn-evpn-vpwsThu Sep 10 08:48:29.189 UTCl2vpn xconnect group cisco-l2vpn-evpn-vpws p2p vpws_64900 interface Bundle-Ether800 description vpws_64900 neighbor evpn evi 64900 target 819 source 198 <<< evi 需要一致, source标识本端AC,targe标识对端AC ! ! !!RP/0/RP0/CPU0:ASR9922-B#show run evpn Thu Sep 10 08:48:33.611 UTCevpn evi 64900 bgp rd 10.1.12.1:64900 route-target import 9929:64900 route-target export 9929:64900 ! description vpws_test control-word-disable !!RP/0/RP0/CPU0:ASR9922-B#show run router bgp Thu Sep 10 08:51:28.092 UTCrouter bgp 38365 bgp router-id 10.1.1.1 ! address-family l2vpn evpn ! neighbor 10.1.2.2 remote-as 38365 update-source Loopback1000 address-family l2vpn evpn ! ! |
PE2:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | RP/0/RSP0/CPU0:ASR9006-L#show run int bundle-ether 800Thu Sep 10 16:52:05.649 UTCinterface Bundle-Ether800 mtu 4860 l2transport !!RP/0/RSP0/CPU0:ASR9006-L#show run l2vpn xconnect group cisco-l2vpn-evpn-vpwsThu Sep 10 16:52:09.704 UTCl2vpn xconnect group cisco-l2vpn-evpn-vpws p2p vpws_64900 interface Bundle-Ether800 description vpws_64900 neighbor evpn evi 64900 target 198 source 819 ! ! !!RP/0/RSP0/CPU0:ASR9006-L#show run evpn Thu Sep 10 16:52:13.473 UTCevpn evi 64900 bgp rd 10.1.12.2:64900 route-target import 9929:64900 route-target export 9929:64900 ! description vpws_test control-word-disable !!RP/0/RSP0/CPU0:ASR9006-L#show run router bgp Thu Sep 10 16:53:40.957 UTCrouter bgp 38365 bgp router-id 10.1.2.2 address-family l2vpn evpn ! neighbor 10.1.1.1 remote-as 38365 update-source Loopback1000 address-family l2vpn evpn ! !! |
底层起ISIS/LDP或者SR。
测试命令
1 2 3 | #show l2vpn xconnnect <>#show evpn evi ead#show bgp l2vpn evpn route-type 1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | RP/0/RP0/CPU0:ASR9922-B#show bgp l2vpn evpn summary Thu Sep 10 08:55:10.183 UTCBGP router identifier 10.1.1.1, local AS number 38365BGP generic scan interval 60 secsNon-stop routing is enabledBGP table state: ActiveTable ID: 0x0 RD version: 0BGP main routing table version 55BGP NSR Initial initsync version 1 (Reached)BGP NSR/ISSU Sync-Group versions 55/0BGP scan interval 60 secsBGP is operating in STANDALONE mode.Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVerSpeaker 55 55 55 55 55 55Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd10.1.2.2 0 38365 21 20 55 0 0 00:16:51 1RP/0/RP0/CPU0:ASR9922-B#show bgp l2vpn evpn Thu Sep 10 08:55:19.603 UTCBGP router identifier 10.1.1.1, local AS number 38365BGP generic scan interval 60 secsNon-stop routing is enabledBGP table state: ActiveTable ID: 0x0 RD version: 0BGP main routing table version 55BGP NSR Initial initsync version 1 (Reached)BGP NSR/ISSU Sync-Group versions 55/0BGP scan interval 60 secsStatus codes: s suppressed, d damped, h history, * valid, > best i - internal, r RIB-failure, S stale, N Nexthop-discardOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight PathRoute Distinguisher: 10.1.12.1:64900 (default for vrf VPWS:64900)*> [1][0000.0000.0000.0000.0000][198]/120 0.0.0.0 0 i*>i[1][0000.0000.0000.0000.0000][819]/120 10.1.2.2 100 0 iRoute Distinguisher: 10.1.12.2:64900*>i[1][0000.0000.0000.0000.0000][819]/120 10.1.2.2 100 0 iProcessed 3 prefixes, 3 pathsRP/0/RP0/CPU0:ASR9922-B#show bgp l2vpn evpn rd 10.1.12.1:64900 [1][0000.0000.0000.0000.0000][198]/120 detail Thu Sep 10 08:55:30.735 UTCBGP routing table entry for [1][0000.0000.0000.0000.0000][198]/120, Route Distinguisher: 10.1.12.1:64900Versions: Process bRIB/RIB SendTblVer Speaker 47 47 Local Label: 24000 (no rewrite); Flags: 0x00040001+0x00000000; Last Modified: Sep 10 08:14:15.832 for 00:41:14Paths: (1 available, best #1) Advertised to peers (in unique update groups): 10.1.2.2 Path #1: Received by speaker 0 Flags: 0x402002000504000b, import: 0x00, EVPN: 0x0 Advertised to peers (in unique update groups): 10.1.2.2 Local 0.0.0.0 from 0.0.0.0 (10.1.1.1), if-handle 0x00000260 Origin IGP, localpref 100, valid, redistributed, best, group-best, import-candidate, rib-install Received Path ID 0, Local Path ID 1, version 47 Extended community: EVPN L2 ATTRS:0x02:4846 RT:9929:64900 RP/0/RP0/CPU0:ASR9922-B# |



The blog from link: http://imxing.cn/wp-trackback.php?p=832