概述
-
配置设备间的网络互连
[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
最后
以上就是秀丽含羞草为你收集整理的华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)的全部内容,希望文章能够帮你解决华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复