The following example shows the EAPS (Extreme Automatic Protection Switching) and VPLS configuration for the Core 1 router.
//create the EAPS protected VLAN and the VPLS service vlan create vlan v1 configure v1 add ports 2:3 // port 2:3 is the port connected to dist 1 create eaps eaps2 configure eaps eaps2 mode transit configure eaps eaps2 primary port 2:1 // port going to core 2 configure eaps eaps2 secondary port 2:3 configure eaps eaps2 add control vlan ctrl2 // eaps control vlan configure eaps eaps2 add protected vlan v1 create eaps shared-port 2:1 configure eaps shared-port 2:1 mode controller configure eaps shared-port 2:1 link-id 888 enable eaps2 create vpls vpls1 fec-id-type pseudo-wire 2 configure vpls vpls1 add service vlan v1 configure vpls vpls1 redundancy eaps configure vpls vpls1 add peer <core2> configure vpls vpls1 add peer <core3> configure vpls vpls1 add peer <core4>