当前位置:网站首页>华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)
华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)
2022-08-03 06:02:00 【Tony_long7483】
配置设备间的网络互连
[PE1]vlan batch 10 20
[PE1-GigabitEthernet0/0/1]port link-type hybrid
[PE1-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[PE1-GigabitEthernet0/0/1]port hybrid untagged vlan 10
[PE1-GigabitEthernet0/0/2]port link-type hybrid
[PE1-GigabitEthernet0/0/2]port hybrid untagged vlan 20
[PE1-GigabitEthernet0/0/2]port hybrid pvid vlan 20
[PE1-Vlanif10]ip add 10.1.1.3 24
[PE1-Vlanif20]ip add 10.1.2.3 24
[PE2]vlan batch 40 50
[PE2-GigabitEthernet0/0/2]port link-type hybrid
[PE2-GigabitEthernet0/0/2]port hybrid untagged vlan 40
[PE2-GigabitEthernet0/0/2]port hybrid pvid vlan 40
[PE2-GigabitEthernet0/0/1]port link-type hybrid
[PE2-GigabitEthernet0/0/1]port hybrid untagged vlan 50
[PE2-GigabitEthernet0/0/1]port hybrid pvid vlan 50
[PE2-Vlanif40]ip add 10.1.4.4 24
[PE2-Vlanif50]ip add 10.1.5.4 24
[PE3]vlan batch 20 30
[PE3-GigabitEthernet0/0/1]port link-type hybrid
[PE3-GigabitEthernet0/0/1]port hybrid untagged vlan 20
[PE3-GigabitEthernet0/0/1]port hybrid pvid vlan 20
[PE3-GigabitEthernet0/0/2]port link-type hybrid
[PE3-GigabitEthernet0/0/2]port hybrid untagged vlan 30
[PE3-GigabitEthernet0/0/2]port hybrid pvid vlan 30
[PE3-Vlanif20]ip add 10.1.2.5 24
[PE3-Vlanif30]ip add 10.1.3.5 24
[PE4]vlan batch 50 60
[PE4-GigabitEthernet0/0/1]port link-type hybrid
[PE4-GigabitEthernet0/0/1]port hybrid untagged vlan 60
[PE4-GigabitEthernet0/0/1]port hybrid pvid vlan 60
[PE4-GigabitEthernet0/0/2]port link-type hybrid
[PE4-GigabitEthernet0/0/2]port hybrid untagged vlan 50
[PE4-GigabitEthernet0/0/2]port hybrid pvid vlan 50
[PE4-Vlanif50]ip add 10.1.5.6 24
[PE4-Vlanif60]ip add 10.1.6.6 24
[CE1]vlan batch 10 40 100
[CE1-GigabitEthernet0/0/1]port link-type hybrid
[CE1-GigabitEthernet0/0/1]port hybrid untagged vlan 10
[CE1-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[CE1-GigabitEthernet0/0/2]port link-type hybrid
[CE1-GigabitEthernet0/0/2]port hybrid pvid vlan 40
[CE1-GigabitEthernet0/0/2]port hybrid untagged vlan 40
[CE1-GigabitEthernet0/0/3]port link-type hybrid
[CE1-GigabitEthernet0/0/3]port hybrid untagged vlan 100
[CE1-GigabitEthernet0/0/3]port hybrid pvid vlan 100
[CE1-Vlanif10]ip add 10.1.1.1 24
[CE1-Vlanif40]ip add 10.1.4.1 24
[CE1-Vlanif100]ip add 192.168.1.1 24
[CE2]vlan batch 30 60 200
[CE2-GigabitEthernet0/0/1]port link-type hybrid
[CE2-GigabitEthernet0/0/1]port hybrid untagged vlan 30
[CE2-GigabitEthernet0/0/1]port hybrid pvid vlan 30
[CE2-GigabitEthernet0/0/2]port link-type hybrid
[CE2-GigabitEthernet0/0/2]port hybrid untagged vlan 60
[CE2-GigabitEthernet0/0/2]port hybrid pvid vlan 60
[CE2-GigabitEthernet0/0/3]port link-type hybrid
[CE2-GigabitEthernet0/0/3]port hybrid pvid vlan 200
[CE2-GigabitEthernet0/0/3]port hybrid untagged vlan 200
[CE2-Vlanif30]ip add 10.1.3.2 24
[CE2-Vlanif60]ip add 10.1.6.2 24
[CE2-Vlanif200]ip add 192.168.2.2 24配置路由协议-OSPF
[PE1]ospf 1
[PE1-ospf-1]area 0
[PE1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255
[PE2]ospf 1
[PE2-ospf-1]area 0
[PE2-ospf-1-area-0.0.0.0]network 10.1.4.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0]network 10.1.5.0 0.0.0.255
[PE3]ospf 1
[PE3-ospf-1]area 0
[PE3-ospf-1-area-0.0.0.0]network 10.1.2.0 0.0.0.255
[PE3-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255
[PE4]ospf 1
[PE4-ospf-1]area 0
[PE4-ospf-1-area-0.0.0.0]network 10.1.6.0 0.0.0.255
[PE4-ospf-1-area-0.0.0.0]network 10.1.5.0 0.0.0.255
[CE1]ospf 1
[CE1-ospf-1]area 0
[CE1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[CE1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[CE1-ospf-1-area-0.0.0.0]network 10.1.4.0 0.0.0.255
[CE1]int Vlanif 40
[CE1-Vlanif40]ospf cost 10
[CE2]ospf 1
[CE2-ospf-1]area 0
[CE2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[CE2-ospf-1-area-0.0.0.0]network 10.1.3.0 0.0.0.255
[CE2-ospf-1-area-0.0.0.0]network 10.1.6.0 0.0.0.255
[CE2]int Vlanif 60
[CE2-Vlanif60]ospf cost 10配置BFD Session
[PE1]bfd
[PE1]bfd pe1tope3 bind peer-ip 10.1.2.5 interface Vlanif 20
[PE1-bfd-session-pe1tope3]discriminator local 1
[PE1-bfd-session-pe1tope3]discriminator remote 2
[PE1-bfd-session-pe1tope3]commit
[PE3]bfd
[PE3]bfd pe3tope1 bind peer-ip 10.1.2.3 interface Vlanif 20
[PE3-bfd-session-pe3tope1]discriminator local 2
[PE3-bfd-session-pe3tope1]discriminator remote 1
[PE3-bfd-session-pe3tope1]commit配置BFD和接口联动
[PE1]oam-mgr
[PE1-oam-mgr]oam-bind ingress bfd-session 1 trigger if-down egress interface GigabitEthernet 0/0/1
[PE3]oam-mgr
[PE3-oam-mgr]oam-bind ingress bfd-session 2 trigger if-down egress interface g0/0/2检查配置
[PE3-GigabitEthernet0/0/1]shutdown
边栏推荐
猜你喜欢
随机推荐
CISP-PTE真题演示
excel高级绘图技巧100讲(二十一)- Excel层叠柱形图
MySQL 数据库基础知识(系统化一篇入门)
C语言实现通讯录功能(400行代码实现)
MySQL 操作语句大全(详细)
连续型特征做embedding代码示例
信息学奥赛一本通T1452:Keyboarding
关于NOI 2022福建省选及省队组成的公告
人脸检测和识别--face recognition包
6.nodejs--promise、async-await
MySQL的10种常用数据类型
MySQL性能优化(硬件,系统配置,表结构,SQL语句)
FiBiNet torch复现
一篇文章教你写扫雷(c语言基础版)
Chrome插件开发入门
1066 Root of AVL Tree // AVL平衡二叉搜索树模板
分布式数据库数据一致性的原理、与技术实现方案
DIFM网络详解及复现
hashSet解析
spark中的cache和checkpoint