华为交换机端口聚合

前端之家收集整理的这篇文章主要介绍了华为交换机端口聚合前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

介绍了两种模式下的典型应用场景举例。

1、 配置手工负载分担模式链路聚合示例

2 、配置静态LACP 模式链路聚合示例

配置手工负载分担模式链路聚合示例

拓扑:

clipboard

配置思路

1、创建Eth-trunk;

2、加入Eth-trunk的成员

说明:

创建Eth-Trunk 后,缺省的工作模式为手工负载分担模式,所以,缺省情况下,不需要配置 其模式为手工负载分担模式。如果当前模式已经配置为其它模式,可以使用mode 命令更改

配置步骤:

A、创建Eth-trunk

#配置杭州9312

<Huawei>sys

Enter system view,return user view with Ctrl+Z.

[Huawei]sysname hangzhou-zhongya9312

[hangzhou-zhongya9312]int Eth-Trunk 1

[hangzhou-zhongya9312-Eth-Trunk1]quit

#配置上海9312

<Huawei>sys

Enter system view,return user view with Ctrl+Z.

[Huawei]sysname shanghai-zhongya9312

[shanghai-zhongya9312]int Eth-Trunk 1

[shanghai-zhongya9312-Eth-Trunk1]quit

[shanghai-zhongya9312]

B、加入Eth-trunk的成员接口

#配置杭州9312

[hangzhou-zhongya9312]int GigabitEthernet 0/0/1

[hangzhou-zhongya9312-GigabitEthernet0/0/1]eth-trunk 1

[hangzhou-zhongya9312-GigabitEthernet0/0/1]quit

[hangzhou-zhongya9312]int GigabitEthernet 0/0/2

[hangzhou-zhongya9312-GigabitEthernet0/0/2]eth-trunk 1

[hangzhou-zhongya9312-GigabitEthernet0/0/2]quit

#配置上海9312

[shanghai-zhongya9312]int g0/0/1

[shanghai-zhongya9312-GigabitEthernet0/0/1]eth-trunk 1

[shanghai-zhongya9312-GigabitEthernet0/0/1]quit

[shanghai-zhongya9312]int g0/0/2

[shanghai-zhongya9312-GigabitEthernet0/0/2]eth-trunk 1

[shanghai-zhongya9312-GigabitEthernet0/0/2]quit

C、验证配置结果

在任意视图下执行display trunkmembership 命令,检查Eth-Trunk 1 是否创建成 功,及成员接口是否正确加入,以杭州9312为例。

[hangzhou-zhongya9312]dis trunkmembership eth-trunk 1

Trunk ID: 1

Used status: VALID

TYPE: ethernet

Working Mode : Normal

Number Of Ports in Trunk = 2

Number Of Up Ports in Trunk = 2

Operate status: up

Interface GigabitEthernet0/0/1,valid,operate up,weight=1

Interface GigabitEthernet0/0/2,weight=1

[hangzhou-zhongya9312]

ping 测试

[hangzhou-zhongya9312]ping 172.40.1.7

PING 172.40.1.7: 56 data bytes,press CTRL_C to break

Reply from 172.40.1.7: bytes=56 Sequence=1 ttl=255 time=50 ms

Reply from 172.40.1.7: bytes=56 Sequence=2 ttl=255 time=50 ms

Reply from 172.40.1.7: bytes=56 Sequence=3 ttl=255 time=50 ms

Reply from 172.40.1.7: bytes=56 Sequence=4 ttl=255 time=30 ms

Reply from 172.40.1.7: bytes=56 Sequence=5 ttl=255 time=50 ms

--- 172.40.1.7 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 30/46/50 ms

[hangzhou-zhongya9312]

配置文件

#杭州9312的配置单#

[hangzhou-zhongya9312]dis cu

#

sysname hangzhou-zhongya9312

#

vlan batch 3501

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

interface Vlanif1

#

interface Vlanif3501

ip address 172.40.1.8 255.255.255.224

#

interface Eth-Trunk1

description HangZhou--to--ShangHai--DWDM-huiju

set flow-stat interval 10

port link-type trunk

undo port trunk allow-pass vlan 1

port trunk allow-pass vlan 3501

stp disable

#

interface GigabitEthernet0/0/1

description hangzhou--to--shanghai--DWDM-CH21

eth-trunk 1

#

interface GigabitEthernet0/0/2

description hangzhou--to--shanghai--DWDM-CH33

eth-trunk 1

#

return

#上海9312配置单#

[shanghai-zhongya9312]dis cu

#

sysname shanghai-zhongya9312

#

vlan batch 3501

#

cluster enable

ntdp enable

ndp enable

#

interface Vlanif1

#

interface Vlanif3501

ip address 172.40.1.7 255.255.255.224

#

interface Eth-Trunk1

description SW--ShangHai--to--HangZhou--DWDM-huiju

set flow-stat interval 10

port link-type trunk

undo port trunk allow-pass vlan 1

port trunk allow-pass vlan 3501

stp disable

#

interface GigabitEthernet0/0/1

description shanghai--to--hangzhou--DWDM-CH21

eth-trunk 1

#

interface GigabitEthernet0/0/2

description shanghai--to--hangzhou--DWDM-CH33

eth-trunk 1

#

return

原文链接:https://www.f2er.com/javaschema/285743.html

猜你在找的设计模式相关文章