单位使用H3C S5800-32F,现在业务需要把GigabitEthernet端口1/0/1至1/0/4 4个端口设置成端口聚合组(端口聚合组在VLAN20中),用来连接一台服务器的4个网卡口,4个网卡端口使用1个IP,请教端口聚合组设置命令,谢谢
注:端口1/0/1至1/0/4 4个端口在使用时是用光口转电口的模块转换而成的
(0)
最佳答案
目录
本案例适用于如S5130-28F-WiNet、S5500V2-24P-WiNet、S5500V2-48P-WiNet等的V7交换机,V5、V7交换机具体分类及型号可以参考“1.1 Comware V5、V7平台交换机分类说明”。
1)配置聚合组的成员端口过程中,建议配置顺序:在端口视图下使用display this命令查看端口上是否存在第二类配置(包括端口隔离配置、QinQ配置、VLAN配置、MAC地址学习配置),如果有这类配置,请使用对应的undo命令删除这些配置,使端口保持在缺省第二类配置状态,然后再把端口加入到新创建的聚合组内。
2)由于静态聚合组中端口选中状态不受对端端口是否在聚合组中及是否处于选中状态的影响。这样有可能导致两端设备所确定的Selected状态端口不一致,当两端都支持配置静态和动态聚合组的情况下,建议用户优选动态聚合组。
3)配置或使能了下列功能的端口将不能加入二层聚合组:MAC地址认证、端口安全模式、IP Source Guard功能、802.1X功能。
4)只有工作在二层模式下的端口才能加入二层链路聚合组。
通过链路聚合实现两设备间流量在聚合组中各个选中端口之间分担,以增加带宽和动态备份。
网络中的两台设备均参与两个VLAN的数据流量转发。现要求使用链路聚合特性实现设备上相同vlan间可以相互通信。
# 进入系统视图,创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN 10中。
<H3C> system-view
[H3C]vlan 10
[H3C-vlan10]port gigabitethernet 1/0/4
[H3C-vlan10]quit
# 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN 20中。
[H3C] vlan 20
[H3C-vlan20] port gigabitethernet 1/0/5
[H3C-vlan20] quit
# 创建二层聚合接口1。(根据具体情况选择下面两种方式之一)
l 采用静态聚合模式:创建二层聚合接口1
[H3C]interface bridge-aggregation 1
[H3C-Bridge-Aggregation1] quit
l 采用动态聚合模式:创建二层聚合接口,并配置动态聚合模式
[H3C]interface bridge-aggregation 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
[H3C-GigabitEthernet1/0/1] port link-aggregation group 1
[H3C-GigabitEthernet1/0/1] quit
[H3C]interface gigabitethernet 1/0/2
[H3C-GigabitEthernet1/0/2] port link-aggregation group 1
[H3C-GigabitEthernet1/0/2] quit
[H3C]interface gigabitethernet 1/0/3
[H3C-GigabitEthernet1/0/3] port link-aggregation group 1
[H3C-GigabitEthernet1/0/3] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。
[H3C]interface bridge-aggregation 1
[H3C-Bridge-Aggregation1] port link-type trunk
[H3C-Bridge-Aggregation1] port trunk permit vlan 10 20
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)
您好,请知:
以下是链路聚合的各个配置举例,请参考:
· Device A与Device B通过各自的二层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3相互连接。
· 在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
# 创建VLAN 10,并将端口Ten-GigabitEthernet1/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port ten-gigabitethernet 1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口Ten-GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA-vlan20] port ten-gigabitethernet 1/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-Ten-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
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
--------------------------------------------------------------------------------
XGE1/0/1 S 32768 1
XGE1/0/2 S 32768 1
XGE1/0/3 S 32768 1
以上信息表明,聚合组1为二层静态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的二层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3相互连接。
· 在Device A和Device B上分别配置二层动态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
# 创建VLAN 10,并将端口Ten-GigabitEthernet1/0/4加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port ten-gigabitethernet 1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口Ten-GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA-vlan20] port ten-gigabitethernet 1/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1,并配置该接口为动态聚合模式。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-Ten-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
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: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
XGE1/0/1 S 32768 1 {ACDEF}
XGE1/0/2 S 32768 1 {ACDEF}
XGE1/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
XGE1/0/1 1 32768 1 0x8000, 000f-e267-57ad {ACDEF}
XGE1/0/2 2 32768 1 0x8000, 000f-e267-57ad {ACDEF}
XGE1/0/3 3 32768 1 0x8000, 000f-e267-57ad {ACDEF}
以上信息表明,聚合组1为二层动态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的二层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/4相互连接。
· 在Device A和Device B上分别配置两个二层静态链路聚合组,并使两端的VLAN 10通过二层聚合接口1互通、VLAN 20通过二层聚合接口2互通。
· 通过在聚合组1上按照源MAC地址进行聚合负载分担、在聚合组2上按照目的MAC地址进行聚合负载分担的方式,来实现数据流量在各成员端口间的负载分担。
# 创建VLAN 10,并将端口Ten-GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA] vlan 10
[DeviceA-vlan10] port ten-gigabitethernet 1/0/5
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口Ten-GigabitEthernet1/0/6加入到该VLAN中。
[DeviceA-vlan20] port ten-gigabitethernet 1/0/6
[DeviceA-vlan20] quit
# 创建二层聚合接口1,并配置该接口对应的聚合组内按照源MAC地址进行聚合负载分担。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation load-sharing mode source-mac
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10
[DeviceA-Bridge-Aggregation1] quit
# 创建二层聚合接口2,并配置该接口对应的聚合组内按照目的MAC地址进行聚合负载分担。
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] link-aggregation load-sharing mode destination-mac
[DeviceA-Bridge-Aggregation2] quit
# 分别将端口Ten-GigabitEthernet1/0/3和Ten-GigabitEthernet1/0/4加入到聚合组2中。
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 2
[DeviceA-Ten-GigabitEthernet1/0/3] quit
[DeviceA] interface ten-gigabitethernet 1/0/4
[DeviceA-Ten-GigabitEthernet1/0/4] port link-aggregation group 2
[DeviceA-Ten-GigabitEthernet1/0/4] quit
# 配置二层聚合接口2为Trunk端口,并允许VLAN 20的报文通过。
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] port link-type trunk
[DeviceA-Bridge-Aggregation2] port trunk permit vlan 20
[DeviceA-Bridge-Aggregation2] quit
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
--------------------------------------------------------------------------------
XGE1/0/1 S 32768 1
XGE1/0/2 S 32768 1
Aggregate Interface: Bridge-Aggregation2
Aggregation Mode: Static
Loadsharing Type: Shar
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
XGE1/0/3 S 32768 2
XGE1/0/4 S 32768 2
以上信息表明,聚合组1和聚合组2都是负载分担类型的二层静态聚合组,各包含有两个选中端口。
# 查看Device A上所有聚合接口所对应聚合组内采用的聚合负载分担类型。
[DeviceA] display link-aggregation load-sharing mode interface
Bridge-Aggregation1 Load-Sharing Mode:
source-mac address
Bridge-Aggregation2 Load-Sharing Mode:
destination-mac address
以上信息表明,二层聚合组1按照报文的源MAC地址进行聚合负载分担,二层聚合组2按照报文的目的MAC地址进行聚合负载分担。
· Device与服务器Server通过端口Ten-GigabitEthernet、Ten-GigabitEthernet1/0/2相互连接。
· 在Device上配置一个二层动态链路聚合组。
· 在Device上配置二层聚合接口为边缘端口,以便当服务器上未配置聚合组时,聚合组成员端口都能做为普通端口正常转发报文。
图1-8 二层聚合边缘端口配置组网图
# 创建二层聚合接口1,配置该接口为动态聚合模式。
<Device> system-view
[Device] interface bridge-aggregation 1
[Device-Bridge-Aggregation1] link-aggregation mode dynamic
# 配置二层聚合接口1为聚合边缘端口。
[Device-Bridge-Aggregation1] lacp edge-port
[Device-Bridge-Aggregation1] quit
# 分别将端口Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2加入到聚合组1中。
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[Device-Ten-GigabitEthernet1/0/1] quit
[Device] interface ten-gigabitethernet 1/0/2
[Device-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[Device-Ten-GigabitEthernet1/0/2] quit
#在Server未完成动态聚合模式配置时,查看Device上所有聚合组的详细信息。
[Device] 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: Dynamic
Loadsharing Type: NonS
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
XGE1/0/1 I 32768 1 {AG}
XGE1/0/2 I 32768 1 {AG}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
XGE1/0/1 0 32768 0 0x8000, 0000-0000-0000 {DEF}
XGE1/0/2 0 32768 0 0x8000, 0000-0000-0000 {DEF}
以上信息表明,当Device未收到Server的LACP报文时,Device的聚合成员端口都工作在Individual状态,该状态下聚合成员端口可以作为普通物理口转发报文,以保证此时Server与Device间的链路都可以正常转发报文,且可以相互备份。
· Device A与Device B通过各自的三层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3相互连接。
· 在Device A和Device B上分别配置三层静态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。
# 创建三层聚合接口1,并为该接口配置IP地址和子网掩码。
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/3] quit
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: Route-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
XGE1/0/1 S 32768 1
XGE1/0/2 S 32768 1
XGE1/0/3 S 32768 1
以上信息表明,聚合组1为非负载分担类型的三层静态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的三层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3相互连接。
· 在Device A和Device B上分别配置三层动态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。
# 创建三层聚合接口1,配置该接口为动态聚合模式,并为其配置IP地址和子网掩码。
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] link-aggregation mode dynamic
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/3] quit
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: Route-Aggregation1
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
XGE1/0/1 S 32768 1 {ACDEF}
XGE1/0/2 S 32768 1 {ACDEF}
XGE1/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
XGE1/0/1 1 32768 1 0x8000, 000f-e267-57ad {ACDEF}
XGE1/0/2 2 32768 1 0x8000, 000f-e267-57ad {ACDEF}
XGE1/0/3 3 32768 1 0x8000, 000f-e267-57ad {ACDEF}
以上信息表明,聚合组1为非负载分担类型的三层动态聚合组,包含有三个选中端口。
· Device 与服务器Server通过Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2相互连接。
· 在Device上配置一个三层动态链路聚合组,并配置IP地址和子网掩码。
· 在Device上配置三层动态链路聚合接口为边缘端口,以便当服务器上未配置聚合组时,聚合组成员端口都能做为普通端口正常转发报文。
图1-11 三层聚合边缘端口配置组网图
# 创建三层聚合接口1,配置该接口为动态聚合模式,并为其配置IP地址和子网掩码。
<Device> system-view
[Device] interface route-aggregation 1
[Device-Route-Aggregation1] link-aggregation mode dynamic
[Device-Route-Aggregation1] ip address 192.168.1.1 24
# 配置三层聚合接口1为聚合边缘端口。
[Device-Route-Aggregation1] lacp edge-port
[Device-Route-Aggregation1] quit
# 分别将端口Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2加入到聚合组1中。
[Device] interface ten-gigabitethernet 1/0/1
[Device-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[Device-Ten-GigabitEthernet1/0/1] quit
[Device] interface ten-gigabitethernet 1/0/2
[Device-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[Device-Ten-GigabitEthernet1/0/2] quit
#在Server未完成动态聚合模式配置时,查看Device上所有聚合组的详细信息。
[Device] 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: Route-Aggregation1
Aggregation Mode: Dynamic
Loadsharing Type: NonS
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
XGE1/0/1 I 32768 1 {AG}
XGE1/0/2 I 32768 1 {AG}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
XGE1/0/1 0 32768 0 0x8000, 0000-0000-0000 {DEF}
XGE1/0/2 0 32768 0 0x8000, 0000-0000-0000 {DEF}
以上信息表明,当Device未收到Server的LACP报文时,Device的聚合成员端口都工作在Individual状态,该状态下聚合成员端口可以作为普通物理口转发报文,以保证此时Server与Device间的链路都可以正常转发报文,且可以相互备份。
(0)
暂无评论
首先感谢大家的回复,您们辛苦了。不过我的要求不高:我的要求是交换机设置端口聚合组,是来接服务器网卡的,不是接交换机的,更不需要传递VLAN。谢谢各位了
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论