• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

09-可靠性配置指导

目录

04-接口组联动配置

本章节下载 04-接口组联动配置  (230.99 KB)

docurl=/cn/Service/Document_Software/Document_Center/IP_Security/YCLLQX/AFC2000-G/Configure/Operation_Manual/H3C_AFC2000-G_CG(V7)(E9201)-5W400/09/201909/1223734_30005_0.htm

04-接口组联动配置


1 接口组联动

1.1  接口组联动简介

接口组联动功能通过将设备上不同的接口加入到同一个联动组中,实现同一个联动组内接口状态之间相互关联,使得这些成员接口都具备或不具备报文传输能力。

1.1.1  接口组联动典型应用

接口组联动功能通常用于实现上行接口和下行接口的联动。如图1-1所示,Device C通过Device B访问Core network。当Interface B1变为DOWN时,由于Interface B2依然为UP状态,会导致流量切换到Device D的过程缓慢,影响Device C对Core network的访问。将Interface B1和Interface B2加入同一个联动组后,当Interface B1变为DOWN时,接口组联动功能会将Interface B2关闭,流量能快速切换到Device D。同理,当Interface B2变为DOWN时,接口组联动功能会将Interface B1关闭,从而保证上行和下行两边的链路都能快速切换。

图1-1 接口组联动典型组网图

 

1.1.2  接口组联动工作原理

·            当联动组内任一成员接口的状态变为DOWN时,联动组内的状态为UP的其它成员接口会被置为Collaboration-down状态,联动组的状态为DOWN,组内所有成员接口均不能传输报文。

·            当联动组内任一成员接口的状态由DOWN或Collaboration-down变为UP时,设备尝试将联动组内其它成员接口置为UP状态。

¡  如果在10秒内,其它成员接口的状态均变为UP,则联动组状态为UP,联动组内的所有成员接口都可以传输报文;

¡  如果在10秒后,仍有成员接口的状态未变为UP,则该成员接口置为DOWN状态,并将其它状态变为UP的成员接口都置为Collaboration-down状态,此时联动组的状态为DOWN,联动组内的所有成员接口都不能够传输报文。

1.2  接口组联动配置任务简介

接口组联动配置任务如下:

(1)       创建联动组

(2)       添加成员接口

(3)       (可选)配置成员接口UP延时

(4)       (可选)清除失效成员接口

1.3  接口组联动配置准备

配置接口组联动功能前,必须先全局开启Monitor Link协议。关于全局开启Monitor Link协议的详细介绍,请参见“可靠性配置指导”中的“Monitor Link”。

1.4  创建联动组

(1)       进入系统视图。

system-view

(2)       创建联动组,并进入联动组视图。

collaboration-group group-id

1.5  添加成员接口

1.5.1  配置限制和指导

一个接口只能属于一个联动组。

请勿将联动组的成员接口加入冗余组。

请勿将一个动态聚合组的选中端口和非选中端口同时配置为同一个联动组的成员接口。

链路两端的接口,只有一端接口可以加入联动组。

可在联动组视图或接口视图下添加联动组的成员接口,各视图下的添加效果相同。

1.5.2  在联动组视图下添加成员接口

(1)       进入系统视图。

system-view

(2)       进入联动组视图。

collaboration-group group-id

(3)       添加成员接口。

port interface-type interface-number

缺省情况下,联动组中不存在成员接口。

1.5.3  在接口视图下添加成员接口

(1)       进入系统视图。

system-view

(2)       进入接口视图。

interface interface-type interface-number

(3)       将接口加入指定的联动组。

port collaboration-group group-id

缺省情况下,接口不属于任何联动组。

1.6  配置成员接口UP延时

1. 功能简介

当设备重启后,如果联动组状态变为UP,但业务模块的功能尚未恢复正常,可能会造成流量丢失。

使用本功能可避免以上情况的产生,在设备重启后,即便所有成员接口准备就绪,成员接口也会延迟指定时间变为UP状态,传输报文。

2. 配置步骤

(1)       进入系统视图。

system-view

(2)       进入联动组视图。

collaboration-group group-id

(3)       配置成员接口UP延时。

up-delay delay

