当前位置:网站首页>华为设备配置VRRP与路由联动监视上行链路
华为设备配置VRRP与路由联动监视上行链路
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 - 配置VRRP与路由联动功能
[LSW1]int Vlanif 10
[LSW1-Vlanif10]vrrp vrid 1 track ip route 172.16.1.0 24 reduced 40
[LSW2]int Vlanif 10
[LSW2-Vlanif10]vrrp vrid 2 track ip route 172.16.2.0 24 reduced 40 - 验证配置
[AR1-GigabitEthernet0/0/0]shutdown
边栏推荐
- Distributed Computing Experiment 3 PRC-based Book Information Management System
- 将回调函数转为Flow
- 2022爱分析· 银行数字化厂商全景报告
- 安装GBase 8c数据库的时候,报错显示“Resource:gbase8c already in use”,这怎么处理呢?
- 两日总结六
- GBase 8c数据库集群中,怎么替换节点呢?比如设置A节点为gtm,换到B节点上。
- 解决循环依赖import cycle not allowed的最佳解决办法
- 第一次用postgreSQL,想装主从,用的12.7 tar.gz版本。安装好后没在 share目录下找到样例配置recovery.conf.sample,是安装方式不对,还是路径不对?
- 金仓数据库 KDTS 迁移工具使用指南 (7. 部署常见问题)
- ExoPlayer添加Ffmpeg扩展实现软解功能
猜你喜欢
随机推荐
redis stream 实现消息队列
The national vocational skills contest competition of network security emergency response
【JS 逆向百例】某网站加速乐 Cookie 混淆逆向详解
LAN技术-3iStack
Redis非关系型数据库
Lightweight Backbone VGNetG Achieves "No Choice, All" Lightweight Backbone Network
无人驾驶运用了什么技术,无人驾驶技术是
24.循环神经网络RNN
高等代数_证明_对称矩阵一定能够相似对角化
安装GBase 8c数据库的时候,报错显示“Resource:gbase8c already in use”,这怎么处理呢?
金仓数据库的单节点如何转集群?
IntelliJ新建一个类或者包的快捷键是什么?
GBase 8c中怎么查询数据库配置参数,例如datestyle。使用什么函数或者语法呢?
有趣的USB接口和颜色分类
unity3d-Animation&&Animator接口(基本使用)
异常值 识别与处理方法
The school to apply for link
带你了解一下PHP搭建的电商商城系统
[Paper Notes] - Low Illumination Image Enhancement - Supervised - RetinexNet - 2018-BMVC
使用腾讯云发送短信 ---- 手把手教你搞定所有步骤