Chapter 20
Configuring L2 Virtual Private Networks
Configuration Example—Frame Relay over MPLS
mpls ip
crc 32
clock source internal
!
!Enabling OSPF protocol
router ospf 100
log-adjacency-changes
network 1.0.0.0 0.255.255.255 area 100
network 50.0.0.0 0.255.255.255 area 100
!Define pseudowire-class
pseudowire-class pw_atom1
encapsulation mpls
!FR configuration with two subinterfaces
interface Serial8/0/0.1/1:0
no ip address
encapsulation frame-relay
no fair-queue
frame-relay lmi-type q933a
!
interface Serial8/0/0.1/1:0.1 point-to-point
!
interface Serial8/0/0.1/1:0.2 point-to-point
!
!Two AToM VC configuration with vc ids 1 & 2, 2.2.2.2 is LB addr of PE2
connect atom1 Serial8/0/0.1/1:0 17 l2transport
xconnect 2.2.2.2 1 pw-class pw_atom1
!
!
connect atom2 Serial8/0/0.1/1:0 18 l2transport
xconnect 2.2.2.2 2 pw-class pw_atom1
PE2 Configuration
================================
!Enabling LDP
mpls ldp graceful-restart timers neighbor-liveness 300
mpls ldp graceful-restart timers max-recovery 600
mpls ldp graceful-restart
mpls ldp router-id Loopback0 force
mpls label protocol ldp
!Define Loopback address for LDP protocol
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!Enable MPLS/LDP on the core interface
interface POS4/0/0
ip address 60.0.0.2 255.0.0.0
mpls label protocol ldp
mpls ip
crc 32
clock source internal
!
!Enabling OSPF protocol
router ospf 100
log-adjacency-changes
network 2.0.0.0 0.255.255.255 area 100
network 60.0.0.0 0.255.255.255 area 100
!Define pseudowire-class
pseudowire-class pw_atom1
encapsulation mpls
!FR configuration with two subinterfaces
interface Serial8/0/0.1/1:0
no ip address
encapsulation frame-relay
no fair-queue
Cisco 10000 Series Router Software Configuration Guide
20-45
OL-2226-23