缺省情况下,成员接口UP延时为0秒,即设备完成重启后,联动组的所有成员接口立即恢复为UP状态。

1.7  清除失效成员接口

1. 功能简介

当联动组内某个成员接口所在的单板被拔出或者更换了槽位时,此成员接口变为失效的成员接口。执行本配置可以清除所有联动组中失效的成员接口,避免因为联动组内一个接口失效而造成该联动组的状态变为DOWN。

执行本配置后,成员接口所在单板被重新插入或换回原槽位,此成员接口将不能自动加入原联动组。如果需要加入原联动组,请手工加入。

2. 配置步骤

(1)       进入系统视图。

system-view

(2)       清除所有联动组中失效的成员接口。

collaboration-group clean

1.8  接口组联动显示和维护

在完成上述配置后,在任意视图下执行display命令可以显示配置后接口组联动的运行情况,通过查看显示信息验证配置的效果。

表1-1 接口组联动显示和维护

操作

命令

显示联动组的信息

display collaboration-group { group-id | all } [ verbose ]

 

1.9  接口组联动典型配置举例

1.9.1  接口组联动配置举例(三层接口应用)

1. 组网需求

图1-2所示,通过在Device B上配置接口组联动功能,使得Device B的接口GigabitEthernet1/0/1变为DOWN时,Device B的接口GigabitEthernet1/0/2也无法传输报文,从而加快转发表更新和流量切换速度。同理,Device B的接口GigabitEthernet1/0/2变为DOWN时,Device B的接口GigabitEthernet1/0/1也无法传输报文。

2. 组网图

图1-2 接口组联动配置组网图

3. 配置步骤

(1)       配置路由,优先使用Device B转发Device A和Device D之间的流量,以配置静态路由为例

# 配置各接口的IP地址(略)。

# 在Device A上配置四条静态路由。

<DeviceA> system-view

[DeviceA] ip route-static 1.1.5.0 255.255.255.0 1.1.2.2

[DeviceA] ip route-static 1.1.7.0 255.255.255.0 1.1.2.2 preference 50

[DeviceA] ip route-static 1.1.6.0 255.255.255.0 1.1.3.2

[DeviceA] ip route-static 1.1.7.0 255.255.255.0 1.1.3.2 preference 70

# 在Device B上配置两条静态路由。

<DeviceB> system-view

[DeviceB] ip route-static 1.1.4.0 255.255.255.0 1.1.2.1

[DeviceB] ip route-static 1.1.7.0 255.255.255.0 1.1.5.2

# 在Device C上配置四条静态路由。

<DeviceC> system-view

[DeviceC] ip route-static 1.1.2.0 255.255.255.0 1.1.5.1

[DeviceC] ip route-static 1.1.4.0 255.255.255.0 1.1.5.1 preference 50

[DeviceC] ip route-static 1.1.3.0 255.255.255.0 1.1.6.2

[DeviceC] ip route-static 1.1.4.0 255.255.255.0 1.1.6.2 preference 70

# 在Device D上配置两条静态路由。

<DeviceD> system-view

[DeviceD] ip route-static 1.1.4.0 255.255.255.0 1.1.3.1

[DeviceD] ip route-static 1.1.7.0 255.255.255.0 1.1.6.1

(2)       配置接口组联动

# 在Device B上全局开启Monitor Link协议(缺省开启)。

<DeviceB> system-view

[DeviceB] undo monitor-link disable

# 创建联动组1。

[DeviceB] collaboration-group 1

# 将接口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入联动组1。

[DeviceB-collaboration-group1] port gigabitethernet 1/0/1

[DeviceB-collaboration-group1] port gigabitethernet 1/0/2

4. 验证配置

(1)       验证接口组联动的上行接口对下行接口的影响

# 查看Device C的静态路由信息。

[DeviceC] display ip routing-table protocol static

 

Summary count : 3

 

Static Routing table status : <Active>

Summary count : 3

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

1.1.2.0/24         Static  60  0           1.1.5.1         GE1/0/1

1.1.3.0/24         Static  60  0           1.1.6.2         GE1/0/2

1.1.4.0/24         Static  50  0           1.1.5.1         GE1/0/1

 

