• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

H3C 交换机端口聚合模式怎么添加ip

2022-12-26提问
  • 0关注
  • 0收藏,1871浏览
粉丝:0人 关注:0人

问题描述:

bond模式下的接口怎么添加up,把聚合组划分进vlan 还是单独把端口划分至vlan

最佳答案

lmm 八段
粉丝:5人 关注:2人

聚合端口需要将聚合口划分进vlan,聚合口划分进vlan之后,接口会自动也属于这个vlan

暂无评论

4 个回答
粉丝:103人 关注:8人

聚合成员的端口属性需要在聚合接口下配置。

二层聚合在相应vlan if下配置IP。

三层聚合在聚合口下配置IP。


聚合口配置参考:

# 创建二层聚合接口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

# 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组1中

[H3C]interface gigabitethernet 1/0/1

[H3C-GigabitEthernet1/0/1] port link-aggregation group 1

[H3C]interface gigabitethernet 1/0/2

[H3C-GigabitEthernet1/0/2] port link-aggregation group 1

[H3C]interface gigabitethernet 1/0/3

[H3C-GigabitEthernet1/0/3] port link-aggregation group 1

# 配置二层聚合接口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



暂无评论

zhl188 三段
粉丝:0人 关注:2人

你是三层聚合还是二层聚合,二层聚合是通过vlanif配置地址,聚合端口下放行该vlan

三层就是route-Aggregation,接口下可以直接配置IP地址

暂无评论

粉丝:207人 关注:1人

聚合组模式,物理接口只有一个操作,就是把物理口加入到聚合组下面,剩下的所有操作都是在聚合组下完成的

暂无评论

您好,请知:

如果是使用二层聚合,将VLAN加入到聚合组后再给VLAN配置IP地址。

如果是使用三层聚合,可以直接在聚合组配置IP地址。

以下是二层聚合、三层聚合的配置案例:

1.18  以太网链路聚合典型配置举例

1.18.1  二层静态聚合配置举例

1. 组网需求

·     Device A与Device B通过各自的二层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。

·     在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。

2. 组网图

图1-7 二层静态聚合配置组网图

3. 配置步骤

(1)     配置Device A

# 创建VLAN 10,并将端口HundredGigE3/0/4加入到该VLAN中。

<DeviceA> system-view

[DeviceA] vlan 10

[DeviceA-vlan10] port hundredgige 3/0/4

[DeviceA-vlan10] quit

# 创建VLAN 20,并将端口HundredGigE3/0/5加入到该VLAN中。

[DeviceA] vlan 20

[DeviceA-vlan20] port hundredgige 3/0/5

[DeviceA-vlan20] quit

# 创建二层聚合接口1。

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] quit

# 分别将端口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。

[DeviceA] interface hundredgige 3/0/1

[DeviceA-HundredGigE3/0/1] port link-aggregation group 1

[DeviceA-HundredGigE3/0/1] quit

[DeviceA] interface hundredgige 3/0/2

[DeviceA-HundredGigE3/0/2] port link-aggregation group 1

[DeviceA-HundredGigE3/0/2] quit

[DeviceA] interface hundredgige 3/0/3

[DeviceA-HundredGigE3/0/3] port link-aggregation group 1

