elseif rd in (205.3.0.3:3) then
set extcommunity color color2
set next-hop 205.3.0.3
elseif rd in (205.3.0.3:4) then
set extcommunity color color3
set next-hop 205.3.0.3
endif
pass
end-policy
PE2:
configure
route-policy evpn_odn_policy
if rd in (205.1.0.1:2) then
set extcommunity color color11
set next-hop 205.1.0.1
elseif rd in (205.1.0.1:3) then
set extcommunity color color12
set next-hop 205.1.0.1
elseif rd in (205.1.0.1:4) then
set extcommunity color color13
set next-hop 205.1.0.1
endif
pass
end-policy
/* Configure BGP */
PE1:
configure
router bgp 100
bgp router-id 205.1.0.1
bgp graceful-restart
address-family l2vpn evpn
!
neighbor 205.3.0.3
remote-as 100
update-source Loopback0
address-family l2vpn evpn
route-policy evpn_odn_policy in
!
PE2:
configure
router bgp 100
bgp router-id 205.3.0.3
bgp graceful-restart
address-family l2vpn evpn
!
neighbor 205.1.0.1
remote-as 100
update-source Loopback0
address-family l2vpn evpn
route-policy evpn_odn_policy in
!
/* Configure EVPN VPWS */
PE1:
configure
L2VPN and Ethernet Services Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.3.x
662
L2VPN Services over Segment Routing for Traffic Engineering Policy
Running Configuration