Static Routing table status : <Inactive>

Summary count : 0

可以看到,Device C到Device A间生效的路由为Device C->Device B->Device A。

# 在Device B的接口GigabitEthernet1/0/1上执行shutdown命令,查看联动组1及其接口的状态。

[DeviceB] display collaboration-group 1 verbose

Collaboration group protocol status: Enabled

Collaboration group 1 information:

  Group status     : DOWN

  Member up delay  : 0 seconds

  Last up time     : 16:55:34 2017/04/05

  Last down time   : 16:57:22 2017/04/05

  Member                    Status

  GE1/0/1                   DOWN

  GE1/0/2                   Collaboration-down

可以看到,联动组1为DOWN状态;接口GigabitEthernet1/0/1为DOWN状态;接口GigabitEthernet1/0/2为Collaboration-down状态。

# 再查看Device C的静态路由信息。

[DeviceC] display ip routing-table protocol static

 

Summary count : 2

 

Static Routing table status : <Active>

Summary count : 2

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

1.1.3.0/24         Static  60  0           1.1.6.2         GE1/0/2

1.1.4.0/24         Static  70  0           1.1.6.2         GE1/0/2

 

Static Routing table status : <Inactive>

Summary count : 0

可以看到,Device C到Device A间生效的路由为Device C->Device D->Device A。

(2)       验证接口组联动的下行接口对上行接口的影响

# 查看Device A的静态路由信息。

[DeviceA] display ip routing-table protocol static

 

Summary count : 3

 

Static Routing table status : <Active>

Summary count : 3

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

1.1.5.0/24         Static  60  0           1.1.2.2         GE1/0/1

1.1.6.0/24         Static  60  0           1.1.3.2         GE1/0/2

1.1.7.0/24         Static  50  0           1.1.2.2         GE1/0/1

 

Static Routing table status : <Inactive>

Summary count : 0

可以看到,Device A到Device C间生效的路由为Device A->Device B->Device C。

# 在Device B的接口GigabitEthernet1/0/2上执行shutdown命令,查看联动组1及其接口的状态。

[DeviceB] display collaboration-group 1 verbose

Collaboration group protocol status: Enabled

Collaboration group 1 information:

  Group status     : DOWN

  Member up delay  : 0 seconds

  Last up time     : 17:11:47 2017/04/05

  Last down time   : 17:14:37 2017/04/05

  Member                    Status

  GE1/0/1                   Collaboration-down

  GE1/0/2                   DOWN

可以看到,联动组1为DOWN状态;接口GigabitEthernet1/0/1为Collaboration-down状态;接口GigabitEthernet1/0/2为DOWN状态。

# 再查看Device A的静态路由信息。

[DeviceA] display ip routing-table protocol static

 

Summary count : 2

 

Static Routing table status : <Active>

Summary count : 2

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

1.1.6.0/24         Static  60  0           1.1.3.2         GE1/0/2

1.1.7.0/24         Static  70  0           1.1.3.2         GE1/0/2

 

Static Routing table status : <Inactive>

Summary count : 0

可以看到,Device A到Device C间生效的路由为Device A->Device D->Device C。

1.9.2  接口组联动配置举例(二层接口应用)

1. 组网需求

图1-3所示,Device C为Smart Link设备,Device A不支持接收Flush报文功能。通过在Device B上配置接口组联动功能,使得Device B的接口GigabitEthernet1/0/1变为DOWN时,Device B的接口GigabitEthernet1/0/2也无法传输报文,从而加快Smart Link链路切换。同理,Device B的接口GigabitEthernet1/0/2变为DOWN时,Device B的接口GigabitEthernet1/0/1也无法传输报文,从而使得Device A停止从接口GigabitEthernet1/0/1发送数据报文,避免数据丢失。

2. 组网图

图1-3 接口组联动配置组网图

3. 配置步骤

(1)       配置Smart Link功能

请按照图1-3在Device C上配置Smart Link组,将Device C的接口GigabitEthernet1/0/1配置为主端口,将Device C的接口GigabitEthernet1/0/2配置为从端口,具体配置过程略。关于Smart Link功能的具体配置,请参考“可靠性配置指导”中的“Smart Link”。

