配置虚拟集群接入VC接入L2VPN(多段PW)
在配置虚拟集群接入后,需要在Master上配置VC接入L2VPN,以便完成端到端的业务承载。
背景信息
对于TDM业务的场景,用户需要配置Remote-AP接口的IP地址并配置Master和RSG设备的LDP方式VPWS连接,使得虚拟集群接入VC接入到的LDP方式PW,从而完成TDM业务的端到端承载。
前置条件
- 配置IGP实现主备Master与RSG之间汇聚环网络的连通性
- 配置MPLS TE或MPLS LDP为L2VPN提供公网隧道
- 配置IP RAN虚拟集群接入
操作步骤
- 执行命令system-view,进入系统视图。
- 执行命令interface remote-ap interface-number,进入Remote-AP视图。
- 执行命令mpls l2vc [ instance-name instance-name ] encapsulation { cesopsn-basic | satop-e1 } ip-address vc-id [ [ control-word | no-control-word ] | tunnel-policy tunnel-policy-name | tdm-encapsulation-number tdm-encapsulation-number | tdm-sequence-number | jitter-buffer jitter-buffer | rtp-header | idle-code ] *,配置Master到RSG设备的LDP方式PW。
配置该命令时,需要保证配置的tdm-encapsulation-number tdm-encapsulation-number、jitter-buffer jitter-buffer、idle-code idle-code和AP侧设备的默认配置一致,从而保证AP到RSG之间的多段VPWS连接是Up的,以便能够承载TDM业务。
- 执行命令commit,提交配置。
检查配置结果
使用ping命令测试网络连通性,在Master和RSG上能相互ping通。
[~HUAWEI] ping -a 10.1.1.2 1.2.0.1 PING 1.2.0.1: 56 data bytes, press CTRL_C to break Reply from 1.2.0.1: bytes=56 Sequence=1 ttl=253 time=90 ms Reply from 1.2.0.1: bytes=56 Sequence=2 ttl=253 time=70 ms Reply from 1.2.0.1: bytes=56 Sequence=3 ttl=253 time=120 ms Reply from 1.2.0.1: bytes=56 Sequence=4 ttl=253 time=110 ms Reply from 1.2.0.1: bytes=56 Sequence=5 ttl=253 time=100 ms --- 1.2.0.1 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 70/98/120 ms
在Master上执行display mpls l2vc命令查看LDP方式VPWS PW的连接信息。
[~HUAWEI] display mpls l2vc interface remote-ap 2 *client interface : Remote-Ap2 is up Administrator PW : no session state : up AC status : up VC state : up Label state : 0 Token state : 0 VC ID : 111 VC type : CESoPSN basic mode destination : 2.2.2.2 local group ID : 0 remote group ID : 0 local VC label : 32790 remote VC label : 46 local TDM Encap Num : 8 remote TDM Encap Num : 8 jitter-buffer : 4 idle-code : fa local rtp-header : disable remote rtp-header : disable local bit-rate : 31 remote bit-rate : 31 local AC OAM State : up local PSN OAM State : up local forwarding state : forwarding local status code : 0x0 (forwarding) remote AC OAM state : up remote PSN OAM state : up remote forwarding state: forwarding remote status code : 0x0 (forwarding) ignore standby state : no BFD for PW : unavailable VCCV State : up manual fault : not set active state : active forwarding entry : exist OAM Protocol : -- OAM Status : -- OAM Fault Type : -- PW APS ID : -- PW APS Status : -- TTL Value : 1 link state : up local VC MTU : -- remote VC MTU : -- local VCCV : cw alert ttl lsp-ping bfd remote VCCV : cw alert ttl lsp-ping bfd local control word : enable remote control word : enable tunnel policy name : -- PW template name : -- primary or secondary : primary load balance type : flow Access-port : false Switchover Flag : false VC tunnel info : 1 tunnels NO.0 TNL type : ldp , TNL ID : 0x0000000001004c4b42 create time : 0 days, 16 hours, 34 minutes, 29 seconds up time : 0 days, 16 hours, 34 minutes, 19 seconds last change time : 0 days, 16 hours, 34 minutes, 19 seconds VC last up time : 2015/02/12 17:26:47 VC total up time : 0 days, 16 hours, 34 minutes, 19 seconds CKey : 1 NKey : 1694499019 PW redundancy mode : frr AdminPw interface : -- AdminPw link state : -- Forward state : send inactive, receive inactive Diffserv Mode : uniform Service Class : -- Color : -- DomainId : -- Domain Name : --