RPW (Routed Pseudowire)

IOS ME3600/ME3800 RPW example:

! PE1
interface TenGigabitEthernet0/1
 switchport trunk allowed vlan 20
 switchport mode trunk
 !
interface Vlan20
 ip address 1.1.1.1 255.255.255.0
 xconnect 10.10.10.2 10 encapsulation mpls

! PE2
interface GigabitEthernet0/6
 switchport trunk allowed vlan 20
 switchport mode trunk
 !
interface Vlan20
 ip address 1.1.1.2 255.255.255.0
 xconnect 10.10.10.1 10 encapsulation mpls

IOS ME3600X/ME3800X 2nd example:

! Port based PWE3 at one end
interface GigabitEthernet0/17
 description DC1 VLAN 10 xconnect to DC2 VLAN 20
 no switchport
 no ip address
 no shutdown
 no keepalive
 xconnect 10.0.0.2 123 encapsulation mpls
 exit


! Use VFI at the other end to xconnect into a VLAN so all access ports
! in this VLAN can use the xconnect, the VFI will provide mac learning

l2vpn vfi context 20
 vpn id 123
 member 10.0.0.1 encapsulation mpls
 exit

interface Vlan20
 description Xconnect to DC1 VLAN 10 port
 no ip address ! Could put IP here to make RPW
 member vfi 20
 exit

IOS ME3600X to IOS-XE ASR920 example:

!ME3600X
interface GigabitEthernet0/21
 description xxxxxx
 switchport trunk allowed vlan none
 switchport mode trunk
 service instance 200 ethernet
  encapsulation dot1q 200
  rewrite ingress tag pop 1 symmetric
  l2protocol forward
  bridge-domain 200
  exit
 exit
!
l2 vfi VLAN-200 manual
 vpn id 200
 neighbor 10.0.0.1 200 encaps mpls
 exit
!
interface Vlan200
 xconnect vfi VLAN-200
 ip address x.x.x.x
 exit

!ASR920
interface GigabitEthernet0/0/0
 description xxx
 no ip address
 negotiation auto
 cdp enable
 service instance 200 ethernet
  encapsulation dot1q 200
  rewrite ingress tag pop 1 symmetric
  l2protocol forward
  bridge-domain 200
  exit
 exit
!
l2 vfi VLAN-200 manual
 vpn id 200
 bridge-domain 200
 neighbor 10.0.0.2 20 encps mpls
 exit
!
interface BDI 200
 ip address x.x.x.x
 exit

IOS-XE ASR1K RPW (Routed Pseudo-Wire) example:

PE1:

interface GigabitEthernet0/0/1
 service instance 500 ethernet
  encapsulation dot1q 500
  rewrite ingress tag pop 1 symmetric
  bridge-domain 500

interface BDI500
 description L3 Interface
 ip address 192.0.2.1 255.255.255.252

l2 vfi SRC manual
 vpn id 1
 bridge-domain 500
 neighbor 2.2.2.2 500 encapsulation mpls



PE2:
interface GigabitEthernet0/0/1
 service instance 500 ethernet
  encapsulation dot1q 500
  rewrite ingress tag pop 1 symmetric
  bridge-domain 500

l2 vfi DST manual
 vpn id 1
 bridge-domain 500
 neighbor 1.1.1.1 500 encapsulation mpls

interface BDI500
 description L3 Interface
 ip address 192.0.2.2 255.255.255.252

IOS-XR to IOS-XE

ASR920:

l2 vfi test manual
 vpn id 123
 bridge-domain 1000
 neighbor 10.0.0.2 encapsulation mpls

interface Loopback0
 ip address 1.1.1.1 255.255.255.255
 ip ospf 1 area 0


interface TenGigabitEthernet0/0/2
 service instance 1000 ethernet
  encapsulation dot1q 1000
  rewrite ingress tag pop 1 symmetric
  bridge-domain 1000

interface BDI1000
 ip address 2.0.0.2 255.255.255.248



ASR9001:
l2vpn
 bridge group test
  bridge-domain testbd
   interface TenGigE0/0/2/0.1000
   !
   neighbor 1.1.1.1 pw-id 123
   !
   routed interface BVI1000

interface TenGigE0/0/2/0.1000 l2transport
 encapsulation dot1q 1000

interface BVI1000
 ipv4 address 2.0.0.1 255.255.255.248