Here, we assume that basic MPLS configuration has been put in place. Configuring EoMPLS would be pretty straightforward.
On both PE1 and PE2 routers:
encapsulation dot1Q 10
xconnect 10.1.1.x 10 encapsulation mpls
Replace above 'x' with the peer PE router ID i.e. on PE1 x = 2 and on PE2 x = 1. The router ID is determined by the "mpls ldp router-id" command on the router.
On both CE1 and CE2 switches, let's assume Gi0/1 switch interface is used to connect to their respective PE routers.
switchport trunk encapsulation dot1Q
switchport mode trunk
description Host port
switchport mode access
switchport access vlan 10
To verify the EoMPLS connectivity, enter "show mpls l2transport vc" on both PE routers. The status should indicate UP. You can also perform "show spanning tree vlan 10" on both CE switches to ensure the sanity of spanning tree i.e. only one of the switches should be the root. And finally, both hosts should be able to ping each other on same IP subnet. For further details, refer to this Cisco article.