华为交换机聚合trunk配置

作者: 都爸 | 分类: news | 浏览量: 71 | 发布时间: 2025-03-09 11:16:27

undo info-center enable

更换设备名称

[Huawei]sysname sw1

创建并进入trunk口设置

[sw1]interface Eth-Trunk 1

设置trunk口模式为lacp

[sw1-Eth-Trunk1]mode lacp-static

[sw1-Eth-Trunk1]q

进入想设置为trunk的接口

[sw1]int GigabitEthernet 0/0/18

设置此接口为trunk口

[sw1-GigabitEthernet0/0/18]eth-trunk 1

Info: This operation may take a few seconds. Please wait for a moment...done.

[sw1-GigabitEthernet0/0/18]int g0/0/21

[sw1-GigabitEthernet0/0/21]eth-trunk 1

Info: This operation may take a few seconds. Please wait for a moment...done.

已将18/21口设为trunk口

 最新评论
头像

都爸

ID: 2

金币: 999999999 | 粉丝: 1 | 关注: 1

注册时间: 2024-11-18 17:33:11
最近登录: 2025-10-22 20:04:56

注册IP: 117.103.94.141

或可直接在trunk口模式下用trunkport指令将接口加入trunk
[sw2-Eth-Trunk1]mode lacp-static
[sw2-Eth-Trunk1]trunkport g0/0/18
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw2-Eth-Trunk1]trunkport g0/0/21

/webHome/host8207382729/www/viewnews.php on line 230
">
头像

都爸

ID: 2

金币: 999999999 | 粉丝: 1 | 关注: 1

注册时间: 2024-11-18 17:33:11
最近登录: 2025-10-22 20:04:56

注册IP: 117.103.94.141

关闭设备日志
<sw1>u t m

/webHome/host8207382729/www/viewnews.php on line 230
">
头像

都爸

ID: 2

金币: 999999999 | 粉丝: 1 | 关注: 1

注册时间: 2024-11-18 17:33:11
最近登录: 2025-10-22 20:04:56

注册IP: 117.103.94.141

聚合接口配置允许所有vlan数据通过
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp-static

/webHome/host8207382729/www/viewnews.php on line 230
">

发表评论

/webHome/host8207382729/www/viewnews.php on line 262
">
请登录后发表评论。