The following example shows the EAPS and VPLS configuration for the Core 2 router.
//create the EAPS protected VLAN and the VPLS service vlan create vlan v1 configure v1 add ports 2:9 // port 2:9 is the port connected to dist 5 create eaps eaps2 configure eaps eaps2 mode transit configure eaps eaps2 primary port 2:1 // port going to core 1 configure eaps eaps2 secondary port 2:9 configure eaps eaps2 add control vlan ctrl2 configure eaps eaps2 add protected vlan v1 create eaps shared-port 2:1 configure eaps shared-port 2:1 mode partner 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 <core1> configure vpls vpls1 add peer <core3> configure vpls vpls1 add peer <core4>