h3c核心交换机接海康交换机链路聚合该怎么做静态的
(0)
最佳答案
· Device A与Device B通过各自的二层以太网接口FortyGigE1/0/1~FortyGigE1/0/3相互连接。
· 在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
(1) 配置Device A
# 创建VLAN 10,并将端口FortyGigE1/0/4加入到该VLAN中。
<DeviceA> system-view
[DeviceA] vlan 10
[DeviceA-vlan10] port fortygige 1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口FortyGigE1/0/5加入到该VLAN中。
[DeviceA] vlan 20
[DeviceA-vlan20] port fortygige 1/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口FortyGigE1/0/1至FortyGigE1/0/3加入到聚合组1中。
[DeviceA] interface fortygige 1/0/1
[DeviceA-FortyGigE1/0/1] port link-aggregation group 1
[DeviceA-FortyGigE1/0/1] quit
[DeviceA] interface fortygige 1/0/2
[DeviceA-FortyGigE1/0/2] port link-aggregation group 1
[DeviceA-FortyGigE1/0/2] quit
[DeviceA] interface fortygige 1/0/3
[DeviceA-FortyGigE1/0/3] port link-aggregation group 1
[DeviceA-FortyGigE1/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
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
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
FGE1/0/1 S 32768 1
FGE1/0/2 S 32768 1
FGE1/0/3 S 32768 1
以上信息表明,聚合组1为二层静态聚合组,包含有三个选中端口。
(0)
默认就是静态,直接在接口下配置就行
[S5820v2-2.21-GigabitEthernet2/0/1]port link-aggregation group 1
(0)
暂无评论
您好,请知:
H3C链路聚合默认的模式就是静态,照常配置即可,剩余的就看海康那边的配置了。
以下是H3C静态链路聚合的配置脚本,请参考:
[MSW]int Bridge-Aggregation 1
[MSW-Bridge-Aggregation1]quit
[MSW]int range gi 1/0/1 to gi 1/0/2
[MSW-if-range]port link-aggregation group 1
[MSW-if-range]quit
[MSW]int Bridge-Aggregation 1
[MSW-Bridge-Aggregation1]port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[MSW-Bridge-Aggregation1]undo port trunk permit vlan 1
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[MSW-Bridge-Aggregation1]port trunk permit vlan 10
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[MSW-Bridge-Aggregation1]quit
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论