当前位置:网站首页>华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)
华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)
2022-08-02 22:39:00 【51CTO】
1. 配置设备间的网络互连
[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
2. 配置路由协议-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
3. 配置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
4. 配置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
5. 检查配置
[PE3-GigabitEthernet0/0/1]shutdown
边栏推荐
猜你喜欢
随机推荐
MySQL最大建议行数2000w, 靠谱吗?
牛客刷题:手动实现数组filter方法
基于奇异谱分析法和长短时记忆网络组合模型的滑坡位移预测
In-depth study TypeScript TypeScript 】 【 class (under)
CKA、CKAD、CKS、KCNA、CFCD考试
【学习笔记】博弈论
vscode 自定义快捷键——设置eslint
mysql查询表中重复记录
threejs 动态调整相机位置,使相机正好能看到对象
Unity WallFxPack使用
学习基因富集工具DAVID(2)
最近公共祖先(LCA)学习笔记 | P3379 【模板】最近公共祖先(LCA)题解
centos7安装mysql5.7步骤(图解版)
Controller层代码这么写,简洁又优雅!
CWE4.8:2022年危害最大的25种软件安全问题
虚拟内存 virualmemory
别再用Field注入了
最新真实软件测试面试题分享,收藏了还怕进入不了大厂?
B站回应“HR 称核心用户都是 Loser”:该面试官去年底已被劝退,会吸取教训加强管理
采用QT进行OpenGL开发(三)着色器编程