OcNOS SP : Layer 2 Guide : Layer 2 Configuration Guide : Layer 2 EPL and EVPL Configuration
Layer 2 EPL and EVPL Configuration
This chapter contains examples of configuring L2 EPL and EVPL Subinterfaces.
Ethernet Private Line (EPL) and Ethernet Virtual Private Line (EVPL) are Ethernet services standardized by the Metro Ethernet Forum (MEF) under the category of ‘E-Line’ services. Both EPL and EVPL offer the advantages of private, high-speed connections with the added flexibility and scalability provided by Multiprotocol Label Switching (MPLS) technology. They are designed to operate across a range of bandwidths to meet diverse business requirements. The key distinction between EPL and EVPL lies in their configuration and how they handle network connections.
EPL provides a Point-to-Point (P2P) connection between two dedicated User Network Interfaces (UNIs). This setup offers a high degree of transparency and is ideal for businesses requiring a simple and direct link between two locations.
EVPL enables multiple Ethernet Virtual Connections (EVCs) per UNI, supporting Point-to-MultiPoint (P2MP) connectivity through service multiplexing. This allows businesses to establish a one-to-many network topology, where a single UNI can connect to multiple remote sites, providing greater flexibility in network design.
Topology
Below figure shows the EPL configuration:
 
Configure L2 EPL
PEB1
 
#configure terminal
Enter configure mode.
(config)#interface xe1
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe1.200 switchport
Creates a L2 sub-interface as xe1.200
(config-if)#encapsulation deafult
Configure the encapsulation as default
(config-if)# rewrite push 0x8100 200
Configure rewrite push with vlan 200
(config-if)#exit
Exit interface mode.
(config)#interface xe2
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe2.200 switchport
Creates a L2 sub-interface as xe2.10
(config-if)#encapsulation dot1q 200
Configure the encapsulation as dot1q matching vlan 200
(config-if)#exit
Exit interface mode.
(config)# cross-connect PEB-1 200
Create cross-connect with name PEB1-200
(config-xc)# interface xe1.200
Attach interface xe1.10
(config-xc)# interface xe2.200
Attach interface xe2.10
(config)#interface xe3
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe3.201 switchport
Creates a L2 sub-interface as xe3.201
(config-if)#encapsulation deafult
Configure the encapsulation as default
(config-if)# rewrite push 0x8100 201
Configure rewrite push with vlan 201
(config-if)#exit
Exit interface mode.
(config)#interface xe2
Enter interface mode
(config-if)#interface xe2.201 switchport
Creates a L2 sub-interface as xe2.201
(config-if)#encapsulation dot1q 201
Configure the encapsulation as dot1q matching vlan 201
(config)# cross-connect PEB1-201
Create cross-connect with name PEB1-201
(config-xc)# interface xe3.201
Attach interface xe3.201
(config-xc)# interface xe2.201
Attach interface xe2.201
(config-if)#exit
Exit interface mode.
 
PB1
 
#configure terminal
Enter configure mode.
(config)#interface xe2
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe2.200 switchport
Creates a L2 sub-interface as xe2.200
(config-if)#encapsulation dot1ad 200
Configure the encapsulation vlan 200
(config-if)#exit
Exit interface mode.
(config)#interface xe1
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe1.200 switchport
Creates a L2 sub-interface as xe1.200
(config-if)#encapsulation dot1ad 200
Configure the encapsulation as dot1ad matching vlan 200
(config-if)#exit
Exit interface mode.
(config)# cross-connect PB1-200
Create cross-connect with name PB1-200
(config-xc)# interface xe2.200
Attach interface xe2.200
(config-xc)# interface xe1.200
Attach interface xe1.200
(config)#interface xe2
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe2.201 switchport
Creates a L2 sub-interface as xe2.201
(config-if)#encapsulation dot1ad 201
Configure the encapsulation as dot1ad with vlan 201
(config-if)#exit
Exit interface mode.
(config)#interface xe1
Enter interface mode
(config-if)#interface xe1.201 switchport
Creates a L2 sub-interface as xe1.201
(config-if)#encapsulation dot1ad 201
Configure the encapsulation as dot1ad with vlan 201
(config-if)#exit
Exit interface mode.
(config)# cross-connect PB1-201
Create cross-connect with name PEB1-201
(config-xc)# interface xe1.201
Attach interface xe1.201
(config-xc)# interface xe2.201
Attach interface xe2.201
(config-if)#exit
Exit interface mode.
 
