当前位置:网站首页>华为设备配置BFD状态与接口状态联动
华为设备配置BFD状态与接口状态联动
2022-08-03 06:02:00 【Tony_long7483】

配置LSW1和LSW2的直连接口IP地址
[LSW1]vlan 10
[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]int Vlanif 10
[LSW1-Vlanif10]ip add 10.1.1.1 24
[LSW2]vlan batch 10
[LSW2-GigabitEthernet0/0/4]port link-type hybrid
[LSW2-GigabitEthernet0/0/4]port hybrid pvid vlan 10
[LSW2-GigabitEthernet0/0/4]port hybrid untagged vlan 10
[LSW2-Vlanif10]ip add 10.1.1.2 24配置BFD单跳检测
[LSW1]bfd
[LSW1]bfd 1to2 bind peer-ip default-ip interface GigabitEthernet 0/0/3
[LSW1-bfd-session-1to2]discriminator local 10
[LSW1-bfd-session-1to2]discriminator remote 20
[LSW1-bfd-session-1to2]commit
[LSW2]bfd
[LSW2]bfd 2to1 bind peer-ip default-ip interface GigabitEthernet 0/0/4
[LSW2-bfd-session-2to1]discriminator local 20
[LSW2-bfd-session-2to1]discriminator remote 10
[LSW2-bfd-session-2to1]commit
配置BFD状态与接口状态联动
[LSW1]bfd 1to2
[LSW1-bfd-session-1to2]process-interface-status
[LSW2]bfd 2to1
[LSW2-bfd-session-2to1]process-interface-status验证配置

对LSW3的GE0/0/4接口执行shutdown操作,让BFD状态Down
[LSW3-GigabitEthernet0/0/4]shutdown

边栏推荐
猜你喜欢
随机推荐
C语言实现通讯录功能(400行代码实现)
torch.nn.modules.activation.ReLU is not a Module subclass
Pinned Articles-
第四章:架构,Architecture
pyspark --- count the mode of multiple columns and return it at once
ES 中时间日期类型 “yyyy-MM-dd HHmmss” 的完全避坑指南
Umi 4 快速搭建项目
Flink对比Spark
nvm 卸载详细流程
七夕和程序员有毛关系?
MySQL 日期时间类型精确到毫秒
一篇文章教你写扫雷(c语言基础版)
empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType),
Chrome插件开发入门
编程语言有什么
MySQL必知必会
DAC、ADC、FFT使用总结
Autowired注解与Resource注解的区别
链表之打基础--基本操作(必会)
PHP 获取服务器信息









