h3c S5120和S5500之间连接,想用2根网线在交换机之间数据交换。(比用单根数据传输快)。这2个端口怎么设置?
谢谢。
(0)
· Device A与Device B通过各自的二层以太网接口GigabitEthernet1/0/1~GigabitEthernet1/0/3相互连接。
· 在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
(1) 配置Device A
# 创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN中。
<DeviceA> system-view
[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet 1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA] vlan 20
[DeviceA-vlan20] port gigabitethernet 1/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/3] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
[DeviceA-Bridge-Aggregation1] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
Port Status Priority Oper-Key
GE1/0/1(R) S 32768 1
GE1/0/2 S 32768 1
GE1/0/3 S 32768 1
以上信息表明,聚合组1为负载分担类型的二层静态聚合组,包含有三个选中端口。
(0)
配置链路聚合即可
# 进入系统视图,创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN 10中。
<H3C> system-view //进入系统视图
[H3C]vlan 10 //创建vlan10
[H3C-vlan10]port gigabitethernet 1/0/4 //将g1/0/4接口加入vlan10
[H3C-vlan10]quit //退出当前视图
# 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN 20中。
[H3C] vlan 20 //创建vlan20
[H3C-vlan20] port gigabitethernet 1/0/5 //将g1/0/5接口加入vlan20
[H3C-vlan20] quit //退出当前视图
# 创建二层聚合接口1。(根据具体情况选择下面两种方式之一)
l
[H3C]interface bridge-aggregation 1 //创建二层聚合接口1
[H3C-Bridge-Aggregation1] quit //退出当前视图
l
[H3C]interface bridge-aggregation 1 //创建二层聚合接口1
[H3C-Bridge-Aggregation1] link-aggregation mode dynamic //配置动态聚合模式
[H3C-Bridge-Aggregation1] quit //退出当前视图
# 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中。
[H3C]interface gigabitethernet 1/0/1 //进入g1/0/1接口
[H3C-GigabitEthernet1/0/1] port link-aggregation group 1 //将接口加入聚合组1
[H3C-GigabitEthernet1/0/1] quit //退出当前视图
[H3C]interface gigabitethernet 1/0/2 //进入g1/0/2接口
[H3C-GigabitEthernet1/0/2] port link-aggregation group 1 //将接口加入聚合组1
[H3C-GigabitEthernet1/0/2] quit //退出当前视图
[H3C]interface gigabitethernet 1/0/3 //进入g1/0/3接口
[H3C-GigabitEthernet1/0/3] port link-aggregation group 1 //将接口加入聚合组1
[H3C-GigabitEthernet1/0/3] quit //退出当前视图
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[H3C]interface bridge-aggregation 1 //创建二层聚合接口1
[H3C-Bridge-Aggregation1] port link-type trunk //配置接口类型为trunk
[H3C-Bridge-Aggregation1] port trunk permit VLAN 10 20 //允许vlan10和vlan20通过
Please wait... Done.
Configuring GigabitEthernet 1/0/1... Done.
Configuring GigabitEthernet 1/0/2... Done.
Configuring GigabitEthernet 1/0/3... Done.
[H3C-Bridge-Aggregation1] quit //退出当前视图
# 保存配置信息
[H3C]save force //保存配置
Switch B上的配置与Switch A完全相同,此处不再赘述。
# 通过display link-aggregation verbose命令来显示聚合组的相关信息,以验证配置是否成功。
l
[H3C] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation Interface: Bridge-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1
GE1/0/2 S 32768 1
GE1/0/3 S 32768 1
结果说明:本端加入到静态聚合组内的成员端口都处于Selected状态,与对端对应端口是否是Selected状态无关。
l
[H3C]display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation Interface: Bridge-Aggregation11
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 000f-e234-5678
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1 {ACDEF}
GE1/0/2 S 32768 1 {ACDEF}
GE1/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE1/0/1 14 32768 1 0x8000, 0000-fc00-7506 {ACDEF}
GE1/0/2 15 32768 1 0x8000, 0000-fc00-7506 {ACDEF}
GE1/0/3 16 32768 1 0x8000, 0000-fc00-7506 {ACDEF}
结果说明:本端和对端设备上聚合组内的成员端口都处于Selected状态。原因是在动态链路聚合中通过LACP协议报文交互,可使两端聚合组内的成员端口选中状态达成一致,可顺利实现对用户数据的转发。
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论