文章目录
一、链路聚合技术
1、链路聚合:
可以将多个物理接口捆绑成一个逻辑接口
,即将N条物理链路聚合为逻辑链路。可以在不升级硬件的条件下,达到增加带宽的效果。
一般将逻辑链路,称为聚合链路,在华为设备中称为ETH-TRUNK链路。(这个技术是针对以太网技术设计的),我们将每一条物理链路称为成员链路,我们将聚合后的逻辑接口称为聚合接口,在华为设备中称为ETH-TRUNK接口,之前的物理接口称为成员接口。
链路聚合技术的要求
:
1、通道的所有物理接口应该具有相同传输速率,双工模式,相同的类型(access或者trunk)包括接口的放通允许列表以及PVID。
2、通道的对端必须是同一台设备。
2、配置链路聚合:
step
:
1、创建聚合接口
[lsw2]interface Eth-Trunk ?
<0-63> Eth-Trunk interface number
[lsw2]interface Eth-Trunk 0-----创建聚合接口0
[lsw2-Eth-Trunk0]
2、将物理接口划入到聚合接口当中
Ways1:
[lsw2-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 0/0/2-----将0/0/0和0/0/1接口划入聚合接口
Ways2:直接进入到物理接口直接将其划入到eth-trunk 0 里面
[lsw1]interface Eth-Trunk 0----创建聚合接口
[lsw1]interface Ethernet 0/0/1----进入0/0/1接口
[lsw1-Ethernet0/0/1]eth-trunk 0---将这个接口划入eth-trunk 0 里面
注意:华为设备为了保证聚合的接口及状态均相同,做了如下限制:
1、在聚合之前,所有接口都不能进行任何配置操作。
2、聚合之后,所有操作均在聚合接口中操作,而不能在物理接口中进行操作。
[lsw2]interface Eth-Trunk 0
[lsw2-Eth-Trunk0]port link-type trunk
[lsw2-Eth-Trunk0]port trunk allow-pass vlan all
华为设备的聚合链路默认采用的是基于流的负载分担。----华为设备默认通过源IP和目标IP来区分不同的数据流
[lsw2-Eth-Trunk0]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
[r1-Eth-Trunk0]undo portswitch ----将二层接口改为三层接口
[r1-Eth-Trunk0]