USG9520 ETH-TRUNK接口 MAC一致导致问题

发布时间:  2016-06-29 浏览次数:  190 下载次数:  0
问题描述
当USG9000有多个三层Eth-Trunk接口与交换机(二层接口)直连,默认ETH-TRUNK接口的MAC地址为相同的,导致交换机上MAC漂移,业务异常
告警信息
MAC flapping detected, VlanId = [VlanId], Original-Port = [IfNameA], Flapping port 1 = [IfNameB], port 2 = [IfNameC].[AlarmReason].

VLAN内发生了MAC漂移
处理过程

查看接口状态信息

HRP_M[A1-SUG9520-FW-1]dis int eth 1.2216
14:29:55  2016/06/03
Eth-Trunk1.2216 current state : UP
Line protocol current state : UP
Last line protocol up time : 2016-06-02 21:02:39
Description:Huawei, Eudemon Series, Eth-Trunk1.2216 Interface
Route Port,Hash arithmetic : According to flow,Maximal BW: 40G, Current BW: 40G, The Maximum Transmit Unit is 1500
Internet Address is 10.255.245.2/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is a4dc-bef1-effa
Encapsulation dot1q Virtual LAN, The number of Vlan is 1, Vlan ID 2001
    Last 300 seconds input rate 8 bits/sec, 0 packets/sec
    Last 300 seconds output rate 8 bits/sec, 0 packets/sec
    Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
    Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
    Input: 2007 packets,127684 bytes,
           189 unicast,779 broadcast,1039 multicast
           0 errors,0 drops,
    Output:2407 packets,154048 bytes,
           48 unicast,970 broadcast,1389 multicast
           0 errors,0 drops

    Input bandwidth utilization  : 0.01%
    Output bandwidth utilization : 0.01%
-----------------------------------------------------
PortName                Status              Weight
-----------------------------------------------------
GigabitEthernet2/2/0    UP                  1
GigabitEthernet2/2/1    UP                  1
GigabitEthernet3/2/0    UP                  1
GigabitEthernet3/2/1    UP                  1
-----------------------------------------------------
The Number of Ports in Trunk : 4
The Number of UP Ports in Trunk : 4
HRP_M[A1-SUG9520-FW-1]dis int eth 2.2270
14:30:01  2016/06/03
Eth-Trunk2.2270 current state : UP
Line protocol current state : UP
Last line protocol up time : 2016-06-02 21:02:06
Description:Huawei, Eudemon Series, Eth-Trunk2.2270 Interface
Route Port,Hash arithmetic : According to flow,Maximal BW: 40G, Current BW: 40G, The Maximum Transmit Unit is 1500
Internet Address is 10.255.245.102/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is a4dc-bef1-effa
Encapsulation dot1q Virtual LAN, The number of Vlan is 1, Vlan ID 2001
    Last 300 seconds input rate 8 bits/sec, 0 packets/sec
    Last 300 seconds output rate 8 bits/sec, 0 packets/sec
    Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
    Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
    Input: 2057 packets,130884 bytes,
           223 unicast,794 broadcast,1040 multicast
           0 errors,0 drops,
    Output:2411 packets,154304 bytes,
           64 unicast,960 broadcast,1387 multicast
           0 errors,0 drops

    Input bandwidth utilization  : 0.01%
    Output bandwidth utilization : 0.01%

发现三层ETH-TRUNK子接口的MAC一致,导致了业务异常

根因
当USG9000有多个三层Eth-Trunk接口与交换机(二层接口)直连,需要修改三层Eth-Trunk的MAC地址,保证从交换机回程的报文转发到正确的三层Eth-Trunk接口。

解决方案
执行mac-address mac-address命令,配置Eth-Trunk接口的MAC地址。

END