[DeviceA-HundredGigE3/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相似,配置过程略。

4. 验证配置

# 查看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

  HGE3/0/1(R)      S       32768    1

  HGE3/0/2         S       32768    1

  HGE3/0/3         S       32768    1

以上信息表明,聚合组1为负载分担类型的二层静态聚合组,包含有三个选中端口。

1.18.2  二层动态聚合配置举例

1. 组网需求

·     Device A与Device B通过各自的二层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。

·     在Device A和Device B上分别配置二层动态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。

2. 组网图

图1-8 二层动态聚合配置组网图

3. 配置步骤

(1)     配置Device A

# 创建VLAN 10,并将端口HundredGigE3/0/4加入到该VLAN中。

<DeviceA> system-view

[DeviceA] vlan 10

[DeviceA-vlan10] port hundredgige 3/0/4

[DeviceA-vlan10] quit

# 创建VLAN 20,并将端口HundredGigE3/0/5加入到该VLAN中。

[DeviceA] vlan 20

[DeviceA-vlan20] port hundredgige 3/0/5

[DeviceA-vlan20] quit

# 创建二层聚合接口1,并配置该接口为动态聚合模式。

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic

[DeviceA-Bridge-Aggregation1] quit

# 分别将端口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。

[DeviceA] interface hundredgige 3/0/1

[DeviceA-HundredGigE3/0/1] port link-aggregation group 1

[DeviceA-HundredGigE3/0/1] quit

[DeviceA] interface hundredgige 3/0/2

[DeviceA-HundredGigE3/0/2] port link-aggregation group 1

[DeviceA-HundredGigE3/0/2] quit

[DeviceA] interface hundredgige 3/0/3

[DeviceA-HundredGigE3/0/3] port link-aggregation group 1

[DeviceA-HundredGigE3/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相似,配置过程略。

4. 验证配置

# 查看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

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, 000f-e267-6c6a

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  HGE3/0/1(R)         S        32768    11       1                      {ACDEF}

  HGE3/0/2            S        32768    12       1                      {ACDEF}

  HGE3/0/3            S        32768    13       1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  HGE3/0/1            32768    81       1        0x8000, 000f-e267-57ad {ACDEF}

  HGE3/0/2            32768    82       1        0x8000, 000f-e267-57ad {ACDEF}

  HGE3/0/3            32768    83       1        0x8000, 000f-e267-57ad {ACDEF}

以上信息表明,聚合组1为负载分担类型的二层动态聚合组,包含有三个选中端口。

1.18.3  二层聚合负载分担配置举例

1. 组网需求

·     Device A与Device B通过各自的二层以太网接口HundredGigE3/0/1~HundredGigE3/0/4相互连接。

·     在Device A和Device B上分别配置两个二层静态链路聚合组,并使两端的VLAN 10通过二层聚合接口1互通、VLAN 20通过二层聚合接口2互通。

·     通过在聚合组1上按照源MAC地址进行聚合负载分担、在聚合组2上按照目的MAC地址进行聚合负载分担的方式,来实现数据流量在各成员端口间的负载分担。

2. 组网图

二层聚合负载分担配置组网图

3. 配置步骤

(1)     配置Device A

# 创建VLAN 10,并将端口HundredGigE3/0/5加入到该VLAN中。

<DeviceA> system-view

[DeviceA] vlan 10

[DeviceA-vlan10] port hundredgige 3/0/5

[DeviceA-vlan10] quit

# 创建VLAN 20,并将端口HundredGigE3/0/6加入到该VLAN中。

[DeviceA] vlan 20

[DeviceA-vlan20] port hundredgige 3/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

# 分别将端口HundredGigE3/0/1和HundredGigE3/0/2加入到聚合组1中。

[DeviceA] interface hundredgige 3/0/1

[DeviceA-HundredGigE3/0/1] port link-aggregation group 1

[DeviceA-HundredGigE3/0/1] quit

[DeviceA] interface hundredgige 3/0/2

[DeviceA-HundredGigE3/0/2] port link-aggregation group 1

[DeviceA-HundredGigE3/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

# 分别将端口HundredGigE3/0/3和HundredGigE3/0/4加入到聚合组2中。

[DeviceA] interface hundredgige 3/0/3

[DeviceA-HundredGigE3/0/3] port link-aggregation group 2

[DeviceA-HundredGigE3/0/3] quit

[DeviceA] interface hundredgige 3/0/4

[DeviceA-HundredGigE3/0/4] port link-aggregation group 2

[DeviceA-HundredGigE3/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

(2)     配置Device B

Device B的配置与Device A相似,配置过程略。

4. 验证配置

# 查看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

  HGE3/0/1(R)      S       32768    1

  HGE3/0/2         S       32768    1

 

Aggregate Interface: Bridge-Aggregation2

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority Oper-Key

  HGE3/0/3(R)      S       32768    2

  HGE3/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地址进行聚合负载分担。

1.18.4  二层聚合边缘接口配置举例

1. 组网需求

·     Device与服务器Server通过端口HundredGigE3/0/1、HundredGigE3/0/2相互连接。

·     在Device上配置一个二层动态链路聚合组。

·     在Device上配置二层聚合接口为聚合边缘接口,以便当服务器上未配置动态聚合组时,Device上聚合组成员端口都能作为普通端口正常转发报文。

2. 组网图

图1-9 二层聚合边缘接口配置组网图

3. 配置步骤

配置Device

# 创建二层聚合接口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

# 分别将端口HundredGigE3/0/1、HundredGigE3/0/2加入到聚合组1中。

[Device] interface hundredgige 3/0/1

[Device-HundredGigE3/0/1] port link-aggregation group 1

[Device-HundredGigE3/0/1] quit

[Device] interface hundredgige 3/0/2

[Device-HundredGigE3/0/2] port link-aggregation group 1

[Device-HundredGigE3/0/2] quit

4. 验证配置

# 当Server未完成动态聚合模式配置时,查看Device上所有聚合组的详细信息。

[Device] 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

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, 000f-e267-6c6a

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  HGE3/0/1            I        32768    11       1                      {AG}

  HGE3/0/2            I        32768    12       1                      {AG}

 

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  HGE3/0/1            32768    81       0        0x8000, 0000-0000-0000 {DEF}

  HGE3/0/2            32768    82       0        0x8000, 0000-0000-0000 {DEF}

以上信息表明,当Device未收到Server的LACP报文时,Device的聚合成员端口都工作在Individual状态,该状态下所有聚合成员端口可以作为普通物理口转发报文,以保证此时Server与Device间的链路都可以正常转发报文,且相互形成备份。

1.18.5  三层静态聚合配置举例

1. 组网需求

·     Device A与Device B通过各自的三层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。

·     在Device A和Device B上分别配置三层静态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。

2. 组网图

图1-10 三层静态聚合配置组网图

3. 配置步骤

(1)     配置Device A

# 创建三层聚合接口1,并为该接口配置IP地址和子网掩码。

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] quit

# 分别将接口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。

[DeviceA] interface hundredgige 3/0/1

[DeviceA-HundredGigE3/0/1] port link-aggregation group 1

[DeviceA-HundredGigE3/0/1] quit

[DeviceA] interface hundredgige 3/0/2

[DeviceA-HundredGigE3/0/2] port link-aggregation group 1

[DeviceA-HundredGigE3/0/2] quit

[DeviceA] interface hundredgige 3/0/3

[DeviceA-HundredGigE3/0/3] port link-aggregation group 1

[DeviceA-HundredGigE3/0/3] quit

(2)     配置Device B

Device B的配置与Device A相似,配置过程略。

4. 验证配置

# 查看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: Route-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority Oper-Key

  HGE3/0/1(R)      S       32768    1

  HGE3/0/2         S       32768    1

  HGE3/0/3         S       32768    1

以上信息表明,聚合组1为负载分担类型的三层静态聚合组,包含有三个选中端口。

1.18.6  三层动态聚合配置举例

1. 组网需求

·     Device A与Device B通过各自的三层以太网接口HundredGigE3/0/1~HundredGigE3/0/3相互连接。

·     在Device A和Device B上分别配置三层动态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。

2. 组网图

图1-11 三层动态聚合配置组网图

3. 配置步骤

(1)     配置Device A

# 创建三层聚合接口1,配置该接口为动态聚合模式,并为其配置IP地址和子网掩码。

<DeviceA> system-view

[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

# 分别将接口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组1中。

[DeviceA] interface hundredgige 3/0/1

[DeviceA-HundredGigE3/0/1] port link-aggregation group 1

[DeviceA-HundredGigE3/0/1] quit

[DeviceA] interface hundredgige 3/0/2

[DeviceA-HundredGigE3/0/2] port link-aggregation group 1

[DeviceA-HundredGigE3/0/2] quit

[DeviceA] interface hundredgige 3/0/3

[DeviceA-HundredGigE3/0/3] port link-aggregation group 1

[DeviceA-HundredGigE3/0/3] quit

(2)     配置Device B

Device B的配置与Device A相似,配置过程略。

4. 验证配置

# 查看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: Route-Aggregation1

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, 000f-e267-6c6a

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  HGE3/0/1(R)         S        32768    11       1                      {ACDEF}

  HGE3/0/2            S        32768    12       1                      {ACDEF}

  HGE3/0/3            S        32768    13       1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  HGE3/0/1            32768    81       1        0x8000, 000f-e267-57ad {ACDEF}

  HGE3/0/2            32768    82       1        0x8000, 000f-e267-57ad {ACDEF}

  HGE3/0/3            32768    83       1        0x8000, 000f-e267-57ad {ACDEF}

以上信息表明,聚合组1为负载分担类型的三层动态聚合组,包含有三个选中端口。

1.18.7  三层聚合负载分担配置举例

1. 组网需求

·     Device A与Device B通过各自的三层以太网接口HundredGigE3/0/1~HundredGigE3/0/4相互连接。

·     在Device A和Device B上分别配置两个三层静态链路聚合组,并为对应的三层聚合接口都配置IP地址和子网掩码。

·     通过在聚合组1上按照源IP地址进行聚合负载分担、在聚合组2上按照目的IP地址进行聚合负载分担的方式,来实现数据流量在各成员端口间的负载分担。

2. 组网图

三层聚合负载分担配置组网图

3. 配置步骤

(1)     配置Device A

# 创建三层聚合接口1,配置该接口对应的聚合组内按照源IP地址进行聚合负载分担,并为其配置IP地址和子网掩码。

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

[DeviceA-Route-Aggregation1] link-aggregation load-sharing mode source-ip

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] quit

# 分别将接口HundredGigE3/0/1和HundredGigE3/0/2加入到聚合组1中。

[DeviceA] interface hundredgige 3/0/1

[DeviceA-HundredGigE3/0/1] port link-aggregation group 1

[DeviceA-HundredGigE3/0/1] quit

[DeviceA] interface hundredgige 3/0/2

[DeviceA-HundredGigE3/0/2] port link-aggregation group 1

[DeviceA-HundredGigE3/0/2] quit

# 创建三层聚合接口2,配置该接口对应的聚合组内按照目的IP地址进行聚合负载分担,并为其配置IP地址和子网掩码。

[DeviceA] interface route-aggregation 2

[DeviceA-Route-Aggregation2] link-aggregation load-sharing mode destination-ip

[DeviceA-Route-Aggregation2] ip address 192.168.2.1 24

[DeviceA-Route-Aggregation2] quit

# 分别将接口HundredGigE3/0/3和HundredGigE3/0/4加入到聚合组2中。

[DeviceA] interface hundredgige 3/0/3

[DeviceA-HundredGigE3/0/3] port link-aggregation group 2

[DeviceA-HundredGigE3/0/3] quit

[DeviceA] interface hundredgige 3/0/4

[DeviceA-HundredGigE3/0/4] port link-aggregation group 2

[DeviceA-HundredGigE3/0/4] quit

(2)     配置Device B

Device B的配置与Device A相似,配置过程略。

4. 验证配置

# 查看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: Route-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority Oper-Key

  HGE3/0/1(R)      S       32768    1

  HGE3/0/2         S       32768    1

 

Aggregate Interface: Route-Aggregation2

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority Oper-Key

  HGE3/0/3(R)      S       32768    2

  HGE3/0/4         S       32768    2

以上信息表明,聚合组1和聚合组2都是负载分担类型的三层静态聚合组,各包含有两个选中端口。

# 查看Device A上所有聚合接口所对应聚合组内采用的聚合负载分担类型。

[DeviceA] display link-aggregation load-sharing mode interface

Route-Aggregation1 Load-Sharing Mode:

  source-ip address

 

Route-Aggregation2 Load-Sharing Mode:

  destination-ip address

以上信息表明,三层聚合组1按照报文的源IP地址进行聚合负载分担,三层聚合组2按照报文的目的IP地址进行聚合负载分担。

1.18.8  S-MLAG配置举例

1. 组网需求

·     Device A通过二层以太网接口HundredGigE3/0/1~HundredGigE3/0/3分别与Device B、Device C、Device D的二层以太网接口HundredGigE3/0/1相互连接。

·     Device B、Device C、Device D为独立运行的设备,由于用户对于业务的可靠性要求很高,要求Device A和Device B、Device C、Device D之间配置链路聚合。为了实现Device B、Device C、Device D之间跨设备聚合,这时用户可以配置S-MLAG功能,保证正常工作时链路进行负载分担且任何一台设备故障对业务均没有影响,提高可靠性。

2. 组网图

图1-12 S-MLAG配置组网图

3. 配置步骤

(1)     配置Device A

# 创建二层聚合接口10,并配置该接口为动态聚合模式。

<DeviceA> system-view

[DeviceA] interface bridge-aggregation 10

[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic

[DeviceA-Bridge-Aggregation10] quit

# 分别将端口HundredGigE3/0/1至HundredGigE3/0/3加入到聚合组10中。

[DeviceA] interface hundredgige 3/0/1

[DeviceA-HundredGigE3/0/1] port link-aggregation group 10

[DeviceA-HundredGigE3/0/1] quit

[DeviceA] interface hundredgige 3/0/2

[DeviceA-HundredGigE3/0/2] port link-aggregation group 10

[DeviceA-HundredGigE3/0/2] quit

[DeviceA] interface hundredgige 3/0/3

[DeviceA-HundredGigE3/0/3] port link-aggregation group 10

[DeviceA-HundredGigE3/0/3] quit

(2)     配置Device B

# 配置LACP的系统地址为0001-0001-0001。

<DeviceB> system-view

[DeviceB] lacp system-mac 1-1-1

# 配置LACP的系统优先级为123。

[DeviceB] lacp system-priority 123

# 配置LACP的系统编号为1。

[DeviceB] lacp system-number 1

# 创建二层聚合接口2,并配置该接口为动态聚合模式。

[DeviceB] interface bridge-aggregation 2

[DeviceB-Bridge-Aggregation2] link-aggregation mode dynamic

# 将二层聚合接口2加入S-MLAG组100。

[DeviceB-Bridge-Aggregation2] port s-mlag group 100

# 将端口HundredGigE3/0/1加入到聚合组2中。

[DeviceB] interface hundredgige 3/0/1

[DeviceB-HundredGigE3/0/1] port link-aggregation group 2

[DeviceB-HundredGigE3/0/1] quit

(3)     配置Device C

# 配置LACP的系统地址为0001-0001-0001。

<DeviceC> system-view

[DeviceC] lacp system-mac 1-1-1

# 配置LACP的系统优先级为123。

[DeviceC] lacp system-priority 123

# 配置LACP的系统编号为2。

[DeviceC] lacp system-number 2

# 创建二层聚合接口3,并配置该接口为动态聚合模式。

[DeviceC] interface bridge-aggregation 3

[DeviceC-Bridge-Aggregation3] link-aggregation mode dynamic

# 将二层聚合接口3加入S-MLAG组100。

[DeviceC-Bridge-Aggregation3] port s-mlag group 100

# 将端口HundredGigE3/0/1加入到聚合组3中。

[DeviceC] interface hundredgige 3/0/1

[DeviceC-HundredGigE3/0/1] port link-aggregation group 3

[DeviceC-HundredGigE3/0/1] quit

(4)     配置Device D

# 配置LACP的系统地址为0001-0001-0001。

<DeviceD> system-view

[DeviceD] lacp system-mac 1-1-1

# 配置LACP的系统优先级为123。

[DeviceD] lacp system-priority 123

# 配置LACP的系统编号为3。

[DeviceD] lacp system-number 3

# 创建二层聚合接口4,并配置该接口为动态聚合模式。

[DeviceD] interface bridge-aggregation 4

[DeviceD-Bridge-Aggregation4] link-aggregation mode dynamic

# 将二层聚合接口4加入S-MLAG组100。

[DeviceD-Bridge-Aggregation4] port s-mlag group 100

# 将端口HundredGigE3/0/1加入到聚合组4中。

[DeviceD] interface hundredgige 3/0/1

[DeviceD-HundredGigE3/0/1] port link-aggregation group 4

[DeviceD-HundredGigE3/0/1] quit

4. 验证配置

# 查看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-Aggregation10

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, 40fa-264f-0100

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  HGE3/0/1(R)         S        32768    1        1                      {ACDEF}

  HGE3/0/2            S        32768    2        1                      {ACDEF}

  HGE3/0/3            S        32768    3        1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  HGE3/0/1            32768    16385    50100    0x7b  , 0001-0001-0001 {ACDEF}

  HGE3/0/2            32768    32769    50100    0x7b  , 0001-0001-0001 {ACDEF}

  HGE3/0/3            32768    49153    50100    0x7b  , 0001-0001-0001 {ACDEF}

以上信息表明,Device A的端口HundredGigE3/0/1~HundredGigE3/0/3均处于选中状态,此时Device A将Device B、Device C、Device D认为是一台设备,从而实现了跨设备的聚合。

暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明