neighbor 100.100.100.100 pw-id 1
p2p pwhe2
interface pw-ether2
neighbor 100.100.100.100 pw-id 2
Configuring L2VPN over GRE: Example
Configure the PW core interfaces under IGP and ensure that the loopback is reachable. Configure the tunnel
source such that the tunnel is the current loopback as well as destination of the peer PE loopback. Now,
configure the GRE tunnel in IGP (OSPF or ISIS), and also under mpls ldp and ensure that the LDP neighbor
is established between the PEs for the PW. This ensures that the PW is Up through the tunnel.
Configuration on PE1:
router ospf 1
router-id 1.1.1.1
area 0
interface Loopback0
interface TenGigE0/0/0/1
router ospf 2
router-id 200.200.200.200
area 0
interface Loopback1000
interface tunnel-ip1
mpls ldp
router-id 200.200.200.200
interface tunnel-ip1
Configuration on PE2:
router ospf 1
router-id 3.3.3.3
area 0
interface Loopback0
interface TenGigE0/2/0/3
router ospf 2
router-id 201.201.201.201
area 0
interface Loopback1000
interface tunnel-ip1
!
mpls ldp
router-id 201.201.201.201
interface tunnel-ip1
Configuring a GRE Tunnel as the Preferred Path for Pseudowire: Example
This example shows how to configure a GRE tunnel as the preferred path for a pseudowire.
l2vpn
pw-class gre
encapsulation mpls
preferred-path interface tunnel-ip 1 fallback disable
Configuring a GRE Tunnel as Preferred Path for Pseudowire
Perform this task to configure a GRE tunnel as the preferred path for pseudowires.
SUMMARY STEPS
1. configure
L2VPN and Ethernet Services Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.3.x
350
Implementing Multipoint Layer 2 Services
Configuring L2VPN over GRE: Example