华为华三交换-链路聚合配置

链路聚合

华为

华三

 

Eth-trunk

Bridge-aggregation

描述

增加带宽优势,最大带宽=各个接口带宽之和。

增加可靠性,当有条链路挂逼了,其他链路还可以使用。

负载分担,一条链路聚合,可以在各个成员接口上负载分担。

两端设备都支持动态LACP,推荐使用LACP模式。

 

链路聚合条件:所有参数必须一致,接口数量、速率、双工方式、流控方式

 

 

 

 

配置

查看信息:

dis eth-trunk 1 verbose

 

二层链路聚合:

int eth-trunk 1

 mode lacp-static

 trunkport g0/0/1 to g0/0/2

 port link-type trunk

 port trunk allow-pass vlan all

 

对端交换机配置同上。

 

交换机之间,选举LACP主动端,id小的为主:

[SW1]lacp priority 0

 

开启LACP抢占,默认关闭,等待30s在抢占:

lacp preempt enable

10s抢占:

lacp preempt delay 10

 

配置接口下的抢占(越小越优):

int g0/0/2

 lacp priority 0

查看信息:

dis link-aggregation summary

dis link-aggregation verbose

 

二层链路聚合:

SW1:

interface bridge-aggregation 1

 LACP模式

 link-aggregation mode dynamic

 port link-type trunk

 port trunk permit vlan all

 

interface range g1/0/1 to g1/0/3

 port link-aggregation group 1

 

SW2:

interface bridge-aggregation 1

 link-aggregation mode dynamic

 port link-type trunk

 port trunk permit vlan all

 

interface range g1/0/1 to g1/0/2

 port link-aggregation group 1

 

int Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan 10 20

 

三层链路聚合-交换机连路由器:

sw1:

interface Route-Aggregation10

 ip addr 192.168.1.1 255.255.255.0

 

int range g1/0/2 g1/0/3

 port link-mode route

 port link-aggregation group 10

 

R1:

interface Route-Aggregation10

 ip addr 192.168.1.2 255.255.255.0

 

int range g0/1 g0/2

 port link-aggregation group 10

你可能感兴趣的:(网络数据链路层,网络,交换机)