当前位置:网站首页>华为设备配置VRRP与BFD联动实现快速切换
华为设备配置VRRP与BFD联动实现快速切换
2022-08-03 20:20: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/2]port link-type hybrid
[LSW4-GigabitEthernet0/0/2]port hybrid pvid vlan 30
[LSW4-GigabitEthernet0/0/2]port hybrid untagged vlan 30
[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-Vlanif30]ip add 10.1.3.4 24
[LSW4-Vlanif100]ip add 172.16.1.4 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
[LSW4-ospf-1-area-0.0.0.0]network 10.1.3.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配置静态BFD会话
[LSW1]bfd
[LSW1]bfd 1to2 bind peer-ip 10.1.1.2 interface Vlanif 10
[LSW1-bfd-session-1to2]discriminator local 1
[LSW1-bfd-session-1to2]discriminator remote 2
[LSW1-bfd-session-1to2]min-tx-interval 100
[LSW1-bfd-session-1to2]min-rx-interval 100
[LSW1-bfd-session-1to2]commit
[LSW2]bfd
[LSW2]bfd 2to1 bind peer-ip 10.1.1.1 interface Vlanif 10
[LSW2-bfd-session-2to1]discriminator local 2
[LSW2-bfd-session-2to1]discriminator remote 1
[LSW2-bfd-session-2to1]min-rx-interval 100
[LSW2-bfd-session-2to1]min-tx-interval 100
[LSW2-bfd-session-2to1]commit配置VRRP与BFD联动功能
[LSW1]int Vlanif 10
[LSW1-Vlanif10]vrrp vrid 2 track bfd-session 1 increased 40
[LSW2]int Vlanif 10
[LSW2-Vlanif10]vrrp vrid 1 track bfd-session 2 increased 40验证配置
[LSW1-GigabitEthernet0/0/3]shutdown
边栏推荐
猜你喜欢
Advantages and Disadvantages of Blind and Buried Via PCB Stacked Via Design
RNA核糖核酸修饰荧光染料|HiLyte Fluor 488/555/594/647/680/750标记RNA核糖核酸
迪赛智慧数——柱状图(多色柱状图):2021年我国城市住户存款排名
149. The largest number on a straight line, and check the set
leetcode 231. 2 的幂
【飞控开发高级教程3】疯壳·开源编队无人机-定高、定点、悬停
EasyCVR平台海康摄像头语音对讲功能配置的3个注意事项
若依集成easyexcel实现excel表格增强
Lecture topics and guest blockbuster, TDengine developers conference to promote data technology "broken"
node版本切换工具NVM以及npm源管理器nrm
随机推荐
Leetcode 899. An orderly queue
LeetCode 899. 有序队列
双线性插值公式推导及Matlab实现
RNA核糖核酸修饰荧光染料|HiLyte Fluor 488/555/594/647/680/750标记RNA核糖核酸
codeforces:C. Maximum Subrectangle【前缀和 + 贪心 + 最小子数组和】
数学之美 第六章——信息的度量和作用
leetcode 326. Powers of 3
Pytorch GPU 训练环境搭建
自定义form表单验证
收藏-即时通讯(IM)开源项目OpenIM-功能手册
力扣707-设计链表——链表
ES6--剩余参数
Mapper输出数据中文乱码
leetcode 461. 汉明距离
Hinton2022年RobotBrains访谈记录
极验深知v2分析
华为设备配置VRRP负载分担
若依集成browscap读取浏览器用户代理
Leetcode sword refers to Offer 15. 1 in the binary number
Power button 206 - reverse list - the list