PB1
 
#configure terminal
Enter configure mode.
(config)#interface xe1
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe1.200 switchport
Creates a L2 sub-interface as xe1.200
(config-if)#encapsulation dot1ad 200
Configure the encapsulation as dot1ad 200
(config-if)#exit
Exit interface mode.
(config)#interface xe2
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe2.200 switchport
Creates a L2 sub-interface as xe2.200
(config-if)#encapsulation default
Configure the encapsulation as default
(config-if)# rewrite push 0x88a8 200
Configure rewrite push with vlan 200
(config-if)#exit
Exit interface mode.
(config)# cross-connect PEB2-200
Create cross-connect with name CC1
(config-xc)# interface xe1.200
Attach interface xe1.200
(config-xc)# interface xe2.200
Attach interface xe2.200
(config)#interface xe1
Enter interface mode
(config-if)#interface xe1.201 switchport
Creates a L2 sub-interface as xe1.201
(config-if)#encapsulation dot1ad 201
Configure the encapsulation as dot1ad with vlan 201
(config-if)#exit
Exit interface mode.
(config)#interface xe3
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe3.201 switchport
Creates a L2 sub-interface as xe3.201
(config-if)#encapsulation default
Configure the encapsulation as default
(config-if)# rewrite push 0x88a8 201
Configure rewrite push with vlan 201
(config-if)#exit
Exit interface mode.
(config)# cross-connect PEB2-201
Create cross-connect with name CC1
(config-xc)# interface xe1.201
Attach interface xe1.201
(config-xc)# interface xe3.201
Attach interface xe3.201
(config-if)#exit
Exit interface mode.
Configure L2 EVPL
Topology
Below figure shows the EVPL configuration:
 
PEB1
SERVICE Configuration (SVLAN=400, CVLAN=10 and SVLAN=400, CVLAN=11
)
#configure terminal
Enter configure mode.
(config)#interface xe1
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe1.10 switchport
Creates a L2 sub-interface as xe1.10
(config-if)#encapsulation dot1q 10
Configure the encapsulation as default
(config-if)# rewrite push 0x88a8 400
Configure rewrite push with vlan 400
(config-if)#exit
Exit interface mode.
(config)#interface xe2
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe2.400 switchport
Creates a L2 sub-interface as xe2.400
(config-if)#encapsulation dot1ad 400
Configure the encapsulation as dot1ad matching vlan 400
(config-if)#exit
Exit interface mode.
(config)# cross-connect PEB1-400-10
Create cross-connect with name CC1
(config-xc)# interface xe1.10
Attach interface xe1.10
(config-xc)# interface xe2.400
Attach interface xe2.400
(config)#interface xe1
Enter interface mode
(config-if)#interface xe1.11 switchport
Creates a L2 sub-interface as xe1.11
(config-if)#encapsulation dot1q 11
Configure the encapsulation as dot1q matching vlan 11
(config-if)# rewrite push 0x88a8 400
Configure rewrite push with vlan 400
(config-if)#exit
Exit interface mode.
(config)# cross-connect PEB1-400-11
Create cross-connect with name CC1
(config-xc)# interface xe1.11
Attach interface xe1.11
(config-xc)# interface xe2.400
Attach interface xe2.400
(config-if)#exit
Exit interface mode.
 
PB1
PB Transport Configuration
 
#configure terminal
Enter configure mode.
(config)#interface xe1
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe1.400 switchport
Creates a L2 sub-interface as xe1.10
(config-if)#encapsulation dot1ad 400
Configure the encapsulation as dot1ad matching vlan 400
(config-if)#exit
Exit interface mode.
(config)#interface xe2
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe2.400 switchport
Creates a L2 sub-interface as xe2.400
(config-if)#encapsulation dot1ad 400
Configure the encapsulation as dot1ad matching vlan 400
(config-if)#exit
Exit interface mode.
(config)# cross-connect PB1-400
Create cross-connect with name CC1
(config-xc)# interface xe1.400
Attach interface xe1.400
(config-xc)# interface xe2.400
Attach interface xe2.400
(config-if)#exit
Exit interface mode.
 
PEB2
SERVICE Configuration (SVLAN=400, CVLAN=10 and SVLAN=400, CVLAN=11)
 
