You can terminate a Layer 2 circuit locally on an ingress PE router. To configure a locally terminated circuit, include the local-switching statement at the [edit protocols l2circuit] hierarchy level. Select the Layer 2 circuit interfaces you want to connect locally, specify any APS protect interfaces, and configure an end interface. To select the Layer 2 circuit interfaces that are connected locally, include the interface statement at the [edit protocols l2circuit local-switching] hierarchy level. To configure an end interface, include the end-interface statement at the [edit protocols l2circuit local-switching interface interface-name] hierarchy level. To specify APS protect interfaces, include the protect-interface statement at the [edit protocols l2circuit local-switching interface interface-name] or [edit protocols l2circuit local-switching interface interface-name end-interface interface-name] hierarchy levels.
- [edit]
- protocols {
-
- l2circuit {
-
- local-switching {
-
- interface interface1 {
- protect-interface interface2;
-
- end-interface interface3 {
- protect-interface interface4;
- }
- }
-
- interface interface5 {
- protect-interface interface6;
-
- end-interface interface7 {
- protect-interface interface8;
- }
- }
- }
- }
- }