NE40E由于封装类型不一致造成L2vpn VC State down问题的处理

发布时间:  2016-05-26 浏览次数:  1034 下载次数:  0
问题描述
NE40E-X8通过mpls switch-l2vc 10.40.254.245 440000118 between 10.254.254.14 440000111 encapsulation vlan命令配置PW交换,实现PW的多跳(Multi-Hop),由于涉密原因无法看到L2VC远端的具体配置情况,所以只能按照之前其他局点的经验采用encapsulation vlan;但发现mpls switch-l2vc的VC State一直为down。如下所示:
<NE40E-X8_1>dis mpls switch-l2vc brief
 Total Switch VC : 1, 0 up, 1 down
*Switch-l2vc type             : LDP<---->LDP
 Peer IP Address              : 10.254.254.14, 10.40.254.245
 VC ID                        : 440000111, 440000118
 VC Type                      : VLAN
 VC State                     : down
 Session State           : up, up
告警信息
处理过程
1、查看peer和session信息都正常:
<NE40E-X8_1>dis mpls ldp peer
 LDP Peer Information in Public network
------------------------------------------------------------------------------
 PeerID                 TransportAddress   DiscoverySource
 ------------------------------------------------------------------------------
 10.254.254.14:0        10.254.254.14      Remote Peer : 10.254.254.14
 10.40.254.245:0        10.40.254.245      Remote Peer : 10.40.254.245
 ------------------------------------------------------------------------------
 TOTAL: 2 Peer(s) Found.
< NE40E-X8_1>dis mpls ldp session
 LDP Session(s) in Public Network
------------------------------------------------------------------------------
 PeerID             Status      LAM  SsnRole  SsnAge      KASent/Rcv
 ------------------------------------------------------------------------------
 10.254.254.14:0    Operational DU   Active   0000:00:10  42/47
 10.40.254.245:0    Operational DU   Active   0000:00:11  47/54
 ------------------------------------------------------------------------------
 TOTAL: 2 session(s) Found.
2、通过查看远端的信息,发现远端的VC Type: ethernet
< NE40E-X8_1>display  mpls l2vc remote-info  verbose    
Total remote LDP VC : 2
VC ID              : 440000111
VSI Index          : --
VC Type            : ethernet
VC Label           : --
Peer Address       : 10.254.254.14
Group ID           : --
MTU                : --
Status Code        : --
Match Local VC     : NOT MATCH
VC ID              : 440000118
VSI Index          : --
VC Type            : ethernet
VC Label           : --
Peer Address       : 10.40.254.245
Group ID           : --
MTU                : --
Status Code        : --
Match Local VC     : NOT MATCH
而本端VC Type: VLAN
< NE40E-X8_1>dis mpls switch-l2vc brief
 Total Switch VC : 1, 0 up, 1 down
*Switch-l2vc type             : LDP<---->LDP
 Peer IP Address              : 10.254.254.14, 10.40.254.245
 VC ID                        : 440000111, 440000118
 VC Type                      : VLAN
 VC State                     : down
 Session State                : up, up
问题根源定位在VC封装与远端类型不一致。
根因
解决方案
通过命令mpls switch-l2vc 10.40.254.245 440000118 between 10.254.254.14 440000111 encapsulation ethernet,使封装与远端保持一致,VC状态即可正常up,如下所示:
<NE40E-X8_1>dis mpls switch-l2vc brief
 Total Switch VC : 1, 1 up, 0 down
*Switch-l2vc type             : LDP<---->LDP
 Peer IP Address              : 10.254.254.14, 10.40.254.245
 VC ID                      : 440000111, 440000118
 VC Type                    : Ethernet
 VC State                    : up
 Session State          : up, up
建议与总结
在无法获取到mpls switch-l2vc 远端设备的配置脚本时,可以通过display  mpls l2vc remote-info  verbose命令查看远端的VC封装类型,从而快捷地处理由于封装类型不一致造成L2vpn VC State down问题。

END