l2vpn
pw-class pw1013
encapsulation mpls
load-balancing
flow-label both
preferred-path sr-te policy 1013 fallback disable
Xconnect group xcon1
p2p vplw1002
interface TenGigE0/0/1/1.1002
neighbor 3.3.3.3 pw-id 1002
pw-class pw1013
/* Configure VPWS Pseudowire Headend SR-TE Policy */
interface PW-Ether1
ipv4 address 10.1.1.1 255.255.255.0
attach generic-interface-list 1
generic-interface-list 1
interface Bundle-Ether1
interface TenGigE0/1/0/6/1
interface TenGigE0/1/0/6/2
l2vpn
pw-class pw1300
encapsulation mpls
transport-mode ethernet
preferred-path sr-te policy 1300 [fallback disable]
l2vpn
xconnect group xg2
p2p pwhe10001
interface PW-Ether10001
neighbor ipv4 2.2.2.2 pw-id 10001
pw-class pw1300
Verify L2VPN VPLS or VPWS Preferred Path over SR-TE Policy Configuration
/* The prefix-sid and Adjacency-sid must be in the SR topology */
PE1#show segment-routing traffic-eng ipv4 topology | inc Prefix
Thu Feb 1 20:28:43.343 EST
Prefix SID:
Prefix 1.1.1.1, label 16100 (regular)
Prefix SID:
Prefix 3.3.3.3, label 16300 (regular)
Prefix SID:
Prefix 2.2.2.2, label 16200 (regular)
PE1#show segment-routing traffic-eng ipv4 topology | inc Adj SID
Thu Feb 1 20:30:25.760 EST
Adj SID: 61025 (unprotected) 15102 (unprotected)
Adj SID: 61023 (unprotected) 15101 (unprotected)
Adj SID: 65051 (unprotected) 15100 (unprotected)
Adj SID: 41516 (unprotected) 15301 (unprotected)
Adj SID: 41519 (unprotected) 15302 (unprotected)
Adj SID: 46660 (unprotected) 15201 (unprotected)
L2VPN and Ethernet Services Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.3.x
646
L2VPN Services over Segment Routing for Traffic Engineering Policy
Verify L2VPN VPLS or VPWS Preferred Path over SR-TE Policy Configuration