S交换机S5700 Eth-Trunk对接不能正常协商故障

发布时间:  2016-08-18 浏览次数:  313 下载次数:  0
问题描述

某局点交换机割接,S5700交换机与CE交换机之间配置静态Eth-Trunk,但LACP一直协商失败,交换机基本配置如下:

[Huawei-Eth-Trunk1]display  this
  #
  interface Eth-Trunk1
  undo port hybrid vlan 1
  port hybrid tagged vlan 100 to 101
  mode lacp-static
  #

处理过程

1. 查看交换机状态信息,两个成员口都属于unselected状态:

[Huawei-Eth-Trunk1]dis eth-trunk
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                              
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP        
System Priority: 32768      System ID: 4c1f-cc35-0de2                        
Least Active-linknumber: 1  Max Active-linknumber: 8                         
Operate status: down        Number Of Up Port In Trunk: 0                    
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1   Unselect 1GE      32768   2      305     10100010  1    
GigabitEthernet0/0/2   Unselect 1GE      32768   3      305     10100010  1    

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/1   0        0000-0000-0000  0       0      0       10100011
GigabitEthernet0/0/2   0        0000-0000-0000  0       0      0       10100011

2. 查看成员口的物理状态,都正常UP:

Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
  GigabitEthernet0/0/1      up    up          0%     0%          0          0
  GigabitEthernet0/0/2      up    up          0%     0%          0          0

3. 查看接口的lacp报文收发情况,lacp报文收发正常:

[Huawei]display lacp  statistics  eth-trunk  1
Eth-Trunk1's PDU statistic is:
------------------------------------------------------------------------------
Port                    LacpRevPdu   LacpSentPdu  MarkerRevPdu MarkerSentPdu
GigabitEthernet0/0/1    100            111            0            0           
GigabitEthernet0/0/2    101            110            0            0     

     
4. 在交换机对端查看lacp报文收发情况,都没有收到交换机发出的lacp报文;

5. 在交换机测将VLAN 1加入到Eth-Trunk接口中,Eth-Trunk成员口很快就协商起来,问题解决。

[Huawei-Eth-Trunk1]dis eth-trunk  1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                              
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP        
System Priority: 32768      System ID: 4c1f-cc35-0de2                        
Least Active-linknumber: 1  Max Active-linknumber: 8                         
Operate status: up          Number Of Up Port In Trunk: 2                    
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1   Selected 1GE      32768   2      305     10111100  1    

GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1    

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/1   32768    4c1f-cc8b-65c2  32768   2      305     10111100
GigabitEthernet0/0/2   32768    4c1f-cc8b-65c2  32768   3      305     10111100

根因

软件封装lacp协议报文是带上接口的PVID,从对应接口发出时因为Eth-Trunk接口已经退出了VLAN 1,此时认为接口在这个VLAN上没有业务,所以不会发送该协议报文,导致对端不会接收到该问题。交换机最新版本已经解决该场景问题,仍会正常发送。

解决方案
将Eth-Trunk接口加入到PVID所有的VLAN。
建议与总结

因交换机缺省情况下所有接口会加入到VLAN 1,建议业务割接时将所有接口都退出VLAN 1;对于此场景,如果不需要使用PVID,建议将Eth-Trunk加入到一个不需要使用的VLAN。

END