当前位置:网站首页>华为设备配置VRRP与NQA联动监视上行链路
华为设备配置VRRP与NQA联动监视上行链路
2022-08-04 07:28:00 【Tony_long7483】

- 配置设备各接口的IP地址
[LSW1]vlan batch 10 20
[LSW1-GigabitEthernet0/0/3]port link-type hybrid
[LSW1-GigabitEthernet0/0/3]port hybrid pvid vlan 10
[LSW1-GigabitEthernet0/0/3]port hybrid untagged vlan 10
[LSW1-GigabitEthernet0/0/4]port link-type hybrid
[LSW1-GigabitEthernet0/0/4]port hybrid untagged vlan 20
[LSW1-GigabitEthernet0/0/4]port hybrid pvid vlan 20
[LSW1-Vlanif10]ip add 10.1.1.1 24
[LSW1-Vlanif20]ip add 10.1.2.1 24
[LSW2]vlan batch 10 30
[LSW2-GigabitEthernet0/0/3]port link-type hybrid
[LSW2-GigabitEthernet0/0/3]port hybrid untagged vlan 10
[LSW2-GigabitEthernet0/0/3]port hybrid pvid vlan 10
[LSW2-GigabitEthernet0/0/4]port link-type hybrid
[LSW2-GigabitEthernet0/0/4]port hybrid pvid vlan 30
[LSW2-GigabitEthernet0/0/4]port hybrid untagged vlan 30
[LSW2-Vlanif10]ip add 10.1.1.2 24
[LSW2-Vlanif30]ip add 10.1.3.2 24
[LSW4]vlan batch 20 30 100
[LSW4-GigabitEthernet0/0/1]port link-type hybrid
[LSW4-GigabitEthernet0/0/1]port hybrid untagged vlan 20
[LSW4-GigabitEthernet0/0/1]port hybrid pvid vlan 20
[LSW4-GigabitEthernet0/0/3]port link-type hybrid
[LSW4-GigabitEthernet0/0/3]port hybrid untagged vlan 100
[LSW4-GigabitEthernet0/0/3]port hybrid pvid vlan 100
[LSW4-Vlanif20]ip add 10.1.2.4 24
[LSW4-Vlanif100]ip add 172.16.1.4 24
[LSW5]vlan batch 30 200
[LSW5-GigabitEthernet0/0/1]port link-type hybrid
[LSW5-GigabitEthernet0/0/1]port hybrid untagged vlan 200
[LSW5-GigabitEthernet0/0/1]port hybrid pvid vlan 200
[LSW5-GigabitEthernet0/0/2]port link-type hybrid
[LSW5-GigabitEthernet0/0/2]port hybrid pvid vlan 30
[LSW5-GigabitEthernet0/0/2]port hybrid untagged vlan 30
[LSW5-Vlanif30]ip add 10.1.3.5 24
[LSW5-Vlanif200]ip add 172.16.2.5 24
[AR1-GigabitEthernet0/0/0]ip add 172.16.1.6 24
[AR1-GigabitEthernet0/0/1]ip add 172.16.2.6 24 - 配置LSW3的二层转发功能
[LSW3]vlan batch 10
[LSW3-GigabitEthernet0/0/1]port link-type hybrid
[LSW3-GigabitEthernet0/0/1]port hybrid untagged vlan 10
[LSW3-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[LSW3-GigabitEthernet0/0/2]port link-type hybrid
[LSW3-GigabitEthernet0/0/2]port hybrid untagged vlan 10
[LSW3-GigabitEthernet0/0/2]port hybrid pvid vlan 10 - 配置OSPF协议进行互联
[LSW1]ospf 1
[LSW1-ospf-1]area 0
[LSW1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[LSW1-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255
[LSW2]ospf 1
[LSW2-ospf-1]area 0
[LSW2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[LSW2-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255
[LSW4]ospf 1
[LSW4-ospf-1]area 0
[LSW4-ospf-1-area-0.0.0.0]network 172.16.1.0 0.0.0.255
[LSW4-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255
[LSW5]ospf 1
[LSW5-ospf-1]area 0
[LSW5-ospf-1-area-0.0.0.0]network 172.16.2.0 0.0.0.255
[LSW5-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255
[AR1]ospf 1
[AR1-ospf-1]area 0
[AR1-ospf-1-area-0.0.0.0]network 172.16.1.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]network 172.16.2.0 0.0.0.255 - 配置VRRP备份组
[LSW1]int Vlanif 10
[LSW1-Vlanif10]vrrp vrid 1 virtual-ip 10.1.1.254
[LSW1-Vlanif10]vrrp vrid 1 priority 120
[LSW1-Vlanif10]vrrp vrid 1 preempt-mode timer delay 20
[LSW1-Vlanif10]vrrp vrid 2 virtual-ip 10.1.1.253
[LSW2]int Vlanif 10
[LSW2-Vlanif10]vrrp vrid 2 virtual-ip 10.1.1.253
[LSW2-Vlanif10]vrrp vrid 2 priority 120
[LSW2-Vlanif10]vrrp vrid 2 preempt-mode timer delay 20
[LSW2-Vlanif10]vrrp vrid 1 virtual-ip 10.1.1.254 - 配置NQA测试例
[LSW1]nqa test-instance user test
[LSW1-nqa-user-test]test-type icmp
[LSW1-nqa-user-test]destination-address ipv4 172.16.1.6
[LSW1-nqa-user-test]frequency 15
[LSW1-nqa-user-test]start now
[LSW2]nqa test-instance user test
[LSW2-nqa-user-test]test-type icmp
[LSW2-nqa-user-test]destination-address ipv4 172.16.2.6
[LSW2-nqa-user-test]frequency 15
[LSW2-nqa-user-test]start now
- 配置VRRP与NQA联动
[LSW1]int Vlanif 10
[LSW1-Vlanif10]vrrp vrid 1 track nqa user test reduced 40
[LSW2]int Vlanif 10
[LSW2-Vlanif10]vrrp vrid 2 track nqa user test reduced 40 - 验证配置


[AR1-GigabitEthernet0/0/0]shutdown


边栏推荐
- redis---分布式锁存在的问题及解决方案(Redisson)
- The school to apply for link
- int *p = &a、p = &a、*p = a的正确理解
- 创建数据库报错--MySQL server is running with the --super-read-only option
- 安装GBase 8c数据库集群时,报错误码:80000306,显示Dcs cluster not healthy。怎么处理错误呢?
- 金仓数据库KingbaseES客户端编程接口指南-JDBC(7. JDBC事务处理)
- Typora_Markdown_图片标题(题注)
- Use of MotionLayout
- 字节跳动岗位薪酬体系曝光,看完我真的酸了...
- 高等代数_证明_两个矩阵乘积为0,则两个矩阵的秩之和小于等于n
猜你喜欢
随机推荐
沃尔玛、阿里国际该如何做测评自养号?
解决报错: YarnScheduler: Initial job has not accepted any resources
Transform 相对位置变换,坐标系转换
设计信息录入界面,完成人员基本信息的录入工作,
MYSQL JDBC图书管理系统
分布式计算实验1 负载均衡
Mysql insert on duplicate key 死锁问题定位与解决
redis stream 实现消息队列
中断和异常的处理与抢占式多任务
24.循环神经网络RNN
[Paper Notes] - Low Illumination Image Enhancement - Supervised - RetinexNet - 2018-BMVC
两日总结四
TCP协议详解
两日总结五
MySQL BIGINT 数据类型
【selenium自动化】第四篇,结合testNg
登录拦截实现过程
LeetCode 135. 分发糖果
经典宋诗排行榜
【剑指Offer】二分法例题









