一、  组网需求:

设备Device CVLAN 1200的流量通过设备Device BDevice D双上行到设备Device A。要求进行负载分担,VLAN 1100VLAN 101200的两组流量分别通过不同的链路上行到设备Device A

设备Device C上进行双上行链路灵活备份,Smart Link1的引用实例0(绑定VLAN 1100)的流量从经过Device B的链路通向设备Device A;而Smart Link2的引用实例2(绑定VLAN 101200)的流量从经过Device D链路通向设备Device A

Smart Link1和组2分别在VLAN 10VLAN 101内发送和接收Flush报文。

二、  组网图:

三、  配置步骤:

1. 设备Device C上的配置

# 创建VLAN并配置VLANMSTP实例的映射关系。

system-view

[DeviceC] vlan 1 to 200

[DeviceC] stp region-configuration

[DeviceC-mst-region] instance 0 vlan 1 to 100

[DeviceC-mst-region] instance 2 vlan 101 to 200

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 关闭端口的STP功能,并将端口配置为Trunk端口且允许VLAN 1200通过。

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] undo stp enable

[DeviceC-GigabitEthernet1/0/1] port link-type trunk

[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] undo stp enable

[DeviceC-GigabitEthernet1/0/2] port link-type trunk

[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200

[DeviceC-GigabitEthernet1/0/2] quit

# 创建Smart Link1

[DeviceC] smart-link group 1

# 配置Smart Link1的保护VLAN

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

# 配置端口GigabitEthernet1/0/1为主端口,端口GigabitEthernet1/0/2为副端口。

[DeviceC-smlk-group1] port gigabitethernet1/0/1 master

[DeviceC-smlk-group1] port gigabitethernet1/0/2 slave

# 配置抢占模式为角色抢占。

[DeviceC-smlk-group1] preemption mode role

# 开启发送Flush报文的功能。

[DeviceC-smlk-group-1] flush enable control-vlan 10

[DeviceC-smlk-group-1] quit

# 创建Smart Link2

[DeviceC] smart-link group 2

# 配置Smart Link2的保护VLAN

[DeviceC-smlk-group2] protected-vlan reference-instance 2

# 配置端口GigabitEthernet1/0/1为副端口,端口GigabitEthernet1/0/2为主端口。

[DeviceC-smlk-group2] port gigabitethernet1/0/1 slave

[DeviceC-smlk-group2] port gigabitethernet1/0/2 master

# 配置抢占模式为角色抢占。

[DeviceC-smlk-group2] preemption mode role

# 开启发送Flush报文的功能。

[DeviceC-smlk-group2] flush enable control-vlan 101

2. 设备Device B上的配置

# 开启接收Flush报文的功能。

system-view

[DeviceB] vlan 1 to 200

[DeviceB] interface gigabitethernet 1/0/1思科学习视频资料下载中心

[DeviceB-GigabitEthernet1/0/1] port link-type trunk

[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200

[DeviceB-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 101

[DeviceB-GigabitEthernet1/0/1] quitBT4

[DeviceB] interface gigabitethernet 1/0/2

[DeviceB-GigabitEthernet1/0/2] port link-type trunk

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200

[DeviceB-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 101

3. 设备Device D上的配置

# 开启接收Flush报文的功能。

system-view

[DeviceD] vlan 1 to 200思科路由器配置

[DeviceD] interface gigabitethernet 1/0/1

[DeviceD-GigabitEthernet1/0/1] port link-type trunk

[DeviceD-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200

[DeviceD-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 101

[DeviceD-GigabitEthernet1/0/1] quitBT无线网络破解教程

[DeviceD] interface gigabitethernet 1/0/2

[DeviceD-GigabitEthernet1/0/2] port link-type trunk

[DeviceD-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200

[DeviceD-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 101

4. 设备Device A上的配置

# 开启接收Flush报文的功能。

system-view

[DeviceA] vlan 1 to 200思科路由器

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] port link-type trunk

[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200

[DeviceA-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 101

[DeviceA-GigabitEthernet1/0/1] quit思科路由器交换机模拟软件

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] port link-type trunk

[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200

[DeviceA-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 101

配置完毕后,用户可以使用display命令查看Smart Link的配置和报文统计情况。

linux 系统 思科论坛 Cisco
张sir CCIE R&S v4.0 课程视频总集 Linux论坛
Cisco N7K 的硬件架构 Cisco R&S N4 版本解密视频分享 CCIE Security 2009 IOS防火墙合集
http://bbs.net527.cn/forum-26-1.html
http://www.net527.cn/a/luyoujiaohuan/index.html
http://www.net527.com

09-14 03:58