华为弱三层交换机S5720s-li如何使用路由模式?

华为弱三层交换机S5720s-li如何使用路由模式?,第1张

华为的三层交换机默认是打开路由功能的,需要做的是把VLAN和地址规划了

划分VLAN,并描述

vlan 1

description local-S3600 vlan 2

description link-to-wenquan

vlan 3

description link-to-ruzhou

vlan 4

description link-to-xiaotun

vlan 5

description link-to-baofeng

vlan 6

description link-to-pingxi

vlan 7

一、实验拓扑

二、SW2配置

nqa test-instance helipay icmp

test-type icmp

destination-address ipv4 2.2.2.10 //探测的目标地址

frequency 10 //检测周期10秒

interval seconds 3 //周期内发的三次包时间间隔,该数值乘于3,不能超过周期设置值

start now

//静态路由关联内容

ip route-static 0.0.0.0 0.0.0.0 Vlanif100 1.1.1.2 track nqa helipay icmp//必须带出接口

ip route-static 0.0.0.0 0.0.0.0 1.1.1.3 preference 100

三、状态查看

dis nqa results //产看探测结果

“Lost packet ratio: 0 %”,这说明链路状态完好。

“Lost packet ratio: 100%”,这说明链路状态发生故障

dis nqa history //产看探测包的记录情况

四、测试情况

关闭SW6上的接口,路由表会进行切换,如下:

五、探测回复后

若是探测IP回复了,nqa是不支持抢占的,需要先关闭nqa探测。

nqa test-instance helipay icmp

undo start //结束探测,路由才会基于优先级高低重新更新

start now//然后重新再启用探测


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11276809.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-14
下一篇 2023-05-14

发表评论

登录后才能评论

评论列表(0条)

保存