0%

使用了一条移动500M线路。上线routeros服务器之后使用82580网卡做了端口汇聚(端口绑定),5700交换机使用了eth-trunk和ros对联,S5700 22端口和移动相连。上线后发现移动线路和下联bras的线路瞬间流量为0,然后迅速恢复。将ros从6.22降级到5.25问题依旧。

无意发现华为S5700交换机出现mac地址漂移(浮动)提示。具体为如下内容:

1
2
3
4
5
6
7
8
#Dec 19 2014 14:04:39+08:00 QZ_WAN1_S5700 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 202, MacAddress = 001b-cd03-23a0, Original-Port = Eth-Trunk1, Flapping port = GE0/0/22. Please check the network accessed to flapping port.
#Dec 19 2014 14:03:55+08:00 QZ_WAN1_S5700 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 125, the change loop count is 0, and the maximum number of records is 4095.
#Dec 19 2014 13:54:39+08:00 QZ_WAN1_S5700 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 202, MacAddress = 001b-cd03-23a0, Original-Port = Eth-Trunk1, Flapping port = GE0/0/22. Please check the network accessed to flapping port.
#Dec 19 2014 13:44:39+08:00 QZ_WAN1_S5700 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 202, MacAddress = 001b-cd03-23a0, Original-Port = Eth-Trunk1, Flapping port = GE0/0/22. Please check the network accessed to flapping port.
#Dec 19 2014 13:34:39+08:00 QZ_WAN1_S5700 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 202, MacAddress = 001b-cd03-23a0, Original-Port = Eth-Trunk1, Flapping port = GE0/0/22. Please check the network accessed to flapping port.
#Dec 19 2014 13:24:39+08:00 QZ_WAN1_S5700 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 202, MacAddress = 001b-cd03-23a0, Original-Port = Eth-Trunk1, Flapping port = GE0/0/22. Please check the network accessed to flapping port.
#Dec 19 2014 13:23:35+08:00 QZ_WAN1_S5700 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 202, MacAddress = 001b-cd03-23a0, Original-Port = Eth-Trunk1, Flapping port = GE0/0/22. Please check the network accessed to flapping port.
#Dec 19 2014 13:14:39+08:00 QZ_WAN1_S5700 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 202, MacAddress = 001b-cd03-23a0, Original-Port = Eth-Trunk1, Flapping port = GE0/0/22. Please check the network accessed to flapping port.

ros网卡的mac地址发现漂移到了移动过来的光纤接口和vlan上,显然是不正常的。因为交换机原理是:基于源地址学习基于目的地址转发。试想如果ros的mac地址在移动的核心网络里飘来飘去肯定会发生数据流无法到达ros或者无法发送出去的问题,猜测是运营商网络中存在环路导致。

阅读全文 »

由于客户的奇葩需求,需要用交换机对pc送上来的数据帧打上双层标签(一般由接入设备完成双层标签,比如OLT)进行交换网络中的数据传递,所以查到如下资料。经过测试是确实可行的。

配置对Untaged报文添加双层Tag功能。

1
2
3
4
5
6
7
8
<Quidway> system-view
[Quidway] vlan 10 //创建双层Tag中外层Tag对应的VLAN
[Quidway-vlan10] quit
[Quidway] interface gigabitethernet0/0/1
[Quidway-GigabitEthernet0/0/1] port link-type hybrid
[Quidway-GigabitEthernet0/0/1] qinq vlan-translation enable //盒式设备,必须先使能VLAN转换功能,框式设备不需要配置
[Quidway-GigabitEthernet0/0/1] port hybrid untagged vlan 10 //接口以Untagged方式加入叠加后的外层VLAN 10
[Quidway-GigabitEthernet0/0/1] port vlan-stacking untagged stack-vlan 10 stack-inner-vlan 5 //该接口收到的Untagged报文,叠加两层VLAN Tag,内层VLAN为5,外层VLAN为10
阅读全文 »

因为要在Ubuntu下支持新硬件,所以要重新编译当前系统内核。总结了如下操作。

下载内核源代码 两种方法

www.kernel.org 下载需要的内核版本源代码。

直接从Ubuntu源中下载当前内核版本的源代码。

1
2
3
uname -a
sudo apt-cache search linux-source
sudo apt-get install sudo apt-get install linux-source-4.20.5

两种方法都需要使用sudo tar解压缩到当前宿主目录目录。

阅读全文 »