-
-SmartLink技术,创建Smart Link 组。在该组中,加入两个端口。其中1个端口是主端口,也称之为Master端口。另外1个端口是备份端口:也称之为 Slave 端口。
-
-Monitor Link 组也称之为“监控链路组,由上行端口和下行端口共同组成。下行端口的状态,随着上行端口的状态的变化而变化。
实验拓扑图如上!
需求:PC2与PC1通讯,SW2为主路线,SW3为备路线!
配置思路:实验环境为二层网络,PC1和PC2为同Vlan同网段。在SW1上面配置Smart Link,在SW2和SW3上面配置Monitor Link。
- -基础配置:
SW1:
sysname SW1
vlan 10
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp disable
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp disable
interface GigabitEthernet0/0/3
port link-type access
port default vlan 10
SW2:
sysname SW2
vlan 10
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
SW3:
sysname SW3
vlan 10
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
SW4:
sysname SW1
vlan 10
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
port link-type access
port default vlan 10
- -Smart Link配置:
SW1:
smart-link group 1 --------------------------------------------创建Smart Link组
port GigabitEthernet0/0/1 master ----------------------将1口设为主接口
port GigabitEthernet0/0/2 slave ------------------------将2口设为备接口
smart-link enable ------------------------------------------开启Smart Link
restore enable ---------------------------------------------开启抢占
timer wtr 30 -------------------------------------------------抢占时间为30秒
- -Monitor Link配置:
SW2:
monitor-link group 1 -----------------------------------------创建Monitor Link组
port GigabitEthernet0/0/2 uplink ------------------------将2口设为上行口
port GigabitEthernet0/0/1 downlink --------------------将1口设为下行口
SW3:
monitor-link group 1
port GigabitEthernet0/0/2 uplink
port GigabitEthernet0/0/1 downlink
可以看到SW1上面的Smart Link组状态,G0/0/1口为活跃状态!
将SW2的G0/0/2接口shutdown之后,G0/0/1也自动跟着shutdown!
然后查看SW1就会发现,G0/0/2成为活跃接口!