(可选)配置备份VPWS连接
配置备份VPWS连接,可以实现VLL FRR(Virtual Leased Line Fast Reroute),使L2VPN流量在主用路径发生故障时及时切换到备用路径上。当主用路径故障恢复后,可根据回切策略将L2VPN流量回切到主用路径。
操作步骤
- 执行命令system-view,进入系统视图。
- 执行命令mpls l2vpn,使能MPLS L2VPN功能。
- 执行命令quit,退回到系统视图。
- 执行命令interface interface-type interface-number [ .subinterface-number ],进入AC接口的接口视图。
- 根据接口类型执行以下命令,创建备份VPWS连接:
以太类、PPP(Point-to-Point Protocol):
mpls static-l2vc { { destination ip-address | pw-template pw-template-name vc-id } * | destination ip-address [ vc-id ] } transmit-vpn-label transmit-label-value receive-vpn-label receive-label-value [ tunnel-policy tnl-policy-name | access-port | [ control-word | no-control-word ] | [ raw | tagged ] | secondary ] *
配置备份VPWS连接时,建议将主PW、备份PW和Bypass PW的参数配置一致,否则当主用PW发生故障时,备份PW或者Bypass PW可能无法承载业务,导致业务中断。
- (可选)执行命令mpls l2vpn service-name service-name,设置L2VPN的业务名称,从而通过网管界面直接操作该业务名称来维护L2VPN业务。
- 执行命令commit,提交配置。