选项:为第 2 层 电路配置 APS
要将自动保护交换 (APS) 应用于第 2 层 电路,必须在支持 SONET 选项(如 SONET/SDH、ATM 和 ATM2 IQ 接口)和电路交叉连接 (CCC) 封装类型的 PE 路由器接口上配置 APS 工作电路和保护电路。然后,您必须将工作电路配置为主第 2 层电路接口,将保护电路配置为受保护的第 2 层 电路接口。请注意,APS 仅保护 PE-CE 链路,而不保护整个第 2 层 电路。
要配置 APS 工作电路,请在层次结构级别包含working-circuit
[edit interfaces interface-name sonet-options aps]
语句。要配置 APS 保护电路,请在层次结构级别包含protect-circuit
[edit interfaces interface-name sonet-options aps]
语句。要配置主第 2 层 电路接口,请在层次结构级别包含interface
语句[edit protocols l2circuit neighbor
ip-address]
。要配置受保护的第 2 层 电路接口,请在层次结构级别包含protect-interface
语句[edit protocols l2circuit neighbor
ip-address interface interface-name]
。
[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
; } } } }