当前位置:网站首页>华为设备配置BFD多跳检测
华为设备配置BFD多跳检测
2022-08-02 20:13:00 【51CTO】

1. 配置设备间的网络互连
[LSW1]vlan batch 10
[LSW1-GigabitEthernet0/0/2]port link-type hybrid
[LSW1-GigabitEthernet0/0/2]port hybrid pvid vlan 10
[LSW1-GigabitEthernet0/0/2]port hybrid untagged vlan 10
[LSW1]int Vlanif 10
[LSW1-Vlanif10]ip add 10.1.1.1 24
[LSW2]vlan batch 10 20
[LSW2-GigabitEthernet0/0/1]port link-type hybrid
[LSW2-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[LSW2-GigabitEthernet0/0/1]port hybrid untagged vlan 10
[LSW2-GigabitEthernet0/0/3]port link-type hybrid
[LSW2-GigabitEthernet0/0/3]port hybrid untagged vlan 20
[LSW2-GigabitEthernet0/0/3]port hybrid pvid vlan 20
[LSW2]int Vlanif 10
[LSW2-Vlanif10]ip add 10.1.1.2 24
[LSW2-Vlanif10]int Vlanif 20
[LSW2-Vlanif20]ip add 10.1.2.2 24
[LSW3]vlan batch 20
[LSW3-GigabitEthernet0/0/2]port link-type hybrid
[LSW3-GigabitEthernet0/0/2]port hybrid pvid vlan 20
[LSW3-GigabitEthernet0/0/2]port hybrid untagged vlan 20
[LSW3]int Vlanif 20
[LSW3-Vlanif20]ip add 10.1.2.3 24
2. 配置静态路由,使LSW1、LSW3之间有可达路由
[LSW1]ip route-static 10.1.2.0 24 10.1.1.2
[LSW3]ip route-static 10.1.1.0 24 10.1.2.2
3. 配置多跳BFD检测
[LSW1]bfd
[LSW1]bfd 1to3 bind peer-ip 10.1.2.3
[LSW1-bfd-session-1to3]discriminator local 10
[LSW1-bfd-session-1to3]discriminator remote 20
[LSW1-bfd-session-1to3]commit
[LSW3]bfd
[LSW3]bfd 3to1 bind peer-ip 10.1.1.1
[LSW3-bfd-session-3to1]discriminator local 20
[LSW3-bfd-session-3to1]discriminator remote 10
[LSW3-bfd-session-3to1]commit
4. 验证配置

对LSW1的GE0/0/2接口执行shutdown操作,模拟链路故障
[LSW1-GigabitEthernet0/0/2]shutdown

边栏推荐
猜你喜欢

接口测试常用工具及测试方法(入门篇)

TPAMI2022 | TransCL: based on the study the compression of the Transformer, more flexible and more powerful

Day35 LeetCode

「 每日一练,快乐水题 」1374. 生成每种字符都是奇数个的字符串
![LeetCode 622 设计循环队列[数组 队列] HERODING的LeetCode之路](/img/dc/ba5a0c3f6a58283d79c5916376e49e.png)
LeetCode 622 设计循环队列[数组 队列] HERODING的LeetCode之路

56.【全局变量和局部变量专题】

数字孪生助力智慧城市可视化建设

ssdp协议搜索GB28181设备

go——垃圾回收机制(GC)

软件测试的流程规范有哪些?具体要怎么做?
随机推荐
顺序查找和折半查找,看这篇就够了
ACE JET NPOI
网络协议介绍
.NET性能优化-你应该为集合类型设置初始大小
【21天学习挑战赛】冒泡排序与插入排序
4 kmiles join YiSheng group, with more strong ability of digital business, accelerate China's cross-border electricity full domain full growth
力扣每日一题-第46天-344. 反转字符串
五大维度解读软件测试分类
Day35 LeetCode
Digital twins help visualize the construction of smart cities
【StoneDB性能相关工具】内存监控
OpenCV开发中的内存管理问题
实现fashion_minst服装图像分类
第七章 噪声
Nervegrowold hands-on learning deep learning V2 - Bert pre training data set and code implementation
setup语法糖 defineProps defineEmits defineExpose
一次线上事故,我顿悟了异步的精髓
C# Monitor类
Packages and packages, access modifiers
Geoip2 - golang golang source code analysis