l2 Mpls VPN Config
l2 Mpls VPN Config
l2 Mpls VPN Config
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
1
Configuring MPLS Layer 2 VPNs
Overview of L2VPN Interworking
The following sections explain the Ethernet and IP interworking modes in detail.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2
Configuring MPLS Layer 2 VPNs
L2VPN Interworking Modes
IP or Routed Interworking
IP interworking is also called routed interworking. The CE routers encapsulate the IP on the link between the
CE router and the PE router. A new VC type is used to signal the IP pseudowire in MPLS. Translation between
the L2 and IP encapsulations across the pseudowire is required. Special consideration needs to be given to
the address resolution protocol operation and routing protocol operation, because these are handled differently
on different L2 encapsulations.
The IP interworking mode is used to provide IP connectivity between sites, regardless of the L2 connectivity
to these sites. It is different from a Layer 3 VPN because it is point-to-point in nature and the service provider
does not maintain any routing information pertaining to customers.
Address resolution is encapsulation dependent as specified here:
• Ethernet uses Address Resolution Protocol (ARP)
• ATM uses inverse ARP
• PPP uses IP Control Protocol (IPCP)
• HDLC uses Serial Line ARP (SLARP)
Therefore, address resolution must be terminated on the PE router. Also, the end-to-end address resolution is
not supported. Routing protocols operate differently over broadcast and point-to-point media. For Ethernet,
the CE routers must either use static routing or configure the routing protocols to treat the Ethernet side as a
point-to-point network.
In routed interworking, the IP packets that are extracted from the ACs are sent over the pseudowire. The
pseudowire works in the IP Layer 2 transport (VC type 0x000B) like-to-like mode. The interworking function
at the network service provider's (NSP) end completes the required adaptation based on the AC technology.
The non-IPv4 packets are dropped.
In routed interworking, the following considerations must be kept in mind:
• ARP, inverse ARP, and IPCP are punted to the routing protocol.
Therefore, the PE router at the NSP end must provide the following address-resolution functionalities for the
Ethernet and ATM and Frame Relay point-to-point subinterface attachment circuits:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
3
Configuring MPLS Layer 2 VPNs
Virtual Private LAN Services
• ◦Ethernet—The PE device acts as a Proxy ARP server to all the ARP requests from the CE router.
The PE router responds with the MAC address of its local interface.
◦ATM and Frame Relay point-to-point subinterface—By default, inverse ARP does not run in the
point-to-point Frame Relay or ATM subinterfaces. The IP address and subnet mask define the
connected prefix; therefore, configuration is not required in the CE devices.
• Interworking requires that the MTUs in both the ACs must match for the pseudowire that is to come up.
The default MTU in one AC must match the MTU of other AC.
The following table lists the range of MTUs that can be configured for different ACs.
POS 64 to 9216
{start footnote}The MTU configured on an AC must not exceed the MTU in the core network. This ensures
that the traffic is not fragmented.{end footnote}
• The CE routers with Ethernet attachment VCs running OSPF must be configured with the ospfIfType
option so that the OSPF protocol treats the underlying physical broadcast link as a P2P link.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
4
Configuring MPLS Layer 2 VPNs
Reverse Layer 2 Gateway Protocol
are no temporary loops. The transition should be at least the same speed in which STP L2GP resolves the the
transient loop problem during the reconvergence because it does not require cooperation from the outside
domain.
Reverse Layer 2 Gateway Protocol (R-L2GP) is a variation of an L2GP. In case of an R-L2GP, the pseudo
information of the R-L2GP is transmitted by Network-facing Provider Edges (nPEs) instead of User
Provider-Edges (uPEs). R-L2GP provides a mechanism to send out static preconfigured Bridge Protocol Data
Units (BPDUs) on each ring access port of nPEs to stimulate a per-access ring instantiation of the protocol.
R-L2GP enables the Provider Edges (PEs) to avoid the burden of running Multiple Instance Spanning Tree
Protocol (MST) when multiple independent access networks that run MST connect to a pair of redundant PEs.
In order for this to work, the pair of nPEs are programmed to send out BPDUs on the access ring ports in such
a way that they appear to be either:
• The root bridge itself (the bridge with the lowest bridge ID or priority).
• The bridge with the second lowest bridge ID or priority, and with a 0 cost path to the root.
Using R-L2GP, you can statically configure the BPDUs instead of the STP generate the BPDUs dynamically.
The following figure shows the topology of multiple-access networks connected to redundant nPEs.
Note Only localy generated static BPDUs can be sent out to RL2GP ports.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
5
Configuring MPLS Layer 2 VPNs
Configuring the R-L2GP
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
6
Configuring MPLS Layer 2 VPNs
Configuring the R-L2GP
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree mode mst
4. spanning-tree mst configuration
5. name name
6. revision version
7. instance instance-id {vlans vlan-range}
DETAILED STEPS
Example:
Router# configure terminal
Example:
Router(config)# spanning-tree mode mst.
Example:
Router(config)# spanning-tree mst
configuration
Step 6 revision version Sets the revision number for the MST (802.1s) configuration.
Note All the nodes in the same region should be
Example: configured with the same MST configure revision
number.
Router(config-mst)# revision 5
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
7
Configuring MPLS Layer 2 VPNs
Configuring the R-L2GP
Example:
Router(config-mst)# instance 2 vlans 1-100
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree pseudo-information transmit indentifier
4. remote-id id
5. mst region-id root mac-address
6. mst region-id cost
DETAILED STEPS
Example:
Example:
Router(config)# spanning-tree
pseudo-information transmit 46
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
8
Configuring MPLS Layer 2 VPNs
Configuring the R-L2GP
Step 5 mst region-id root mac-address Adds MST instances to R-L2GP instances and configures the MAC
address and priority for MST instances.
Example: Note MST 0 has all the VLANs that have not been explicitly
Router(config-pseudo)# specified in other MST instances. MST 0 must be
mst 0 root 32768 0000.0000.0001 configured for each R-L2GP instance.
Step 6 mst region-id cost Adds the corresponding MST instance list to the R-L2GP instance
and configures the R-L2GP path cost for the MST instance or
Example: multiple MST instances.
What to Do Next
Note To configure an R-L2GP on the Cisco ASR 1000 Series Aggregation Services Router, the remote-id
configured on nPE1 must be the transmit identifier configured on nPE2, and vice versa.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface gigabitethernet slot/port
4. spanning-tree pseudo-information transmit identifier
DETAILED STEPS
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
9
Configuring MPLS Layer 2 VPNs
Configuring the R-L2GP
Example:
Example:
interface tengigabitethernet slot/port
Example:
Router(config)# interface gigabitethernet 4/1
Step 4 spanning-tree pseudo-information transmit identifier Configures the Reverse-L2GP configuration on the interface.
Note The identifier should be the same as the one
Example: configured on the nPE.
Router(config-if)# spanning-tree
pseudo-information transmit 46
enable
configure terminal
spanning-tree pseudo-information transmit 46
remote-id 53
mst 0 root 32768 0000.0000.0001
mst 1 root 32768 0000.0000.0002
mst 1 cost 1
mst 2 root 32768 0000.0000.0003
exit
interface gigabitEthernet 2/1/0
spanning-tree pseudo-information transmit 46
Configuration example on nPE2:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
10
Configuring MPLS Layer 2 VPNs
Configuring the R-L2GP
Configuring the Layer 2 Protocol Forwarding Virtual Private LAN Services Pseudowire Between
Two Redundant NPES
SUMMARY STEPS
1. enable
2. configure terminal
3. l2 vfi vfi-name manual
4. vpn id vpn_id
5. bridge-domain bridge_id
6. forward permit l2protocol all
7. neighbor ip-address vc-id {encapsulation mpls |pw-class pw-class-name}
DETAILED STEPS
Example:
Step 4 vpn id vpn_id Sets or updates a VPN ID on a VPN routing and forwarding
(VRF) instance.
Example:
Router(config-vfi)# vpn id 303
Example:
Router(config-vfi)# bridge-domain 100
Step 6 forward permit l2protocol all Defines the VPLS pseudowire that is used to transport bridge
protocol data unit (BPDU) information between two network
Example: provider edge (N-PE) routers.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
11
Configuring MPLS Layer 2 VPNs
Prerequisites for Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
Example:
Router(config-vfi)# neighbor 10.10.10.10 1
encapsulation mpls
remote_id 53
mst_region_id 0, port_count 2, update_flag 0x0
mrecord 0x3AF841EC, mrec_count 3:
msti 0: root_id 32768.0000.0000.0001, root_cost 0, update_flag 0x0
msti 1: root_id 32769.0000.0000.0002, root_cost 1, update_flag 0x0
msti 2: root_id 32770.0000.0000.0003, root_cost 0, update_flag 0x0
Router# show spanning-tree pseudo-information 1 interface GigabitEthernet3/0/3
Pseudo id 1:
GigabitEthernet 2/1/0
GigabitEthernet 0/0/1
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
12
Configuring MPLS Layer 2 VPNs
Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
The following figure shows the interworking function performed in the PE routers that are connected to the
ATM attachment VC and the Frame Relay attachment VC.
Figure 3: Network Topology for Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
On the ATM PE router with interworking function, when traffic flows from the ATM segment to MPLS cloud,
the bridged encapsulation (ATM and SNAP header) is discarded and the Ethernet frame is encapsulated with
the labels required to go through the pseudowire using the VC type 5 (Ethernet). In the opposite direction,
after the label disposition from the MPLS cloud, the Ethernet frames are encapsulated over AAL5SNAP using
bridged encapsulation.
On the FR PE router with interworking function, when traffic flows from the FR segment to the MPLS cloud,
the bridged encapsulation (Frame Relay and SNAP header) is discarded and the Ethernet frame is encapsulated
with the labels required to go through the pseudowire, using the VC type 5 (Ethernet). In the opposite direction,
after the label disposition from the MPLS cloud, the Ethernet frames are encapsulated over FR using bridged
encapsulation.
The PE router automatically supports translation of both Cisco and IETF Frame Relay encapsulation types
coming from the Customer edge (CE) router, but translates only to IETF when sending to the CE router. The
Cisco CE router can handle the IETF encapsulation on receipt, even if it is configured to send Cisco
encapsulation.
The following modes are supported:
• The ATM permanent virtual circuit (PVC) mode with the AAL5SNAP encapsulation type, and the
existing Quality of Service (QoS) functionality for ATM PVCs.
• The Frame Relay DLCI mode, and the existing QoS functionality for Frame Relay.
PVC status signaling works the same way it does in the like-to-like case. The PE router reports the PVC status
to the CE router, based on the availability of the pseudowire.
The attachment circuit maximum transmission unit (MTU) on both sides of the pseudowire must match when
connected over MPLS. The non-AAL5 traffic (such as OAM cells) is punted to be processed at the RP level.
A VC that is configured with OAM cell emulation on the ATM PE router (using the oam-ac emulation-enable
command) can send end-to-end F5 loopback cells at configured intervals toward the CE router. When the
pseudowire is down, an end-to-end F5 segment alarm indication signal (AIS) and remote defect indication
(RDI) is sent from the PE router to the CE router.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
13
Configuring MPLS Layer 2 VPNs
Configuring Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
The following figure shows the protocol stack for the Frame Relay DLCI-to-ATM AAL5SNAP Bridged
Interworking feature.
Figure 4: Protocol Stack for Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
14
Configuring MPLS Layer 2 VPNs
Configuring Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
SUMMARY STEPS
1. enable
2. configure terminal
3. Router(config)# no ip domain lookup
4. mpls label range minimum-value maximum-value [static minimum-static-value maximum-static-value]
5. mpls label protocol ldp
6. mpls ip default-route
7. mpls ldp graceful-restart
8. xconnect logging pseudowire status
9. pseudowire-class [pw-class-name]
10. encapsulation mpls
11. interworking ethernet
12. exit
13. interface loopback loopback-interface-number
14. ip address ip-address mask
15. exit
16. interface GigabitEthernet slot/subslot/port
17. ip address ip-address mask
18. negotiation auto
19. mpls ip
20. exit
21. interface atm slot/subslot/port
22. no ip address
23. atm clock internal
24. no atm enable-ilmi-trap
25. exit
26. interface atm slot/subslot/port [.subinterface-number {point-to-point}]
27. mtu bytes
28. no atm enable-ilmi-trap
29. pvc [name ] vpi/vci l2transport
30. encapsulation encapsulation-type
31. xconnect peer-ip-address vc-id encapsulation mpls pw-class pw-class-name
32. exit
DETAILED STEPS
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
15
Configuring MPLS Layer 2 VPNs
Configuring Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
Router> enable
Step 2 configure terminal Enters the global configuration mode.
Example:
Step 4 mpls label range minimum-value maximum-value Configures the range of local labels available for use with
[static minimum-static-value maximum-static-value] Multiprotocol Label Switching (MPLS) applications on
packet interfaces.
Example:
Example:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
16
Configuring MPLS Layer 2 VPNs
Configuring Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
Example:
Example:
Example:
Step 14 ip address ip-address mask Specifies the IP address for the Loopback interface.
Example:
Step 16 interface GigabitEthernet slot/subslot/port Specifies the Gigabit Ethernet interface for the connection
of the PE routers.
Example:
Step 17 ip address ip-address mask Specifies the IP address for the Gigabit Ethernet interface.
Example:
Step 18 negotiation auto Enables the auto negotiation protocol to configure the
speed, duplex, and automatic flow control of the Gigabit
Example: Ethernet interface.
Router(config-if)# mpls ip
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
17
Configuring MPLS Layer 2 VPNs
Configuring Frame Relay DLCI-to-ATM AAL5SNAP Bridged Interworking
Step 21 interface atm slot/subslot/port Configures an ATM interface and enters interface
configuration mode.
Example:
Example:
Router(config-if)# no ip address
Step 23 atm clock internal Enables the ATM interface to generate the transmit clock
internally.
Example:
Step 26 interface atm slot/subslot/port [.subinterface-number Configures an ATM interface and enters interface
{point-to-point}] configuration mode.
Example:
Example:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
18
Configuring MPLS Layer 2 VPNs
Example: Frame Relay-to-ATM Bridged Interworking on an ATM-PE Router
Router(config-if-atm-l2trans-pvc)# encapsulation
aal5snap
Step 31 xconnect peer-ip-address vc-id encapsulation mpls Binds an attachment circuit to a pseudowire and
pw-class pw-class-name configures an Any Transport over MPLS (AToM) static
pseudowire.
Example:
Router(config-if-atm-l2trans-pvc)# xconnect
190.1.1.1 100 encapsulation mpls pw-class
atm-fr-bridged
no ip domain lookup
mpls label range 101 4000 static 4001 5001
mpls label protocol ldp
mpls ip default-route
mpls ldp graceful-restart
xconnect logging pseudowire status
!
pseudowire-class atm-fr-bridged
encapsulation mpls
interworking ethernet
!
interface Loopback0
ip address 44.1.1.2 255.255.255.255
!
interface GigabitEthernet0/0/1
ip address 10.10.1.2 255.255.255.0
negotiation auto
mpls ip
!
interface ATM0/1/2
no ip address
atm clock INTERNAL
no atm enable-ilmi-trap
!
interface ATM0/1/2.1 point-to-point
mtu 1500
no atm enable-ilmi-trap
pvc 10/100 l2transport
encapsulation aal5snap
xconnect 190.1.1.1 100 pw-class atm-fr-bridged
!
!
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
19
Configuring MPLS Layer 2 VPNs
Example: Frame Relay-to-ATM Bridged Interworking on a Frame Relay-PE Router
ipv6 unicast-routing
mpls label protocol ldp
mpls ip default-route
mpls ldp graceful-restart
frame-relay switching
xconnect logging pseudowire status
!
controller T1 0/3/0
framing esf
clock source internal
linecode b8zs
cablelength long 0db
channel-group 0 timeslots 1-24
!
pseudowire-class atm-fr-bridged
encapsulation mpls
interworking ethernet
!
interface Loopback0
ip address 190.1.1.1 255.255.255.255
!
interface Serial0/3/0:0
no ip address
encapsulation frame-relay
frame-relay intf-type dce
frame-relay interface-dlci 101 switched
!
interface GigabitEthernet1/3/1
ip address 10.10.1.1 255.255.255.0
negotiation auto
mpls ip
!
connect fr-atm-2 Serial0/3/0:0 101 l2transport
xconnect 44.1.1.2 100 pw-class atm-fr-bridged
!
Supported Modes
The following modes are supported in the GEC for VPWS feature:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
20
Configuring MPLS Layer 2 VPNs
Supported Modes
Figure 5: Topology of the GEC Like-to-Like Mode for the GEC for VPWS Feature
Any-to-GEC Mode
The Any-to-GEC mode allows switching of data between two physical interfaces in which the two segments,
CE1-PE1 and CE2-PE2, are both of different types, while one is GEC, the other can be PPP, Ethernet, Frame
Relay, or ATM, as shown in the following figure.
The Any-to-GEC mode has the following features:
Figure 6: Topology of the Any-to-GEC Mode for the GEC for VPWS Feature
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
21
Configuring MPLS Layer 2 VPNs
Restrictions for Gigabit EtherChannel for Virtual Private Wire Service
Note Bridged interworking is used when Layer 2 (L2) packets are considered without regard for Layer 3 contents.
In bridged interworking, Ethernet frames that are extracted from the attachment circuit are sent over the
MPLS pseudowire.
Note Routed interworking is used to carry Layer 3 packets. In routed interworking, IP packets that are extracted
from the attachment circuits are sent over the MPLS pseudowire.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
22
Configuring MPLS Layer 2 VPNs
EtherChannel-to-EtherChannel over MPLS (Bridged) Interworking
SUMMARY STEPS
1. enable
2. configure terminal
3. mpls label protocol ldp
4. interface loopback loopback-interface-number
5. ip address ip-address mask
6. exit
7. pseudowire-class pw-class-name
8. encapsulation mpls
9. interworking ethernet
10. exit
11. interface port-channel number
12. xconnect peer-ip-address vc-id encapsulation mpls pseudowire-class pw-class-name
13. interface GigabitEthernet slot | subslot | port
14. channel-group port-channel number
DETAILED STEPS
Example:
Router# configure terminal
Step 3 mpls label protocol ldp Specifies that LDP is the default label distribution protocol.
Example:
Router# mpls label protocol ldp
Step 4 interface loopback loopback-interface-number Specifies the loopback interface, and enters interface
configuration mode.
Example:
Router# interface loopback 1
Step 5 ip address ip-address mask Sets the IP address and mask for the loopback interface.
Example:
Router# ip address 10.10.2.1 255.255.255.0
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
23
Configuring MPLS Layer 2 VPNs
EtherChannel-to-EtherChannel over MPLS (Bridged) Interworking
Step 8 encapsulation mpls Uses MPLS as the tunneling method to encapsulate data in the
pseudowire.
Example:
Router(config-pw)# encapsulation mpls
Step 9 interworking ethernet Enables the L2VPN Interworking feature, and causes Ethernet
frames to be extracted from the attachment circuit and sent
Example: over the pseudowire. Ethernet end-to-end transmission is
assumed. Attachment circuit frames that do not contain Ethernet
Router(config-pw)# interworking ethernet frames are dropped. In the case of VLAN, the VLAN tag is
removed, which leaves a pure Ethernet frame.
Step 11 interface port-channel number Creates an EtherChannel interface on the Cisco Cable Modem
Termination System (CMTS).
Example:
Router(config)# interface port-channel 1
Step 12 xconnect peer-ip-address vc-id encapsulation mpls Binds an attachment circuit to a pseudowire to configure an
pseudowire-class pw-class-name AToM static pseudowire, specifies MPLS as the tunneling
method, and enters the xconnect configuration mode.
Example:
Router(config-if)# xconnect 10.0.0.1 707
encapsulation mpl pseudowire-class
gec-bridged
Step 13 interface GigabitEthernet slot | subslot | port Specifies the Gigabit Ethernet interface, and enters interface
configuration mode.
Example:
Router(config)# interface GigabitEthernet
0/0/1
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
24
Configuring MPLS Layer 2 VPNs
EtherChannel-to-EtherChannel over MPLS (Routed) Interworking
What to Do Next
Note The EtherChannel-to-EtherChannel over MPLS (Bridged) Interworking mode is also supported under
VLAN.
SUMMARY STEPS
1. enable
2. configure terminal
3. mpls label protocol ldp
4. interface loopback loopback-interface-number
5. ip address ip-address mask
6. exit
7. pseudowire-class pw-class-name
8. encapsulation mpls
9. interworking ip
10. exit
11. interface port-channel number
12. xconnect peer-ip-address vc-id encapsulation mpls pseudowire-class pw-class-name
13. interface GigabitEthernet slot | subslot | port
14. channel-group port-channel number
DETAILED STEPS
Example:
Router# configure terminal
Step 3 mpls label protocol ldp Specifies that LDP is the default label distribution protocol.
Example:
Router# mpls label protocol ldp
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
25
Configuring MPLS Layer 2 VPNs
EtherChannel-to-EtherChannel over MPLS (Routed) Interworking
Step 5 ip address ip-address mask Sets the IP address and mask for the loopback interface.
Example:
Router# ip address 10.10.2.1 255.255.255.0
Step 7 pseudowire-class pw-class-name Specifies the name of a Layer 2 pseudowire class and enters
pseudowire class configuration mode.
Example:
Router(config)# pseudowire-class gec-bridged
Step 8 encapsulation mpls Uses MPLS as the tunneling method to encapsulate data in
the pseudowire.
Example:
Router(config-pw)# encapsulation mpls
Step 11 interface port-channel number Creates an EtherChannel interface on the Cisco Cable Modem
Termination System (CMTS).
Example:
Router(config)# interface port-channel 1
Step 12 xconnect peer-ip-address vc-id encapsulation mpls Binds an attachment circuit to a pseudowire to configure an
pseudowire-class pw-class-name AToM static pseudowire, specifies MPLS as the tunneling
method, and enters xconnect configuration mode.
Example:
Router(config-if)# xconnect 10.0.0.1 707
encapsulation mpl pseudowire-class gec-routed
Step 13 interface GigabitEthernet slot | subslot | port Specifies the Gigabit Ethernet interface, and enters interface
configuration mode.
Example:
Router(config)# interface GigabitEthernet
0/0/1
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
26
Configuring MPLS Layer 2 VPNs
Example: GEC Like-to-Like (Routed) Interworking
What to Do Next
Note The EtherChannel-to-EtherChannel over MPLS (Routed) Interworking mode is also supported under
VLAN.
no ip domain lookup
mpls label range 101 4000 static 4001 5001
mpls label protocol ldp
mpls ip default-route
mpls ldp graceful-restart
xconnect logging pseudowire status
!
pseudowire-class gec-bridged
encapsulation mpls
interworking ethernet!
pseudowire-class gec-routed
encapsulation mpls
interworking ip
!
interface Loopback0
ip address 44.1.1.2 255.255.255.255
!
interface GigabitEthernet0/0/1
ip address 10.10.1.2 255.255.255.0
negotiation auto
mpls ip
!
interface port-channel 1
xconnect 190.1.1.1 100 encapsulation mpls pw-class gec-bridged
!
interface GigabitEthernet0/0/3
channel-group 1
!
interface GigabitEthernet0/0/2
channel-group 1
!
router ospf 10
log-adjacency-changes
network 44.1.1.2 0.0.0.0 area 0
network 10.10.1.2 0.0.0.255 area 0
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
27
Configuring MPLS Layer 2 VPNs
Any-to-EtherChannel over MPLS (Bridged) Interworking
Irrespective of the mode used, in Any-to-EtherChannel over MPLS (Bridged) interworking, configure L2VPN
interworking on the upstream interfaces of PE routers.
Perform the following steps on the downstream interfaces of the PE routers:
SUMMARY STEPS
1. enable
2. configure terminal
3. mpls label protocol ldp
4. interface loopback loopback-interface-number
5. ip address ip-address mask
6. exit
7. pseudowire-class pw-class-name
8. encapsulation mpls
9. interworking ethernet
10. interface GigabitEthernet slot | subslot | port
11. xconnect peer-ip-address vc-id encapsulation mpls pseudowire-class pw-class-name
DETAILED STEPS
Example:
Router# configure terminal
Step 3 mpls label protocol ldp Specifies that LDP is the default label distribution protocol.
Example:
Router# mpls label protocol ldp
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
28
Configuring MPLS Layer 2 VPNs
Any-to-EtherChannel over MPLS (Bridged) Interworking
Step 5 ip address ip-address mask Sets the IP address and mask for the loopback interface.
Example:
Router# ip address 10.10.2.1 255.255.255.0
Step 7 pseudowire-class pw-class-name Specifies the name of a Layer 2 pseudowire class and enters the
pseudowire class configuration mode.
Example:
Router(config)# pseudowire-class gec-bridged
Step 8 encapsulation mpls Uses MPLS as the tunneling method to encapsulate data in the
pseudowire.
Example:
Router(config-pw)# encapsulation mpls
Step 9 interworking ethernet Enables the L2VPN Interworking feature, and causes Ethernet
frames to be extracted from the attachment circuit and sent over
Example: the pseudowire. Ethernet end-to-end transmission is assumed.
Attachment circuit frames that do not contain Ethernet frames
Router(config-pw)# interworking ethernet are dropped. In the case of VLAN, the VLAN tag is removed,
which leaves a pure Ethernet frame.
Step 10 interface GigabitEthernet slot | subslot | port Specifies the Gigabit Ethernet interface, and enters interface
configuration mode.
Example:
Router(config)# interface GigabitEthernet
0/0/1
Step 11 xconnect peer-ip-address vc-id encapsulation mpls Binds an attachment circuit to a pseudowire to configure an
pseudowire-class pw-class-name AToM static pseudowire, specifies MPLS as the tunneling
method, and enters the xconnect configuration mode.
Example:
Router(config-if)# xconnect 10.0.0.1 707
encapsulation mpl pseudowire-class
gec-bridged
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
29
Configuring MPLS Layer 2 VPNs
Any-to-EtherChannel over MPLS (Routed) Interworking
What to Do Next
Note Ethernet-to-EtherChannel over MPLS (Bridge) Interworking mode is also supported under VLAN.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
30
Configuring MPLS Layer 2 VPNs
Any-to-EtherChannel over MPLS (Routed) Interworking
SUMMARY STEPS
1. enable
2. configure terminal
3. ipv6 unicast-routing
4. mpls ip default-route
5. mpls ldp graceful-restart
6. xconnect logging pseudowire status
7. controller t1 slot/subslot/port
8. clock source internal
9. linecode b8zs
10. cablelength long db-loss-value
11. channel-group channel-group-number timeslots range
12. exit
13. pseudowire-class [pw-class-name]
14. encapsulation mpls
15. interworking ethernet
16. exit
17. interface loopback loopback-interface-number
18. ip address ip-address mask
19. exit
20. interface serial slot/subslot/port:timeslot
21. no ip address
22. encapsulation ppp
23. clock source internal
24. xconnect peer-loopback vc-id pw-class pe-class-name
DETAILED STEPS
Example:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
31
Configuring MPLS Layer 2 VPNs
Any-to-EtherChannel over MPLS (Routed) Interworking
Step 4 mpls ip default-route Enables the distribution of labels associated with the IP
default route.
Example:
Example:
Step 8 clock source internal Configures the clock source of a DS1 link and uses the
internal clock from the interface.
Example:
Router(config-controller)# clock source
internal
Step 9 linecode b8zs Specifies Binary 8-Zero Substitution (B8ZS) as the line
code type for the T1 controller.
Example:
Router(config-controller)# linecode b8zs
Step 10 cablelength long db-loss-value Decreases the transmit signal by 0 dB. This is the default
value.
Example:
Router(config-controller)# cablelength long
0db
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
32
Configuring MPLS Layer 2 VPNs
Any-to-EtherChannel over MPLS (Routed) Interworking
Example:
Router(config-controller)# channel-group 0
timeslots 1-24
Step 13 pseudowire-class [pw-class-name] Establishes a pseudowire class with a name that you
specify and enters the pseudowire class configuration
Example: mode.
Example:
Example:
Example:
Step 18 ip address ip-address mask Specifies the IP address for the Loopback interface.
Example:
Example:
Router(config-if)# no ip address
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
33
Configuring MPLS Layer 2 VPNs
High-Level Data Link Control-Ethernet Interworking
Step 24 xconnect peer-loopback vc-id pw-class pe-class-name Binds an attachment circuit to a pseudowire to configure
an AToM static pseudowire, specifies MPLS as the
tunneling method, and enters xconnect configuration
mode.
What to Do Next
Note Ethernet-to-EtherChannel over MPLS (Bridge) Interworking mode is also supported under VLAN.
The following features are supported from Cisco IOS XE Release 3.13.0S on the Cisco ASR 1000 Series
Aggregation Services Routers:
• HDLC-Ethernet Bridged-Mode Interworking
• HDLC-Ethernet Routed-Mode Interworking
• HDLC Encapsulation: CISCO
• Ethernet Encapsulation: Dot1Q, QinQ, Port Interface
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
34
Configuring MPLS Layer 2 VPNs
Prerequisites for HDLC-Ethernet Interworking
controller E1 2/0
channel-group 0 timeslots 1
no shutdown
interface Serial2/0:0
no shutdown
bridge irb
bridge 1 protocol ieee
bridge 1 route ip
interface Serial2/0:0
no bridge-group 1
no ip address
!
int BVI1
no ip address
ip address 192.168.1.1 255.255.255.0
no shut
!
interface Serial2/0:0
description Connect to PE1
no ip address
encapsulation hdlc
bridge-group 1
no shut
interface Serial2/0:0
description Connect to PE1
ip address 192.168.1.1 255.255.255.0
encapsulation hdlc
no shut
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
35
Configuring MPLS Layer 2 VPNs
Bridge Mode
Bridge Mode
Perform the following steps to configure the HDLC-Ethernet Interworking in the bridge mode via
interface-based configuration:
On the HDLC-PE
SUMMARY STEPS
1. enable
2. configure terminal
3. pseudowire-class pw-class-name
4. encapsulation mpls
5. interworking ethernet
6. interface serial slot | subslot | port
7. no ip address
8. xconnect peer-ip-address vc-id pseudowire-class pw-class-name
DETAILED STEPS
Example:
Router# configure terminal
Step 3 pseudowire-class pw-class-name Specifies the name of a Layer 2 pseudowire class and enters
pseudowire class configuration mode.
Example:
Router(config)# pseudowire-class
pw-iw-ether
Step 4 encapsulation mpls Uses MPLS as the tunneling method to encapsulate data in the
pseudowire.
Example:
Router(config-pw)# encapsulation mpls
Step 5 interworking ethernet Enables the L2VPN Interworking feature, and causes Ethernet
frames to be extracted from the attachment circuit and sent over
Example: the pseudowire. Ethernet end-to-end transmission is assumed.
Attachment circuit frames that do not contain Ethernet frames are
Router(config-pw)# interworking ethernet dropped. In the case of VLAN, the VLAN tag is removed, which
leaves a pure Ethernet frame.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
36
Configuring MPLS Layer 2 VPNs
Bridge Mode
Example:
Router(config-if)# no ip address
Step 8 xconnect peer-ip-address vc-id pseudowire-class Binds an attachment circuit to a pseudowire to configure an AToM
pw-class-name static pseudowire, specifies MPLS as the tunneling method, and
enters xconnect configuration mode.
Example:
Router(config-if)# xconnect 17.17.17.17
100 pw-class pw-iw-ether
On the Ethernet PE
SUMMARY STEPS
1. enable
2. configure terminal
3. pseudowire-class pw-class-name
4. encapsulation mpls
5. interworking ethernet
6. interface GigabitEthernet slot | subslot | port
7. encapsulation dot1Q vlan-id
8. xconnect peer-ip-address vc-id pseudowire-class pw-class-name
DETAILED STEPS
Example:
Router# configure terminal
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
37
Configuring MPLS Layer 2 VPNs
Bridge Mode
Step 4 encapsulation mpls Uses MPLS as the tunneling method to encapsulate data in the
pseudowire.
Example:
Router(config-pw)# encapsulation mpls
Step 5 interworking ethernet Enables the L2VPN Interworking feature, and causes Ethernet
frames to be extracted from the attachment circuit and sent over
Example: the pseudowire. Ethernet end-to-end transmission is assumed.
Attachment circuit frames that do not contain Ethernet frames
Router(config-pw)# interworking ethernet are dropped. In the case of VLAN, the VLAN tag is removed,
which leaves a pure Ethernet frame.
Step 6 interface GigabitEthernet slot | subslot | port Specifies the Gigabit Ethernet interface, and enters interface
configuration mode.
Example:
Router(config)# interface
GigabitEthernet0/0/0.3
Step 7 encapsulation dot1Q vlan-id Removes all the IP addresses of the interface.
Example:
What to Do Next
Perform the following steps to configure the HDLC-Ethernet Interworking in the bridge mode via protocol-based
configuration:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
38
Configuring MPLS Layer 2 VPNs
Bridge Mode
On the HDLC-PE
SUMMARY STEPS
1. enable
2. configure terminal
3. l2vpn xconnect context xc-name
4. interworking ethernet
5. member interface-id
6. member ip-address vc-id encapsulation mpls
DETAILED STEPS
Example:
Router# configure terminal
Step 3 l2vpn xconnect context xc-name Creates an empty cross-connect, and enters xconnect submode.
Example:
Router(config)# l2vpn xconnect context HDLC
Step 4 interworking ethernet Enables the L2VPN Interworking feature, and causes Ethernet
frames to be extracted from the attachment circuit and sent over
Example: the pseudowire. Ethernet end-to-end transmission is assumed.
Attachment circuit frames that do not contain Ethernet frames
Router(config)# interworking ethernet are dropped. In the case of VLAN, the VLAN tag is removed,
which leaves a pure Ethernet frame.
Example:
Router(config)# member serial0/1/0:0
Step 6 member ip-address vc-id encapsulation mpls Adds a pseudowire member to xconnect.
Example:
Router(config)# member 17.17.17.17 100
encapsulation mpls
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
39
Configuring MPLS Layer 2 VPNs
Bridge Mode
On the Ethernet PE
SUMMARY STEPS
1. enable
2. configure terminal
3. l2vpn xconnect context foo
4. interworking ethernet
5. member interface-id
6. member ip-address vc-id encapsulation mpls
DETAILED STEPS
Example:
Router# configure terminal
Step 3 l2vpn xconnect context foo Creates an empty cross-connect, and enters xconnect submode.
Example:
Router(config)# l2vpn xconnect context foo
Step 4 interworking ethernet Enables the L2VPN Interworking feature, and causes Ethernet
frames to be extracted from the attachment circuit and sent over
Example: the pseudowire. Ethernet end-to-end transmission is assumed.
Attachment circuit frames that do not contain Ethernet frames
Router(config)# interworking ethernet are dropped. In the case of VLAN, the VLAN tag is removed,
which leaves a pure Ethernet frame.
Example:
Router(config)# member
GigabitEthernet0/0/0.3
Step 6 member ip-address vc-id encapsulation mpls Adds a pseudowire member to xconnect.
Example:
Router(config)# member 16.16.16.16 100
encapsulation mpls
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
40
Configuring MPLS Layer 2 VPNs
Routed Mode
Routed Mode
Perform the following steps to configure the HDLC-Ethernet Interworking in the routed mode via
interface-based configuration:
On HDLC-PE
SUMMARY STEPS
1. enable
2. configure terminal
3. pseudowire-class pw-class-name
4. encapsulation mpls
5. interworking ip
6. interface serial slot | subslot | port
7. no ip address
8. xconnect peer-ip-address vc-id pseudowire-class pw-class-name
DETAILED STEPS
Example:
Router# configure terminal
Step 3 pseudowire-class pw-class-name Specifies the name of a Layer 2 pseudowire class and enters
pseudowire class configuration mode.
Example:
Router(config)# pseudowire-class pw-ip-ether
Step 4 encapsulation mpls Uses MPLS as the tunneling method to encapsulate data in the
pseudowire.
Example:
Router(config-pw)# encapsulation mpls
Step 5 interworking ip Enables the L2VPN Interworking feature, and causes IP packets
to be extracted from the attachment circuit and sent over the
Example: pseudowire. Attachment circuit frames that do not contain IPv4
packets are dropped.
Router(config-pw)# interworking ip
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
41
Configuring MPLS Layer 2 VPNs
Routed Mode
Example:
Router(config-if)# no ip address
Step 8 xconnect peer-ip-address vc-id pseudowire-class Binds an attachment circuit to a pseudowire to configure an
pw-class-name AToM static pseudowire, specifies MPLS as the tunneling
method, and enters xconnect configuration mode.
Example:
Router(config-if)# xconnect 17.17.17.17 100
pw-class pw-ip-ether
On Ethernet PE
SUMMARY STEPS
1. enable
2. configure terminal
3. pseudowire-class pw-class-name
4. encapsulation mpls
5. interworking ip
6. interface GigabitEthernet slot | subslot | port
7. encapsulation dot1Q vlan-id
8. xconnect peer-ip-address vc-id pseudowire-class pw-class-name
DETAILED STEPS
Example:
Router# configure terminal
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
42
Configuring MPLS Layer 2 VPNs
Routed Mode
Step 4 encapsulation mpls Uses MPLS as the tunneling method to encapsulate data in the
pseudowire.
Example:
Router(config-pw)# encapsulation mpls
Step 5 interworking ip Enables the L2VPN Interworking feature, and causes IP packets
to be extracted from the attachment circuit and sent over the
Example: pseudowire. Attachment circuit frames that do not contain IPv4
packets are dropped.
Router(config-pw)# interworking ip
Step 6 interface GigabitEthernet slot | subslot | port Specifies the Gigabit Ethernet interface, and enters interface
configuration mode.
Example:
Router(config)# interface
GigabitEthernet0/0/0.3
Step 7 encapsulation dot1Q vlan-id Enables IEEE 802.1Q encapsulation of traffic on a specified
subinterface in a VLAN.
Example:
What to Do Next
Perform the following steps to configure the HDLC-Ethernet Interworking in the routed mode via protocol-based
configuration:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
43
Configuring MPLS Layer 2 VPNs
Routed Mode
On HDLC-PE
SUMMARY STEPS
1. enable
2. configure terminal
3. l2vpn xconnect context foo
4. interworking ip
5. member interface-id
6. member ip-address encapsulation mpls
DETAILED STEPS
Example:
Router# configure terminal
Step 3 l2vpn xconnect context foo Creates an empty cross-connect, and enters xconnect submode.
Example:
Router(config)# l2vpn xconnect context foo
Example:
Router(config)# member serial0/1/0:0
Example:
Router(config)# member 17.17.17.17 100
encapsulation mpls
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
44
Configuring MPLS Layer 2 VPNs
Routed Mode
On Ethernet PE
SUMMARY STEPS
1. enable
2. configure terminal
3. l2vpn xconnect context foo
4. interworking ip
5. member interface-id
6. member ip-address vcid encapsulation mpls
DETAILED STEPS
Example:
Router# configure terminal
Step 3 l2vpn xconnect context foo Creates an empty cross-connect, and enters xconnect
submode.
Example:
Router(config)# l2vpn xconnect context foo
Example:
Router(config)# member GigabitEthernet0/0/0.3
Step 6 member ip-address vcid encapsulation mpls Adds a pseudowire member to xconnect.
Example:
Router(config)# member 16.16.16.16 100
encapsulation mpls
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
45
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
controller E1 2/0
channel-group 0 timeslots 1
no shutdown
interface Serial2/0:0
no shutdown
The following example shows how to configure the HDLC-Ethernet interworking on the Controller slot on
Ethernet PE:
controller E1 0/1/0
channel-group 0 timeslots 1
no shutdown
interface Serial0/1/0:0
no shutdown
The following example shows how to configure the HDLC-Ethernet interworking using legacy CLI.
The following example shows how to configure on HDLC-CE and HDLC-PE in Bridged (Ethernet) mode
using legacy CLI:
On HDLC-CE
configure terminal
bridge irb
bridge 1 protocol ieee
bridge 1 route ip
!
int BVI1
ip address 192.168.1.1 255.255.255.0
no shut
!
interface Serial2/0:0
description Connect to PE1
encapsulation hdlc
bridge-group 1
no shut
end
HDLC-PE:
configure terminal
pseudowire-class pw-iw-eth
encapsulation mpls
interworking Ethernet
!
interface Serial0/1/0:0
description Connect to CE1
encapsulation hdlc
no ip address
xconnect 3.3.3.3 100 pw-class pw-iw-eth
no shut
end
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
46
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
The following example shows how to configure Ethernet on Ethernet-CE and Ethernet-PE in Bridged (Ethernet)
mode using legacy CLI:
On Ethernet-CE
configure terminal
interface GigabitEthernet0/1
description Connect to PE2
ip address 192.168.1.2 255.255.255.0
ip irdp
ip irdp maxadvertinterval 4
no shut
end
On Ethernet-PE
configure terminal
pseudowire-class pw-iw-eth
encapsulation mpls
interworking Ethernet
!
interface GigabitEthernet1/0/0
description Connect to CE2
no ip address
xconnect 1.1.1.1 100 pw-class pw-iw-eth
no shut
end
The following example shows how to configure VLAN at Ethernet-CE and Ethernet-PE in Bridged (Ethernet)
mode using legacy CLI:
On Ethernet-CE:
configure terminal
interface GigabitEthernet0/1
no ip address
no shut
!
interface GigabitEthernet0/1.10
description Connect to PE2
encapsulation dot1q 10
ip address 192.168.1.2 255.255.255.0
ip irdp
ip irdp maxadvertinterval 4
no shut
end
On Ethernet-PE:
configure terminal
pseudowire-class pw-iw-eth
encapsulation mpls
interworking Ethernet
!
interface GigabitEthernet1/0/0
no ip address
no shut
!
interface GigabitEthernet1/0/0.10
description Connect to CE2
encapsulation dot1Q 10
no ip address
xconnect 1.1.1.1 100 pw-class pw-iw-eth
no shut
end
The following example shows how to configureQinQ at Ethernet-CE and Ethernet-PE in Bridged (Ethernet)
mode using legacy CLI:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
47
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
On Ethernet-CE:
configure terminal
interface GigabitEthernet0/1
no ip address
no shut
!
interface GigabitEthernet0/1.10
description Connect to PE2
encapsulation dot1q 10 second-dot1q 20
ip address 192.168.1.2 255.255.255.0
ip irdp
ip irdp maxadvertinterval 4
no shut
end
On Ethernet-PE:
configure terminal
pseudowire-class pw-iw-eth
encapsulation mpls
interworking Ethernet
!
interface GigabitEthernet1/0/0
no ip address
no shut
!
interface GigabitEthernet1/0/0.10
description Connect to CE2
encapsulation dot1Q 10 second-dot1q 20
no ip address
xconnect 1.1.1.1 100 pw-class pw-iw-eth
no shut
end
The following example shows how to configure HDLC-Ethernet interworking using Protocol-Based CLI:
The following example shows how to configure HDLC on HDLC-CE and HDLC-PE in Bridged (Ethernet)
mode using protocol-based CLI:
On HDLC-CE:
configure terminal
bridge irb
bridge 1 protocol ieee
bridge 1 route ip
!
int BVI1
ip address 192.168.1.1 255.255.255.0
no shut
!
interface Serial2/0:0
description Connect to PE1
encapsulation hdlc
bridge-group 1
no shut
end
On HDLC-PE:
configure terminal
interface Serial0/1/0:0
description Connect to CE1
encapsulation hdlc
no ip addres
no shut
!
Interface pseudowire101
encapsulation mpls
neighbor 3.3.3.3 100
signaling protocol ldp
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
48
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
no shut
l2vpn xconnect context foohdlc
interworking ethernet
member Serial0/1/0:0
member pseudowire101
no shut
end
The following example shows how to configure Ethernet on Ethernet-CE and Ethernet-PE - Bridged (Ethernet)
mode using protocol-based CLI:
On Ethernet-CE:
configure terminal
interface GigabitEthernet0/1
description Connect to PE2
ip address 192.168.1.2 255.255.255.0
ip irdp
ip irdp maxadvertinterval 4
no shut
end
On Ethernet-PE:
configure terminal
interface GigabitEthernet1/0/0
description Connect to CE2
no ip address
no shut
!
Interface pseudowire101
encapsulation mpls
neighbor 1.1.1.1 100
signaling protocol ldp
no shut
!
l2vpn xconnect context fooeth
interworking ethernet
member GigabitEthernet1/0/0
member pseudowire101
no shut
end
The following example shows how to configure VLAN on Ether-CE and Ethernet-PE in Bridged (Ethernet)
mode using protocol-based CLI:
On Ethernet-CE:
configure terminal
!
interface GigabitEthernet0/1
no ip address
no shut
!
interface GigabitEthernet0/1.10
encapsulation dot1q 10
description Connect to PE2
ip address 192.168.1.2 255.255.255.0
ip irdp
ip irdp maxadvertinterval 4
no shut
end
On Ethernet-PE:
configure terminal
!
interface GigabitEthernet1/0/0
no ip address
no shut
!
interface GigabitEthernet1/0/0.10
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
49
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
configure terminal
!
interface GigabitEthernet0/1
no ip address
no shut
!
interface GigabitEthernet0/1.10
description Connect to PE2
encapsulation dot1q 10 second-dot1q 20
ip address 192.168.1.2 255.255.255.0
ip irdp
ip irdp maxadvertinterval 4
no shut
end
Ethernet-PE:
configure terminal
!
interface GigabitEthernet1/0/0
no ip address
no shut
!
interface GigabitEthernet1/0/0.10
description Connect to CE2
encapsulation dot1q 10 second-dot1q 20
no ip addres
no shut
!
Interface pseudowire101
encapsulation mpls
neighbor 1.1.1.1 100
signaling protocol ldp
no shut
!
l2vpn xconnect context fooqinq
interworking ethernet
member GigabitEthernet1/0/0.10
member pseudowire101
no shut
end
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
50
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
The following example shows how to verify the HDLC configuration on PE:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
51
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
52
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
VC statistics:
transit packet totals: receive 9, send 5
transit byte totals: receive 315, send 380
transit packet drops: receive 0, seq error 0, send 0
Router# show l2vpn atom vc
Service
Interface Peer ID VC ID Type Name Status
--------- --------------- ---------- ------ ------------------------ ----------
pw101 102.0.0.1 101 p2p foo101 UP
Router# show l2vpn atom vc detail
pseudowire101 is up, VC status is up PW type: Ethernet
Create time: 00:00:23, last status change time: 00:00:20
Last label FSM state change time: 00:00:20
Destination address: 102.0.0.1 VC ID: 101
Output interface: Fa0/0/1, imposed label stack {18 18}
Preferred path: not configured
Default path: active
Next hop: 11.1.1.1
Member of xconnect service foo101
Associated member Gi1/0/0 is up, status is up
Interworking type is Like2Like
Service id: 0xb5000004
Signaling protocol: LDP, peer 102.0.0.1:0 up
Targeted Hello: 104.0.0.1(LDP Id) -> 102.0.0.1, LDP is UP
Graceful restart: configured and enabled
Non stop routing: not configured and not enabled
PWid FEC (128), VC ID: 101
Status TLV support (local/remote) : enabled/supported
LDP route watch : enabled
Label/status state machine : established, LruRru
Local dataplane status received : No fault
BFD dataplane status received : Not sent
BFD peer monitor status received : No fault
Status received from access circuit : No fault
Status sent to access circuit : No fault
Status received from pseudowire i/f : No fault
Status sent to network peer : No fault
Status received from network peer : No fault
Adjacency status of remote peer : No fault
Sequencing: receive disabled, send disabled
Bindings
Parameter Local Remote
------------ ------------------------------ ------------------------------
Label 17 18
Group ID 0 0
Interface Connect to CE2 Connect to CE1
MTU 1500 1500
Control word on (configured: autosense) on
PW type Ethernet Ethernet
VCCV CV type 0x02 0x02
LSPV [2] LSPV [2]
VCCV CC type 0x07 0x07
CW [1], RA [2], TTL [3] CW [1], RA [2], TTL [3]
Status TLV enabled supported
SSO Descriptor: 102.0.0.1/101, local label: 17
Dataplane:
SSM segment/switch IDs: 4126/4125 (used), PWID: 4
Rx Counters
5 input transit packets, 175 bytes
0 drops, 0 seq err
Tx Counters
3 output transit packets, 228 bytes
0 drops
VLAN (dot1q) mode
The following example shows how to verify the HDLC configuration on PE:
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
53
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
54
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
55
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
56
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
57
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
58
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
configure terminal
template type pseudowire hdlc-vlan1-tmp
encapsulation mpls
signaling protocol ldp
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
59
Configuring MPLS Layer 2 VPNs
Example: HDLC-Ethernet Interworking Configuration
On Ethernet-PE:
configure terminal
interface FastEthernet0/0/0.16
description Connect to CE2
encapsulation dot1q 16
no ip addres
no shut
!
template type pseudowire hdlc-vlan1-tmp
encapsulation mpls
signaling protocol ldp
configure terminal
template type pseudowire hdlc-vlan1
encapsulation mpls
!
interface pseudowire107
source template type pseudowire hdlc-vlan1
encapsulation mpls
neighbor 3.3.3.3 107
signaling protocol ldp
no shut
!
l2vpn xconnect context hdlc-vlan1-con
interworking ethernet
member Serial0/2/0:3
member pseudowire107
no shutdown
end
On Ethernet-PE:
configure terminal
interface FastEthernet0/0/0.16
description Connect to CE2
encapsulation dot1q 16
no ip addres
no shut
!
template type pseudowire hdlc-vlan1
encapsulation mpls
!
interface pseudowire107
source template type pseudowire hdlc-vlan1
encapsulation mpls
neighbor 1.1.1.1 107
signaling protocol ldp
no shut
!
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
60
Configuring MPLS Layer 2 VPNs
Additional References
Additional References
The following sections provide references related to the Frame Relay-to-ATM Bridged Interworking and
xconnect support on GEC (VPWS) features.
Related Documents
Standards
Standard Title
No new or modified standards are supported by this —
feature.
MIBs
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
61
Configuring MPLS Layer 2 VPNs
Technical Assistance
RFCs
Technical Assistance
Description Link
The Cisco Support website provides extensive online {start
resources, including documentation and tools for hypertext}http://www.cisco.com/cisco/web/support/index.html{end
troubleshooting and resolving technical issues with hypertext}
Cisco products and technologies.
To receive security and technical information about
your products, you can subscribe to various services,
such as the Product Alert Tool (accessed from Field
Notices), the Cisco Technical Services Newsletter,
and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website
requires a Cisco.com user ID and password.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
62
Configuring MPLS Layer 2 VPNs
Feature Information for Configuring MPLS Layer 2 VPNs
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
63
Configuring MPLS Layer 2 VPNs
Feature Information for Configuring MPLS Layer 2 VPNs
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
64
Configuring MPLS Layer 2 VPNs
Feature Information for Configuring MPLS Layer 2 VPNs
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
65
Configuring MPLS Layer 2 VPNs
Glossary
Glossary
ATM—Asynchronous Transfer Mode. A method of data transportation, whereby fixed-length packets are
sent over a switched network. The method’s ability to ensure reliable delivery of packets at a high rate makes
it suitable for carrying voice, video, and data.
AToM—Any Transport over MPLS. AToM is a solution for transporting Layer 2 packets over an MPLS
backbone. AToM enables service providers to supply connectivity between customer sites with existing data
link layer (Layer 2) networks by using a single, integrated, packet-based network infrastructure—a Cisco
MPLS network. Instead of separate networks with separate network management environments, service
providers can deliver Layer 2 connections over an MPLS backbone.
Dot1q—IEEE 802.1Q is the networking standard that supports virtual LANs (VLANs) on an Ethernet network.
The standard defines a system of VLAN tagging for Ethernet frames and the accompanying procedures to be
used by bridges and switches in handling such frames.
EoMPLS—Ethernet over MPLS. This technology leverages an existing MPLS backbone network to deliver
Transparent LAN Services based on Ethernet connectivity to the customer site.
GEC—Gigabit EtherChannel. A high-performance Ethernet technology that provides gigabit per second
transmission rates. It provides a flexible and scalable bandwidth with resiliency and load sharing across links
for switches, router interfaces, and servers. Supports up to eight links per channel.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
66
Configuring MPLS Layer 2 VPNs
Glossary
HDLC—High-Level Data Link Control (HDLC) is a bit-oriented code-transparent synchronous data link-layer
protocol developed by the International Organization for Standardization (ISO).
MPLS—Multiprotocol Label Switching. A mechanism in high-performance telecommunications networks
that directs and carries data from one network node to the next. MPLS makes it easy to create virtual links
between distant nodes. It can encapsulate packets of various network protocols.
QinQ—IEEE 802.1ad is an Ethernet networking standard informally known as IEEE 802.1QinQ, and is an
amendment to the IEEE standard 802.1Q-1998. The technique is also known as provider bridging, Stacked
VLANs, or simply QinQ or Q-in-Q.
VPLS—Virtual Private LAN Service. A method to provide Ethernet-based multipoint-to-multipoint
communication over IP and MPLS networks.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
67
Configuring MPLS Layer 2 VPNs
Glossary
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
68