Router(config-bgp-nbr)# remote-as 100
Router(config-bgp-nbr)# update-source loopback 0
Router(config-bgp-nbr)# address-family l2vpn evpn
Router(config-bgp-nbr-af)# route-policy evpn_odn_policy in
Router(config-rpl)# commit
Configure EVPN VPWS
Configure EVPN VPWS on PE1 and PE2.
/* Configure EVPN VPWS on PE1 */
Router# configure
Router(config)# interface GigE0/0/0/2.2 l2transport
Router(config-subif)# encapsulation dot1q 1
Router# exit
!
Router(config)# l2vpn
Router(config-l2vpn)# xconnect group evpn_vpws
Router(config-l2vpn-xc)# p2p e1_10
Router(config-l2vpn-xc-p2p)# interface GigE0/0/0/2.2
Router(config-l2vpn-xc-p2p)# neighbor evpn evi 2 target 10 source 10
Router(config-l2vpn-xc-p2p)#commit
/* Configure EVPN VPWS on PE2 */
Router# configure
Router(config)# interface GigE0/0/0/2.4 l2transport
Router(config-subif)# encapsulation dot1q 1
Router# exit
!
Router(config)# l2vpn
Router(config-l2vpn)# xconnect group evpn_vpws
Router(config-l2vpn-xc)# p2p e3_30
Router(config-l2vpn-xc-p2p)# interface GigE0/0/0/2.4
Router(config-l2vpn-xc-p2p)# neighbor evpn evi 2 target 10 source 10
Router(config-l2vpn-xc-p2p)#commit
Configure VPWS with Pseudowire Headend
Configure VPWS with pseudowire headend. The L3 services are used on the customer side with PWHE.
Figure 89: VPWS with Pseudowire Headend
Router# configure
Router(config)# generic-interface-list ifl
Router(config-gen-if-list)# interface HundredGigE0/0/0/0
Router(config-gen-if-list)# exit
!
Router(config)# interface PW-Ether18
Router(config-if)# attach generic-interface-list ifl
Router(config-gen-if-list)# exit
L2VPN and Ethernet Services Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.3.x
657
L2VPN Services over Segment Routing for Traffic Engineering Policy
Configure EVPN VPWS