交换机做端口聚合

应用场景:h3c s5500 (Switch A)。huawei s5720S-SI-AC(Switch B)

Switch A 作为上行交换机,Switch B作为下行交换机

组网:两个交换机的id、vlan号这里使用的是相同

img

Switch A配置

1
2
3
4
5
6
7
8
9
10
11
[Switch A-SW]vlan 50
[Switch A-SW-vlan50]quit
[Switch A-SW]interface Bridge-Aggregation 50
[Switch A-SW-Bridge-Aggregation50]port access vlan 50
[Switch A-SW]interface GigabitEthernet 1/0/19
[Switch A-SW-GigabitEthernet1/0/19]port link-aggregation group 50
[Switch A-SW-GigabitEthernet1/0/19] port access vlan 50
[Switch A-SW]interface GigabitEthernet 1/0/20
[Switch A-SW-GigabitEthernet1/0/20]port link-aggregation group 50
[Switch A-SW-GigabitEthernet1/0/20]port access vlan 50
[Switch A-SW]link-aggregation load-sharing mode source-mac destination-mac
  • 查看端口聚合
    1
    [Switch A-SW]dis link-aggregation verbose

Switch B配置

1、创建eth-trunk接口并加入成员

1
2
3
[Switch B] interface eth-trunk 50
[Switch B-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3
[Switch B-Eth-Trunk1] quit

2、创建vlan并吧串行加入vlan

1
2
3
4
5
[Switch B] vlan batch 50
[Switch B] interface eth-trunk 50
[Switch B-Eth-Trunk1] port link-type trunk
[Switch B-Eth-Trunk1] port trunk allow-pass vlan 50
[Switch B-Eth-Trunk1] quit

3、配置eth-trunk的负载分担方式

1
2
3
[Switch B] interface eth-trunk 1
[Switch B-Eth-Trunk1] load-balance src-dst-mac
[Switch B-Eth-Trunk1] quit

Switch A配置地址段

在vlan里面起一个网络,但不启用dhcp服务

1
2
[Switch A-SW]int vlan 50
[Switch A-SW-Vlan-interface50]ip ad 172.21.16.1 20
坚持原创技术分享,您的支持将鼓励我继续创作!
0%