Option: Configuring APS for Layer 2 Circuits
To apply Automatic Protection Switching (APS) to a Layer 2 circuit, you must configure an APS working circuit and a protect circuit on PE router interfaces that support SONET options (such as SONET/SDH, ATM, and ATM2 IQ interfaces) and circuit cross-connect (CCC) encapsulation types. Then, you must configure the working circuit as the primary Layer 2 circuit interface and the protect circuit as the protected Layer 2 circuit interface. Note that APS only protects the PE-CE link and not the entire Layer 2 circuit.
To configure an APS working circuit, include the
working-circuitstatement at the[edit interfacesinterface-namesonet-options aps]hierarchy level. To configure an APS protect circuit, include theprotect-circuitstatement at the[edit interfacesinterface-namesonet-options aps]hierarchy level. To configure the primary Layer 2 circuit interface, include theinterfacestatement at the[edit protocols l2circuit neighborip-address]hierarchy level. To configure the protected Layer 2 circuit interface, include theprotect-interfacestatement at the[edit protocols l2circuit neighborip-addressinterfaceinterface-name]hierarchy level.[edit]interfaces {at-0/0/1 {description "APS protect circuit";encapsulationCCC-encapsulation-type;sonet-options {aps {protect-circuitname;}}}at-1/3/1 {description "APS working circuit";encapsulationCCC-encapsulation-type;sonet-options {aps {working-circuitname;}}}}protocols {l2circuit {neighborip-address{interface at-1/3/1.0 {protect-interface at-0/0/1.0;virtual-circuit-idnumber;}}}}