当前位置:网站首页>华为设备配置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

KDD 2022 | 深度图神经网络中的特征过相关:一个新视角

李沐动手学深度学习V2-BERT预训练和代码实现

GNN教程:图神经网络基础知识!

Qt提升自定义控件,找不到头文件

Electron User Guide Beginning Experience

SQL 嵌套 N 层太长太难写怎么办?

go——内存分配机制

广东省数字经济发展指引 1.0之建成数据安全保障体系

信息学奥赛一本通(1259:【例9.3】求最长不下降序列)
随机推荐
[AnXun cup 2019] easy_web
引用类型 ,值类型 ,小坑。
并发与并行
The five classification of software testing
「每周译Go」这次我们来点不一样的!--《How to Code in Go》系列上线
如何解决图像分类中的类别不均衡问题?不妨试试分开学习表征和分类器
The time series database has been developed for 5 years. What problem does it need to solve?
"Weekly Translate Go" This time we have something different!-- "How to Code in Go" series launched
软件测试分类
李沐动手学深度学习V2-bert预训练数据集和代码实现
Tencent YunMeng every jie: I experienced by cloud native authors efficiency best practices case
第七章 噪声
Fiddle设置接口数据用指定工具查看;Sublime Text设置json数据格式化转换
Translate My Wonderful | July Moli Translation Program Winners Announced
Triacetin是什么化学材料
callback prototype __proto__
Parse common methods in the Collection interface that are overridden by subclasses
广东省数字经济发展指引 1.0之建成数据安全保障体系
C# Barrier class
js Fetch返回数据res.json()报错问题