(2)       配置Device B

# 在Device B上全局开启Monitor Link协议(缺省开启)。

<DeviceB> system-view

[DeviceB] undo monitor-link disable

# 创建联动组1。

[DeviceB] collaboration-group 1

# 将接口GigabitEthernet1/0/1和GigabitEthernet1/0/2加入联动组1。

[DeviceB-collaboration-group1] port gigabitethernet 1/0/1

[DeviceB-collaboration-group1] port gigabitethernet 1/0/2

4. 验证配置

(1)       验证接口组联动的上行接口对下行接口的影响

# 显示Device C上Smart Link组的信息。

[DeviceC] display smart-link group 1

Smart link group 1 information:

  Device ID       : 2007-6f03-0700

  Preemption mode : None

  Preemption delay: 1(s)

  Control VLAN    : 1

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  GE1/0/1                 PRIMARY   ACTIVE  2               20:19:28 2017/04/05

  GE1/0/2                 SECONDARY STANDBY 0               NA

可以看到,Smart Link组1的主端口是接口GigabitEthernet1/0/1,流量从Device C的接口GigabitEthernet1/0/1转发。

# 在Device B的接口GigabitEthernet1/0/1上执行shutdown命令,查看联动组1及其接口的状态。

[DeviceB] display collaboration-group 1 verbose

Collaboration group protocol status: Enabled

Collaboration group 1 information:

  Group status     : DOWN

  Member up delay  : 0 seconds

  Last up time     : 20:19:58 2017/04/05

  Last down time   : 20:27:02 2017/04/05

  Member                    Status

  GE1/0/1                   DOWN

  GE1/0/2                   Collaboration-down

可以看到,联动组1为DOWN状态;接口GigabitEthernet1/0/1为DOWN状态;接口GigabitEthernet1/0/2为Collaboration-down状态。

# 再查看Device C上Smart Link组的信息。

Smart link group 1 information:

  Device ID       : 2007-6f03-0700

  Preemption mode : None

  Preemption delay: 1(s)

  Control VLAN    : 1

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  GE1/0/1                 PRIMARY   DOWN    2               20:19:28 2017/04/05

  GE1/0/2                 SECONDARY ACTIVE  1               20:26:35 2017/04/05

可以看到,Smart Link组1的主端口由接口GigabitEthernet1/0/1切换为接口GigabitEthernet1/0/2,流量从Device C的接口GigabitEthernet1/0/2转发。

(2)       验证接口组联动的下行接口对上行接口的影响

# 显示Device A的接口GigabitEthernet1/0/1状态。

[DeviceA] display interface gigabitethernet 1/0/1 brief

Brief information on interfaces in bridge mode:

Link: ADM - administratively down; Stby - standby

Speed: (a) - auto

Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface            Link Speed     Duplex Type PVID Description

GE1/0/1              UP   1G(a)     F(a)   A    1

可以看到,Device A的接口GigabitEthernet1/0/1为UP状态。

# 在Device B的接口GigabitEthernet1/0/2上执行shutdown命令,查看联动组1及其接口的状态。

[DeviceB] display collaboration-group 1 verbose

Collaboration group protocol status: Enabled

Collaboration group 1 information:

  Group status     : DOWN

  Member up delay  : 0 seconds

  Last up time     : 20:19:58 2017/04/05

  Last down time   : 20:27:02 2017/04/05

  Member                    Status

  GE1/0/1                   Collaboration-down

  GE1/0/2                   DOWN

可以看到,联动组1为DOWN状态;接口GigabitEthernet1/0/1为Collaboration-down状态;接口GigabitEthernet1/0/2为DOWN状态。

# 再查看Device A的接口GigabitEthernet1/0/1状态。

[DeviceA] display interface gigabitethernet 1/0/1 brief

Brief information on interfaces in bridge mode:

Link: ADM - administratively down; Stby - standby

Speed: (a) - auto

Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface            Link Speed     Duplex Type PVID Description

GE1/0/1              DOWN auto      A      A    1

可以看到,Device A的接口GigabitEthernet1/0/1为DOWN状态。

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们