03-H3C S12500 Smart Link & Monitor Link典型配置举例
本章节下载: 03-H3C S12500 Smart Link & Monitor Link典型配置举例 (165.39 KB)
H3C S12500 Smart Link & Monitor Link配置举例
Copyright © 2013 杭州华三通信技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。 |
目 录
本文档介绍了Smart Link和Monitor Link联动的配置举例。
Monitor Link常用于与Smart Link的联动,配置在Smart Link的上游设备,可以确保上游设备的上行链路故障时,能够触发Smart Link进行链路切换。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文假设您已了解Smart Link和Monitor Link特性。
如图1所示,某企业财务部和市场部分别使用VLAN 10和VLAN 11,出于可靠性考虑,接入设备Device A提供两条链路双上行到汇聚设备Device D。现要求如下:
· 通过配置Smart Link来实现链路备份和负载分担。当DeviceA到DeviceB、DeviceC的两条上行链路都正常时,财务部和市场部的数据流量分别通过不同路径转发;当其中一条链路出现故障时,Smart Link功能会将故障链路的流量快速切换到另一条链路上;当链路故障恢复时,Smart Link功能又会将数据流量及时切换回原来的转发路径。
· 通过配置Smart Link和Monitor Link联动,确保DeviceB、DeviceC到DeviceD的链路出现故障时能够触发Smart Link进行链路切换,从而最大可能地避免财务部、市场部的正常通信中断。
图1 Smart Link & Monitor Link特性典型配置组网图
设备 |
接口 |
VLAN |
设备 |
接口 |
VLAN |
Device A |
GE9/0/1 |
10、11 |
Device C |
GE9/0/1 |
10、11 |
|
GE9/0/2 |
10、11 |
|
GE9/0/2 |
10、11 |
|
GE9/0/3 |
10 |
Device D |
GE9/0/1 |
10、11 |
|
GE9/0/4 |
11 |
|
GE9/0/2 |
10、11 |
Device B |
GE9/0/1 |
10、11 |
|
GE9/0/3 |
10、11 |
|
GE9/0/2 |
10、11 |
|
|
|
为了实现流量在两条上行链路上的负载分担,需在Device A创建两个Smart Link组,不同Smart Link组包含相同的成员端口,但同一端口在不同Smart Link组内角色不同,且财务部和市场部使用的VLAN分别为这两个Smart Link组的保护VLAN。
为了实现链路故障恢复时,财务部和市场部的数据流量仍能切换回各自原来的路径转发,需要为两个Smart Link组都配置角色抢占模式。
为了避免当Smart Link组中的主从链路切换时,由于上游设备上的MAC地址转发表项和ARP/ND表项没有及时更新,而导致下行数据流量发生中断,需要在Device A上配置发送Flush报文功能,处于从Device A到Device D主、从链路上的端口都需要使能接收Flush报文功能。
本举例是在S12500-CMW520-R1825P01版本上进行配置和验证的。
· 指定实例之前请先配置MSTP实例。
· Smart Link端口允许通过的VLAN都应该被Smart Link组保护。
· 在配置Smart Link组的成员端口之前,请确认端口未启用STP或者RRPP功能、端口不是聚合成员端口。
· 不能在聚合成员端口上使能接收Flush报文的功能。
· 用户需要保证控制VLAN存在,且使能接收Flush报文功能的端口允许控制VLAN的报文通过。
# 配置端口:端口GE9/0/1、GE9/0/2端口为Trunk口,允许VLAN 10、VLAN 11流量通过,并去使能STP;GE9/0/3、GE9/0/4为Access口,分别允许VLAN 10和VLAN 11流量通过。
<DeviceA> system-view
[DeviceA] vlan 10 to 11
Please wait... Done.
[DeviceA] interface GigabitEthernet 9/0/1
[DeviceA-GigabitEthernet9/0/1] port link-type trunk
[DeviceA-GigabitEthernet9/0/1] port trunk permit vlan 10 11
[DeviceA-GigabitEthernet9/0/1] undo port trunk permit vlan 1
[DeviceA-GigabitEthernet9/0/1] undo stp enable
[DeviceA-GigabitEthernet9/0/1] undo shutdown
[DeviceA-GigabitEthernet9/0/1] quit
[DeviceA] interface GigabitEthernet 9/0/2
[DeviceA-GigabitEthernet9/0/2] port link-type trunk
[DeviceA-GigabitEthernet9/0/2] port trunk permit vlan 10 11
[DeviceA-GigabitEthernet9/0/2] undo port trunk permit vlan 1
[DeviceA-GigabitEthernet9/0/2] undo stp enable
[DeviceA-GigabitEthernet9/0/2] undo shutdown
[DeviceA-GigabitEthernet9/0/2] quit
[DeviceA] interface GigabitEthernet 9/0/3
[DeviceA-GigabitEthernet9/0/3] port access vlan 10
[DeviceA-GigabitEthernet9/0/3] undo shutdown
[DeviceA-GigabitEthernet9/0/3] quit
[DeviceA] interface GigabitEthernet 9/0/4
[DeviceA-GigabitEthernet9/0/4] port access vlan 11
[DeviceA-GigabitEthernet9/0/4] undo shutdown
[DeviceA-GigabitEthernet9/0/4] quit
# 配置实例1绑定VLAN 10,实例2绑定VLAN 11。
[DeviceA] stp region-configuration
[DeviceA-mst-region] instance 1 vlan 10
[DeviceA-mst-region] instance 2 vlan 11
[DeviceA-mst-region] active region-configuration
[DeviceA-mst-region] quit
# 创建Smart Link组1,并配置保护引用实例1所绑定的VLAN 10。
[DeviceA] smart-link group 1
[DeviceA-smlk-group1] protected-vlan reference-instance 1
# 配置端口GE9/0/1为主端口,GE9/0/2为从端口。
[DeviceA-smlk-group1] port GigabitEthernet 9/0/1 master
[DeviceA-smlk-group1] port GigabitEthernet 9/0/2 slave
# 使能发送Flush报文。
[DeviceA-smlk-group1] flush enable control-vlan 10
# 配置抢占模式,使用默认的延时抢占时间。
[DeviceA-smlk-group1] preemption mode role
[DeviceA-smlk-group1] quit
# 创建Smart Link组2,并配置保护引用实例2所绑定的VLAN 11。
[DeviceA] smart-link group 2
[DeviceA-smlk-group2] protected-vlan reference-instance 2
# 配置端口GE9/0/2为主端口,GE9/0/1为从端口。
[DeviceA-smlk-group2] port GigabitEthernet 9/0/2 master
[DeviceA-smlk-group2] port GigabitEthernet 9/0/1 slave
# 使能发送Flush报文。
[DeviceA-smlk-group2] flush enable control-vlan 11
# 配置抢占模式,使用默认的延时抢占时间。
[DeviceA-smlk-group2] preemption mode role
[DeviceA-smlk-group2] quit
# 配置端口:端口GE9/0/1、GE9/0/2为Trunk口,允许VLAN 10、VLAN 11流量通过,并使能Flush报文接收。
<DeviceB> system-view
[DeviceB] vlan 10 to 11
Please wait... Done.
[DeviceB] interface GigabitEthernet 9/0/1
[DeviceB-GigabitEthernet9/0/1] port link-type trunk
[DeviceB-GigabitEthernet9/0/1] port trunk permit vlan 10 11
[DeviceB-GigabitEthernet9/0/1] undo port trunk permit vlan 1
[DeviceB-GigabitEthernet9/0/1] smart-link flush enable control-vlan 10 11
[DeviceB-GigabitEthernet9/0/1] undo shutdown
[DeviceB-GigabitEthernet9/0/1] quit
[DeviceB] interface GigabitEthernet 9/0/2
[DeviceB-GigabitEthernet9/0/2] port link-type trunk
[DeviceB-GigabitEthernet9/0/2] port trunk permit vlan 10 11
[DeviceB-GigabitEthernet9/0/2] undo port trunk permit vlan 1
[DeviceB-GigabitEthernet9/0/2] smart-link flush enable control-vlan 10 11
[DeviceB-GigabitEthernet9/0/2] undo shutdown
[DeviceB-GigabitEthernet9/0/2] quit
# 创建Monitor Link组。
[DeviceB] monitor-link group 1
# GE9/0/2配置为上行接口,GE9/0/1配置为下行接口。
[DeviceB-mtlk-group1] port GigabitEthernet 9/0/2 uplink
[DeviceB-mtlk-group1] port GigabitEthernet 9/0/1 downlink
# 配置端口:端口GE9/0/1、GE9/0/2为Trunk口,允许VLAN 10、VLAN 11流量通过,并使能Flush报文接收。
<DeviceC> system-view
[DeviceC] vlan 10 to 11
Please wait... Done.
[DeviceC] interface GigabitEthernet 9/0/1
[DeviceC-GigabitEthernet9/0/1] port link-type trunk
[DeviceC-GigabitEthernet9/0/1] port trunk permit vlan 10 11
[DeviceC-GigabitEthernet9/0/1] undo port trunk permit vlan 1
[DeviceC-GigabitEthernet9/0/1] smart-link flush enable control-vlan 10 11
[DeviceC-GigabitEthernet9/0/1] undo shutdown
[DeviceC-GigabitEthernet9/0/1] quit
[DeviceC] interface GigabitEthernet 9/0/2
[DeviceC-GigabitEthernet9/0/2] port link-type trunk
[DeviceC-GigabitEthernet9/0/2] port trunk permit vlan 10 11
[DeviceC-GigabitEthernet9/0/2] undo port trunk permit vlan 1
[DeviceC-GigabitEthernet9/0/2] smart-link flush enable control-vlan 10 11
[DeviceC-GigabitEthernet9/0/2] undo shutdown
[DeviceC-GigabitEthernet9/0/2] quit
# 创建Monitor Link组。
[DeviceC] monitor-link group 1
# GE9/0/2配置为上行接口,GE9/0/1配置为下行接口。
[DeviceC-mtlk-group1] port GigabitEthernet 9/0/2 uplink
[DeviceC-mtlk-group1] port GigabitEthernet 9/0/1 downlink
# 配置端口GE9/0/1、GE9/0/2、GE9/0/3为Trunk口,允许VLAN 10、VLAN 11的流量通过;GE9/0/1、GE9/0/2使能Flush报文接收。
<DeviceD> system-view
[DeviceD] vlan 10 to 11
Please wait... Done.
[DeviceD] interface GigabitEthernet 9/0/1
[DeviceD-GigabitEthernet9/0/1] port link-type trunk
[DeviceD-GigabitEthernet9/0/1] port trunk permit vlan 10 11
[DeviceD-GigabitEthernet9/0/1] undo port trunk permit vlan 1
[DeviceD-GigabitEthernet9/0/1] smart-link flush enable control-vlan 10 11
[DeviceD-GigabitEthernet9/0/1] undo shutdown
[DeviceD-GigabitEthernet9/0/1] quit
[DeviceD] interface GigabitEthernet 9/0/2
[DeviceD-GigabitEthernet9/0/2] port link-type trunk
[DeviceD-GigabitEthernet9/0/2] port trunk permit vlan 10 11
[DeviceD-GigabitEthernet9/0/2] undo port trunk permit vlan 1
[DeviceD-GigabitEthernet9/0/2] smart-link flush enable control-vlan 10 11
[DeviceD-GigabitEthernet9/0/2] undo shutdown
[DeviceD-GigabitEthernet9/0/2] quit
[DeviceD] interface GigabitEthernet 9/0/3
[DeviceD-GigabitEthernet9/0/3] port link-type trunk
[DeviceD-GigabitEthernet9/0/3] port trunk permit vlan 10 11
[DeviceD-GigabitEthernet9/0/3] undo port trunk permit vlan 1
[DeviceD-GigabitEthernet9/0/3] undo shutdown
[DeviceD-GigabitEthernet9/0/3] quit
(1) 查看Smart Link和Monitor Link的配置
# 查看Device A上的Smart Link配置。
[DeviceA] display smart-link group all
Smart link group 1 information:
Device ID: 0020-6455-0000
Preemption mode: ROLE
Preemption delay: 1(s)
Control VLAN: 10
Protected VLAN: Reference Instance 1
Member Role State Flush-count Last-flush-time
-----------------------------------------------------------------------------
GigabitEthernet9/0/1 MASTER ACTIVE 0 NA
GigabitEthernet9/0/2 SLAVE STANDBY 0 NA
Smart link group 2 information:
Device ID: 0020-6455-0000
Preemption mode: ROLE
Preemption delay: 1(s)
Control VLAN: 11
Protected VLAN: Reference Instance 2
Member Role State Flush-count Last-flush-time
-----------------------------------------------------------------------------
GigabitEthernet9/0/2 MASTER ACTIVE 0 NA
GigabitEthernet9/0/1 SLAVE STANDBY 0 NA
# 查看Device B上的Monitor Link配置。
[DeviceB] display monitor-link group all
Monitor link group 1 information:
Group status: UP
Last-up-time: 16:49:24 2009/01/16
Last-down-time: -
Member Role Status
------------------------------------------
GigabitEthernet9/0/2 UPLINK UP
GigabitEthernet9/0/1 DOWNLINK UP
# 查看Device C上的Monitor Link配置。
[DeviceC] display monitor-link group all
Monitor link group 1 information:
Group status: UP
Last-up-time: 16:53:13 2009/01/16
Last-down-time: -
Member Role Status
------------------------------------------
GigabitEthernet9/0/2 UPLINK UP
GigabitEthernet9/0/1 DOWNLINK UP
(2) 流量验证
配置完成后,Device A的GE9/0/3和GE9/0/4分别收到VLAN 10和VLAN 11的流量,VLAN 10的流量走Device A->Device B->Device D路径,VLAN 11的流量走Device A->Device C->Device D路径。
· 设备A:
#
vlan 1
#
vlan 10 to 11
#
stp region-configuration
instance 1 vlan 10
instance 2 vlan 11
active region-configuration
#
smart-link group 1
preemption mode role
protected-vlan reference-instance 1
flush enable control-vlan 10
smart-link group 2
preemption mode role
protected-vlan reference-instance 2
flush enable control-vlan 11
#
interface GigabitEthernet9/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
stp disable
port smart-link group 1 master
port smart-link group 2 slave
#
interface GigabitEthernet9/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
stp disable
port smart-link group 1 slave
port smart-link group 2 master
#
· 设备B:
#
vlan 1
#
vlan 10 to 11
#
monitor-link group 1
#
interface GigabitEthernet9/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
smart-link flush enable control-vlan 10 to 11
port monitor-link group 1 downlink
#
interface GigabitEthernet9/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
smart-link flush enable control-vlan 10 to 11
port monitor-link group 1 uplink
#
· 设备C:
#
vlan 1
#
vlan 10 to 11
#
monitor-link group 1
#
interface GigabitEthernet9/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
smart-link flush enable control-vlan 10 to 11
port monitor-link group 1 downlink
#
interface GigabitEthernet9/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
smart-link flush enable control-vlan 10 to 11
port monitor-link group 1 uplink
#
· 设备D:
#
vlan 1
#
vlan 10 to 11
#
interface GigabitEthernet9/0/1
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
smart-link flush enable control-vlan 10 to 11
#
interface GigabitEthernet9/0/2
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
smart-link flush enable control-vlan 10 to 11
#
interface GigabitEthernet9/0/3
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 to 11
#
· 《H3C S12500系列路由交换机 可靠性配置指导》中的“Smart Link”
· 《H3C S12500系列路由交换机 可靠性命令参考》中的“Smart Link”
· 《H3C S12500系列路由交换机 可靠性配置指导》中的“Monitor Link”
· 《H3C S12500系列路由交换机 可靠性命令参考》中的“Monitor Link”
· 《H3C S12500系列路由交换机 二层技术-以太网交换配置指导》中的“生成树”
· 《H3C S12500系列路由交换机 二层技术-以太网交换命令参考》中的“生成树”
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!