#configure terminal
Enter configure mode.
(config)#interface xe1
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe1.10 switchport
Creates a L2 sub-interface as xe1.10
(config-if)#encapsulation dot1q 10
Configure the encapsulation as dot1q matching vlan 10
(config-if)# rewrite push 0x88a8 400
Configure rewrite push with vlan 400
(config-if)#exit
Exit interface mode.
(config)#interface xe2
Enter interface mode
(config-if)# dot1ad ethertype 0x88a8
Configure interface with tpid value as 88a8
(config-if)#interface xe2.400 switchport
Creates a L2 sub-interface as xe2.400
(config-if)#encapsulation dot1ad 400
Configure the encapsulation as dot1ad matching vlan 400
(config-if)#exit
Exit interface mode.
(config)# cross-connect PEB2-400-10
Create cross-connect with name CC1
(config-xc)# interface xe1.10
Attach interface xe1.10
(config-xc)# interface xe2.400
Attach interface xe2.400
(config)#interface xe1
Enter interface mode
(config-if)#interface xe1.11 switchport
Creates a L2 sub-interface as xe1.11
(config-if)#encapsulation dot1q 11
Configure the encapsulation as dot1q matching vlan 11
(config-if)# rewrite push 0x88a8 400
Configure rewrite push with vlan 400
(config-if)#exit
Exit interface mode.
(config)# cross-connect PEB2-400-11
Create cross-connect with name PEB2-400-11
(config-xc)# interface xe1.11
Attach interface xe1.11
(config-xc)# interface xe2.400
Attach interface xe2.400
(config-if)#exit
Exit interface mode.
Verification commands
The following examples display L2 EPL And EVPL information from various show commands.
show interface brief
PEB1#show interface brief | include xe2
xe2 ETH -- routed up none 10g -- No No
xe2.200 SUBINTERFACE -- -- up none 10g -- No No
xe2.201 SUBINTERFACE -- -- up none 10g -- No No
PEB1#
PEB1#
PEB1#show interface brief | include xe1
xe1 ETH -- routed up none 10g -- No No
xe1.201 SUBINTERFACE -- -- up none 10g -- No No
PEB1#
PEB1#show interface brief | include xe3
xe3 ETH -- routed up none 10g -- No No
xe3.200 SUBINTERFACE -- -- up none 10g -- No No
 
show interface <>
PEB1#sh interface xe2.200
Interface xe2.200
Hardware is SUBINTERFACE Current HW addr: e8c5.7a90.d9c8
Physical:e8c5.7a90.d9c8 Logical:(not set)
Port Mode is Switch
Interface index: 327909576
GMPLS index: 56
Metric 1 mtu 1500 link-speed 10g
Debounce timer: disable
<UP,BROADCAST,RUNNING,ALLMULTI,MULTICAST>
VRF Binding: Not bound
Encapsulation Dot1q (0x8100) Virtual LAN
Outer Match: Dot1q VLAN 200
Label switching is disabled
No Virtual Circuit configured
Administrative Group(s): None
Extended-Admin-Group(s): None
Bandwidth 10g
DHCP client is disabled.
Last Flapped: Never
Statistics last cleared: Never
RX
unicast packets 0 multicast packets 0 broadcast packets 0
input packets 0 bytes 0
jumbo packets 0
undersize 0 oversize 0 CRC 0 fragments 0 jabbers 0
input error 0
input with dribble 0 input discard 0
Rx pause 0
TX
unicast packets 0 multicast packets 0 broadcast packets 0
output packets 0 bytes 0
jumbo packets 0
output errors 0 collision 0 deferred 0 late collision 0
output discard 0
Tx pause 0
show cross-connect
PEB1#show cross-connect
cross-connect status
XC name Ep1 Bkp-Ep1 Ep2 Bkp-Ep2 Status
-----------------------------+----------------+----------------+----------------+----------------+-------
PEB-1-200 xe4.200 - xe6.200 - UP
PEB1-201 xe11.201 - xe6.201 - UP
-----------------------------+----------------+----------------+----------------+----------------+-------
AC cross-connect summary
Total : 2
Up : 2
Down : 0
!
show interface xe1.200 counters
PEB1:
PEB1#show interface xe2.200 counters
Interface xe2.200
Tx Packets: 50000
Tx Bytes: 50000000
PEB1#show interface xe1.200 counters
Interface xe1.200
Tx Packets: 50000
Tx Bytes: 50000000
PEB1#show interface xe2.201 counters
Interface xe2.201
Tx Packets: 50000
Tx Bytes: 50000000
PEB1#show interface xe3.201 counters
Interface xe3.201
Tx Packets: 50000
Tx Bytes: 50000000