华为设备配置链路聚合(华为链路聚合配置实验)

网友投稿 431 2022-09-19


华为设备配置链路聚合(华为链路聚合配置实验)

1.创建链路聚合口

[LSW1]int Eth-Trunk 1

[LSW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3

[LSW2]int Eth-Trunk 1

[LSW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3

[LSW2]int Eth-Trunk 2

[LSW2-Eth-Trunk2]mode lacp

[LSW2-Eth-Trunk2]trunkport GigabitEthernet 0/0/4 to 0/0/6

[LSW3]int Eth-Trunk 2

[LSW3-Eth-Trunk2]mode lacp

[LSW3-Eth-Trunk2]trunkport GigabitEthernet 0/0/4 to 0/0/6

[LSW3-Eth-Trunk2]max active-linknumber 2  //配置活动接口上限阈值为2

[LSW3]lacp priority 100  //在LSW3上配置系统优先级为100,使其成为LACP主动端

[LSW3-GigabitEthernet0/0/4]lacp priority 100

[LSW3-GigabitEthernet0/0/5]lacp priority 100  //配置接口优先级确定活动链路

2. 创建VLAN并将接口加入VLAN

[LSW1]vlan batch 10 20

[LSW1-GigabitEthernet0/0/4]port link-type access

[LSW1-GigabitEthernet0/0/4]port default vlan 10

[LSW1-GigabitEthernet0/0/5]port link-type access

[LSW1-GigabitEthernet0/0/5]port default vlan 20

[LSW2]vlan batch 10 20

[LSW2-GigabitEthernet0/0/7]port link-type access

[LSW2-GigabitEthernet0/0/7]port default vlan 10

[LSW2-GigabitEthernet0/0/8]port link-type access

[LSW2-GigabitEthernet0/0/8]port default vlan 20

[LSW3]vlan batch 10 20

[LSW3-GigabitEthernet0/0/1]port link-type access

[LSW3-GigabitEthernet0/0/1]port default vlan 10

[LSW3-GigabitEthernet0/0/2]port link-type access

[LSW3-GigabitEthernet0/0/2]port default vlan 20

3. 配置Eth-Trunk的及其负载分担方式

[LSW1]interface  Eth-Trunk 1

[LSW1-Eth-Trunk1]port link-type trunk

[LSW1-Eth-Trunk1]port trunk allow-pass vlan 10 20

[LSW1-Eth-Trunk1]load-balance src-dst-mac

[LSW2]int Eth-Trunk 1

[LSW2-Eth-Trunk1]port link-type trunk

[LSW2-Eth-Trunk1]port trunk allow-pass vlan 10 20

[LSW2-Eth-Trunk1]load-balance src-dst-mac

[LSW2-Eth-Trunk2]port link-type trunk

[LSW2-Eth-Trunk2]port trunk allow-pass vlan 10 20

[LSW3-Eth-Trunk2]port link-type trunk

[LSW3-Eth-Trunk2]port trunk allow-pass vlan 10 20

4.验证


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:华为配置Eth-Trunk接口流量本地优先转发(华为ethtrunk配置)
下一篇:关于组建家用VPN环境的实践
相关文章

 发表评论

暂时没有评论,来抢沙发吧~