华为交换机LCAP链路聚合
LCAP模式。这里只说主要的功能配置。(sw3-sw4中间有三条线的情况)
mode lcap-static //配置模式为lcap模式 quit 2. int g0/0/1 eth-trunk 2 //加入eth-trunk 2接口 quit ----- g0/0/2 to g0/0/3配置同上。 ------ 3. lcap priority 100 //设置优先级,默认数值为32768 ,数值越小,优先级越高,这样,sw3为主动端如果数值相同,那么谁mac地址小,谁就是主动端。sw4也是需要配的(和我想象的不一样),配置方式相同,就是不需要设置活动接口阈值。(这里说一下,我看书上说不用配,但是我用ensp模拟器不行,必须需要配才好用。小伙伴们根据实际情况来哈。) 4.设置活动接口的阈值 int eth-trunk 2 least active-linknumber 1 //如果当前活动链路的数量小于1的时候,eth-trunk 2整个会down掉。 max active-linknumber 2 //如果加入的eth-trunk2中的接口超过2个,其他的会是down的状态。 这个地方我解释一下:(我做了很多实验,仔细揣摩才知道这个什么意思) a.如果你设置了4个接口加入eth-trunk 2中,max是5个,当你在往eth-trunk 2中增加接口时,这个接口就会直接up,并且dis eth-trunk 2的时候能够发现这个接口直接seleted. b.如果你设置了4个接口加入eth-trunk2中,max是3个,你会发现剩余的口是down,并且是unselected. 下面是效果。 [Huawei-GigabitEthernet0/0/5]dis eth-trunk 2 Partner: 解释一下某几个选项的意思:wokingmode :static (有的交换机会直接显示LACP)就是LACP的意思 说实话,本人感觉LACP真心没用,这样还有一条链路浪费了。还不如直接用我上一讲手动的方式。 5.也可以根据源ip,mac目的ip mac做负载,根据自己的情况来。 [Huawei-Eth-Trunk2]load-balance ? dst-ip According to destination IP hash arithmetic dst-mac According to destination MAC hash arithmetic src-dst-ip According to source/destination IP hash arithmetic src-dst-mac According to source/destination MAC hash arithmetic src-ip According to source IP hash arithmetic src-mac According to source MAC hash arithmetic (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |