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

smart-link怎配置

  • 0关注
  • 1收藏,1768浏览
粉丝:0人 关注:1人

问题描述:

smart-link怎配置

组网及组网描述:

smart-link怎配置

最佳答案

粉丝:94人 关注:0人

单Smart Link组配置举例

1. 组网需求

·     在图1-2所示的组网中,Device C和Device D为Smart Link设备,Device A、Device B和Device E为相关设备。Device C和Device D上VLAN 1~30的流量分别双上行到Device A。

·     通过配置,在Device C和Device D上分别实现双上行链路的灵活备份。

2. 组网图

图1-2 单Smart Link组配置组网图

3. 配置步骤

(1)     配置Device C

# 创建VLAN 1~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceC> system-view

[DeviceC] vlan 1 to 30

[DeviceC] stp region-configuration

[DeviceC-mst-region] instance 1 vlan 1 to 30

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 分别关闭端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2,在这两个端口上分别关闭生成树协议,并将端口配置为Trunk端口且允许VLAN 1~30通过。

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] shutdown

[DeviceC-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceC-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceC-Twenty-FiveGigE1/0/1] quit

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] shutdown

[DeviceC-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceC-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceC-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceC-Twenty-FiveGigE1/0/2] quit

# 创建Smart Link组1,并配置其保护VLAN为MSTI 1所映射的VLAN。

[DeviceC] smart-link group 1

[DeviceC-smlk-group1] protected-vlan reference-instance 1

# 配置Smart Link组1的主端口为Twenty-FiveGigE1/0/1,从端口为Twenty-FiveGigE1/0/2。

[DeviceC-smlk-group1] port twenty-fivegige 1/0/1 primary

[DeviceC-smlk-group1] port twenty-fivegige 1/0/2 secondary

# 在Smart Link组1中开启发送Flush报文的功能,并指定发送Flush报文的控制VLAN为VLAN 10。

[DeviceC-smlk-group1] flush enable control-vlan 10

[DeviceC-smlk-group1] quit

# 重新开启端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2。

[DeviceC] interface twenty-fivegige 1/0/1

[DeviceC-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/1] quit

[DeviceC] interface twenty-fivegige 1/0/2

[DeviceC-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceC-Twenty-FiveGigE1/0/2] quit

(2)     配置Device D

# 创建VLAN 1~30,将这些VLAN都映射到MSTI 1上,并激活MST域的配置。

<DeviceD> system-view

[DeviceD] vlan 1 to 30

[DeviceD] stp region-configuration

[DeviceD-mst-region] instance 1 vlan 1 to 30

[DeviceD-mst-region] active region-configuration

[DeviceD-mst-region] quit

# 分别关闭端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2,在这两个端口上分别关闭生成树协议,并将端口配置为Trunk端口且允许VLAN 1~30通过。

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] shutdown

[DeviceD-Twenty-FiveGigE1/0/1] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceD-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceD-Twenty-FiveGigE1/0/1] quit

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] shutdown

[DeviceD-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceD-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceD-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceD-Twenty-FiveGigE1/0/2] quit

# 创建Smart Link组1,并配置其保护VLAN为MSTI 1所映射的VLAN。

[DeviceD] smart-link group 1

[DeviceD-smlk-group1] protected-vlan reference-instance 1

# 配置Smart Link组1的主端口为Twenty-FiveGigE1/0/1,从端口为Twenty-FiveGigE1/0/2。

[DeviceD-smlk-group1] port twenty-fivegige 1/0/1 primary

[DeviceD-smlk-group1] port twenty-fivegige 1/0/2 secondary

# 在Smart Link组1中开启发送Flush报文的功能,并指定发送Flush报文的控制VLAN为VLAN 20。

[DeviceD-smlk-group1] flush enable control-vlan 20

[DeviceD-smlk-group1] quit

# 重新开启端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2。

[DeviceD] interface twenty-fivegige 1/0/1

[DeviceD-Twenty-FiveGigE1/0/1] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/1] quit

[DeviceD] interface twenty-fivegige 1/0/2

[DeviceD-Twenty-FiveGigE1/0/2] undo shutdown

[DeviceD-Twenty-FiveGigE1/0/2] quit

(3)     配置Device B

# 创建VLAN 1~30。

<DeviceB> system-view

[DeviceB] vlan 1 to 30

# 将端口Twenty-FiveGigE1/0/1配置为Trunk端口且允许VLAN 1~30通过,在该端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。

[DeviceB] interface twenty-fivegige 1/0/1

[DeviceB-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceB-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceB-Twenty-FiveGigE1/0/1] smart-link flush enable control-vlan 10 20

[DeviceB-Twenty-FiveGigE1/0/1] quit

# 将端口Twenty-FiveGigE1/0/2配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 20。

[DeviceB] interface twenty-fivegige 1/0/2

[DeviceB-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceB-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceB-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/2] smart-link flush enable control-vlan 20

[DeviceB-Twenty-FiveGigE1/0/2] quit

# 将端口Twenty-FiveGigE1/0/3配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10。

[DeviceB] interface twenty-fivegige 1/0/3

[DeviceB-Twenty-FiveGigE1/0/3] port link-type trunk

[DeviceB-Twenty-FiveGigE1/0/3] port trunk permit vlan 1 to 30

[DeviceB-Twenty-FiveGigE1/0/3] undo stp enable

[DeviceB-Twenty-FiveGigE1/0/3] smart-link flush enable control-vlan 10

[DeviceB-Twenty-FiveGigE1/0/3] quit

(4)     配置Device E

# 创建VLAN 1~30。

<DeviceE> system-view

[DeviceE] vlan 1 to 30

# 将端口Twenty-FiveGigE1/0/1配置为Trunk端口且允许VLAN 1~30通过,在该端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。

[DeviceE] interface twenty-fivegige 1/0/1

[DeviceE-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceE-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceE-Twenty-FiveGigE1/0/1] smart-link flush enable control-vlan 10 20

[DeviceE-Twenty-FiveGigE1/0/1] quit

# 将端口Twenty-FiveGigE1/0/2配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10。

[DeviceE] interface twenty-fivegige 1/0/2

[DeviceE-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceE-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceE-Twenty-FiveGigE1/0/2] undo stp enable

[DeviceE-Twenty-FiveGigE1/0/2] smart-link flush enable control-vlan 10

[DeviceE-Twenty-FiveGigE1/0/2] quit

# 将端口Twenty-FiveGigE1/0/3配置为Trunk端口且允许VLAN 1~30通过,在该端口上关闭生成树协议并开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 20。

[DeviceE] interface twenty-fivegige 1/0/3

[DeviceE-Twenty-FiveGigE1/0/3] port link-type trunk

[DeviceE-Twenty-FiveGigE1/0/3] port trunk permit vlan 1 to 30

[DeviceE-Twenty-FiveGigE1/0/3] undo stp enable

[DeviceE-Twenty-FiveGigE1/0/3] smart-link flush enable control-vlan 20

[DeviceE-Twenty-FiveGigE1/0/3] quit

(5)     配置Device A

# 创建VLAN 1~30。

<DeviceA> system-view

[DeviceA] vlan 1 to 30

# 分别将端口Twenty-FiveGigE1/0/1和Twenty-FiveGigE1/0/2配置为Trunk端口且允许VLAN 1~30通过,在这些端口上开启接收Flush报文的功能,并指定接收Flush报文的控制VLAN为VLAN 10和20。

[DeviceA] interface twenty-fivegige 1/0/1

[DeviceA-Twenty-FiveGigE1/0/1] port link-type trunk

[DeviceA-Twenty-FiveGigE1/0/1] port trunk permit vlan 1 to 30

[DeviceA-Twenty-FiveGigE1/0/1] smart-link flush enable control-vlan 10 20

[DeviceA-Twenty-FiveGigE1/0/1] quit

[DeviceA] interface twenty-fivegige 1/0/2

[DeviceA-Twenty-FiveGigE1/0/2] port link-type trunk

[DeviceA-Twenty-FiveGigE1/0/2] port trunk permit vlan 1 to 30

[DeviceA-Twenty-FiveGigE1/0/2] smart-link flush enable control-vlan 10 20

[DeviceA-Twenty-FiveGigE1/0/2] quit

4. 验证配置

通过使用display smart-link group命令可以查看设备上Smart Link组的信息:

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

[DeviceC] display smart-link group 1

Smart link group 1 information:

  Device ID       : 000f-e23d-5af0

  Preemption mode : None

  Preemption delay: 1(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

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

  WGE1/0/1                PRIMARY   ACTIVE  5               16:45:20 2012/04/21

  WGE1/0/2                SECONDARY STANDBY 1               16:37:20 2012/04/21

通过使用display smart-link flush命令可以查看设备上收到的Flush报文信息:

# 显示Device B上收到的Flush报文信息。

[DeviceB] display smart-link flush

 Received flush packets                             : 5

 Receiving interface of the last flush packet       : Twenty-FiveGigE1/0/3

 Receiving time of the last flush packet            : 16:50:21 2012/04/21

 Device ID of the last flush packet                 : 000f-e23d-5af0

 Control VLAN of the last flush packet              : 10

暂无评论

1 个回答
粉丝:124人 关注:6人

您好,请知:

以下是smart-link的配置案例,请参考:


采用双smart-link组,实现两路冗余及流量负载均衡。

配置步骤

1、在SW1创建两个smart-link组

2、需要两个保护VLAN,这里提前规划,VLAN10作为smart-link组1的保护VLAN,VLAN20作为smart-link组2的保护VLAN

配置关键点

配置过程:

 

SW1:

 

[H3C]sysname SW1

[SW1]vl 10

[SW1-vlan10]qu

[SW1]vl 20

[SW1-vlan20]qu

[SW1]vl 30

[SW1-vlan30]qu

[SW1]vl 40

[SW1-vlan40]qu

[SW1]

 

[SW1]stp region-configuration

[SW1-mst-region]region-name ***.***

[SW1-mst-region]instance 0 vlan 10 30

[SW1-mst-region]instance 1 vlan 20 40

[SW1-mst-region]active region-configuration

[SW1-mst-region]quit

 

[SW1]int ran gi 1/0/1 to gi 1/0/2

[SW1-if-range]po li tr

[SW1-if-range]undo po tr pe vlan 1

[SW1-if-range]po tr pe vlan 10 20 30 40

[SW1-if-range]smart-link flush enable control-vlan 10 20

[SW1-if-range]undo stp en

[SW1-if-range]qu

[SW1]smart-link group 1

[SW1-smlk-group1]protected-vlan reference-instance 0

[SW1-smlk-group1]flush enable control-vlan 10

[SW1-smlk-group1]po gi 1/0/1 primary

[SW1-smlk-group1]po gi 1/0/2 secondary

[SW1-smlk-group1]quit

[SW1]

[SW1]smart-link group 2

[SW1-smlk-group2]protected-vlan reference-instance 1

[SW1-smlk-group2]flush enable control-vlan 20

[SW1-smlk-group2]port gi 1/0/2 primary

[SW1-smlk-group2]port GigabitEthernet 1/0/1 secondary

[SW1-smlk-group2]quit

[SW1]

SW2:

 

[H3C]sysname SW2

[SW2]vl 10

[SW2-vlan10]qu

[SW2]vl 20

[SW2-vlan20]qu

[SW2]vl 30

[SW2-vlan30]qu

[SW2]vl 40

[SW2-vlan40]qu

[SW2]int ran gi 1/0/1 to gi 1/0/2

[SW2-if-range]po li tr

[SW2-if-range]undo po tr pe vlan 1

[SW2-if-range]po tr pe vlan 10 20 30 40

[SW2-if-range]smart-link flush enable control-vlan 10 20

[SW2-if-range]quit

[SW2]monitor-link group 1

[SW2-mtlk-group1]port gi 1/0/1 uplink

[SW2-mtlk-group1]port gi 1/0/2 downlink

[SW2-mtlk-group1]quit


[SW3]vlan 10

[SW3-vlan10]qu

[SW3]vl 20

[SW3-vlan20]qu

[SW3]vl 30

[SW3-vlan30]qu

[SW3]vl 40

[SW3-vlan40]qu

[SW3]int ran gi 1/0/1 to gi 1/0/2

[SW3-if-range]po li tr

[SW3-if-range]undo po tr pe vlan 1

[SW3-if-range]po tr pe vlan 10 20 30 40

[SW3-if-range]smart-link flush enable co

[SW3-if-range]smart-link flush enable control-vlan 10 20

[SW3-if-range]quit

[SW3]monitor-link group 1

[SW3-mtlk-group1]port gi 1/0/1 uplink

[SW3-mtlk-group1]port GigabitEthernet 1/0/2 downlink

[SW3-mtlk-group1]quit

[SW3]


SW4(网关所在设备):

[H3C]sysname SW4

[SW4]vlan 10

[SW4-vlan10]qu

[SW4]vlan 20

[SW4-vlan20]quit

[SW4]vlan 30

[SW4-vlan30]quit

[SW4]vlan 40

[SW4-vlan40]quit

[SW4]int ran gi 1/0/1 to gi 1/0/2

[SW4-if-range]po li tr

[SW4-if-range]undo po tr pe vlan 1

[SW4-if-range]po tr pe vlan 10 20 30 40

[SW4-if-range]smart-link flush enable control-vlan 10 20

[SW4-if-range]quit

[SW4]int vlan 30

[SW4-Vlan-interface30]ip address 192.168.30.254 24

[SW4-Vlan-interface30]undo shutdown

[SW4-Vlan-interface30]quit

[SW4]int vlan 40

[SW4-Vlan-interface40]ip address 192.168.40.254 24

[SW4-Vlan-interface40]undo shutdown

[SW4-Vlan-interface40]quit

[SW4]int LoopBack 0

[SW4-LoopBack0]ip address 1.1.1.1 30

[SW4-LoopBack0]undo shutdown

[SW4-LoopBack0]quit

[SW4]

暂无评论

编辑答案

你正在编辑答案

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

分享扩散:

提出建议

    +

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

确定

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

注册后可访问此模块

跳转hclhub

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

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

对根叔社区有害的内容

×

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

不规范转载

×

举报说明