前言:
此时小伙伴们对“华为交换机监控软件”都比较关怀,咱们都需要了解一些“华为交换机监控软件”的相关知识。那么小编也在网上搜集了一些对于“华为交换机监控软件””的相关知识,希望看官们能喜欢,兄弟们一起来了解一下吧!华为交换机配置SmartLink及MonitorLink试验
组网图及试验要求:
交换机A配置过程:
<A>dis cur
#
sysname A
#
vlan batch 2 to 20 99
#
stp region-configuration (创建一个MSRP实例)
instance 10 vlan 11 to 20 (实例10业务包含VLAN:11到20)
active region-configuration (激活实例)
#
interface Vlanif10
ip address 10.1.1.2 255.255.255.0
#
interface Vlanif20
ip address 20.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 20 99
stp disable (接口模式下关闭STP)
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 20 99
stp disable (接口模式下关闭STP)
##
smart-link group 1 (创建smart-link组1)
load-balance instance 10 slave (在slave接口调用MSTP实例10使得VLAN号为11到20的业务从slave接口走)
restore enable (master接口恢复后接口恢复开启,交换机默认关闭)
smart-link enable (启用smart-link)
port GigabitEthernet0/0/1 master (定义GE0/0/1位主接口)
port GigabitEthernet0/0/2 slave (定义GE0/0/2位备用接口)
timer wtr 30 (倒换恢复时间位30秒,默认值60秒)
flush send control-vlan 99 (定义发送flush报文控制VLAN为99,可设置password)
#
配置完成之后查看smart-link组的状态:
<A>dis smart-link group 1
Smart Link group 1 information :
Smart Link group was enabled
Wtr-time is: 30 sec.
Load-Balance Instance: 10
There is no protected-vlan reference-instance
DeviceID: 4c1f-cc82-4d6e Control-vlan ID: 99
Member Role State Flush Count Last-Flush-Time
----------------------------------------------------------------------
GigabitEthernet0/0/1 Master Active 3 2022/04/29 23:49:47 UTC-08
:00
GigabitEthernet0/0/2 Slave Inactive 0 0000/00/00 00:00:00 UTC+00
:00
交换机B的配置
#
sysname B
#
undo info-center enable (关闭交换机日志功能)
#
vlan batch 2 to 20 99
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 20 99
smart-link flush receive control-vlan 99 (定义接口接收smart-link的flush报文控制VLAN为99)
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 20 99
smart-link flush receive control-vlan 99 (定义接口接收smart-link的flush报文控制VLAN为99)
#
monitor-link group 1 (创建monitor-link组并定义组号为:1)
port GigabitEthernet0/0/1 uplink (定义接口GE0/0/1位上行口,可定义多个上行口)
port GigabitEthernet0/0/2 downlink 1 (定义接口GE0/0/2位下行口,可定义多个下行口)
monitor-link也称为监控链路组,主要配合smart-link用户感知交换机A的上层设备链路状态,但启用monitor-link时上行接口发生故障接口由UP转为DOWN状态是,monitor-link强制将下行接口转为down状态。联动smart-link主备切换。
查看交换机B的monitor-link
<B>dis monitor-link group 1
Monitor Link group 1 information :
Recover-timer is 3 sec.
Member Role State Last-up-time Last-down-tim
e
GigabitEthernet0/0/1 UpLk UP 2022/04/29 23:43:54 UTC-08:00 2022/0
4/29 23:42:51 UTC-08:00
GigabitEthernet0/0/2 DwLk[1] UP 2022/04/29 23:43:57 UTC-08:00 2022/0
4/29 23:42:51 UTC-08:00
交换机C配置同B一样
交换机D的配置:
#
vlan batch 2 to 20 99
#
interface Vlanif10
ip address 10.1.1.1 255.255.255.0
#
interface Vlanif20
ip address 20.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 20 99
smart-link flush receive control-vlan 99
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 20 99
smart-link flush receive control-vlan 99
标签: #华为交换机监控软件