On the left E4G-200 Switch:
create vlan "lpbk" enable loopback-mode vlan lpbk configure vlan lpbk ipaddress 7.7.7.7 255.255.255.255 enable ipforwarding vlan lpbk
On the right E4G-400 Switch:
create vlan "lpbk" enable loopback-mode vlan lpbk onfigure vlan lpbk ipaddress 2.2.2.2 255.255.255.255 enable ipforwarding vlan lpbk
On the left E4G-200 Switch:
create vlan "vt1" configure vlan vt1 tag 30 configure vlan vt1 add ports 1 tagged configure vlan vt1 ipaddress 40.0.0.1 255.255.255.0 enable ipforwarding vlan vt1
On the right E4G-400 Switch:
create vlan "vt1" configure vlan vt1 tag 20 configure vlan vt1 add ports 10 tagged configure vlan vt1 ipaddress 50.0.0.3 255.255.255.0 enable ipforwarding vlan vt1
On the left E4G-200 Switch:
configure ospf routerid 7.7.7.7 enable ospf configure ospf add vlan lpbk area 0.0.0.0 configure ospf add vlan vt1 area 0.0.0.0
On the right E4G-400 Switch:
configure ospf routerid 2.2.2.2 enable ospf configure ospf add vlan lpbk area 0.0.0.0 configure ospf add vlan vt1 area 0.0.0.0
On the left E4G-200 Switch:
configure mpls add vlan "lpbk" enable mpls vlan "lpbk" enable mpls ldp vlan "lpbk" configure mpls add vlan "vt1" enable mpls vlan "vt1" enable mpls ldp vlan "vt1" configure mpls ldp advertise direct all configure mpls lsr-id 7.7.7.7 enable mpls protocol ldp enable mpls
On the right E4G-400 Switch:
configure mpls add vlan "lpbk" enable mpls vlan "lpbk" enable mpls ldp vlan "lpbk" configure mpls add vlan "vt1" enable mpls vlan "vt1" enable mpls ldp vlan "vt1" configure mpls lsr-id 2.2.2.2 enable mpls protocol ldp enable mpls
On the left E4G-200 Switch:
create tdm service circuit "mpls-satop-s6" configure tdm service circuit "mpls-satop-s6" add port 23
On the right E4G-400 Switch:
create tdm service circuit "mpls-satop-s6" configure tdm service circuit "mpls-satop-s6" add port 43
On the left E4G-200 Switch:
create ces mpls-ces6 psn mpls configure ces mpls-ces6 add service mpls-satop-s6
On the right E4G-400 Switch:
create ces mpls-ces6 psn mpls configure ces mpls-ces6 add service mpls-satop-s6
On the left E4G-200 Switch:
configure ces mpls-ces6 add peer ipaddress 2.2.2.2 fec-id-type pseudo-wire 102
On the right E4G-400 Switch:
configure ces mpls-ces6 add peer ipaddress 7.7.7.7 fec-id-type pseudo-wire 102