标签:comm 出现 hang 动态 image 不可 会话 vlan 模拟
与动态路由协议不同,静态路由自身没有检测机制,当网络发生故障的时候,需要管理员介入。静态路由与BFD联动可为静态路由绑定BFD会话,利用BFD会话来检测静态路由所在链路的状态,具体过程如下:
当某条静态路由上的BFD会话检测到链路故障时,BFD会将故障上报系统,促使该路由失效,使该路由在IP路由表中不可见。
当某条静态路由上的BFD会话检测到故障的链路重新建立成功时,BFD会上报系统,激活该路由,使该路由重新出现在IP路由表中。
AR1配置:
[Huawei]vlan 10
[Huawei-vlan10]q
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 172.16.0.1 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 172.16.2.1 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.0.1 24
AR2
<Huawei>sys
[Huawei]iint g0/0/0
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 172.16.0.2 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 172.16.1.1 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]
AR3
<Huawei>sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 172.16.1.2 24
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 172.16.2.2 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.1 24
[Huawei-GigabitEthernet0/0/2]q
[Huawei]
[AR1]bfd
[AR1] quit
[AR1] bfd tobeijing peer-ip 172.16.2.2
[AR1-bfd-session-tobeijing] discriminator local 10
[AR1-bfd-session-tobeijing] discriminator remote 20
[AR1-bfd-session-tobeijing]commit
[AR1-bfd-session-tobeijing]quit
[AR1]undo ip route-static 192.168.1.0 24 172.16.2.2
[AR1]ip route-static 192.168.1.0 24 172.16.2.2 track bfd-session tobeijing
[AR3]bfd
[AR3] quit
[AR3] bfd toshanghai peer-ip 172.16.2.1
[AR3-bfd-session-toshanghai] discriminator local 20
[AR3-bfd-session-toshanghai] discriminator remote 10
[AR3-bfd-session-toshanghai]commit
[AR3-bfd-session-toshanghai]quit
[AR3]undo ip route-static 192.168.0.0 24 172.16.2.1
[AR3]ip route-static 192.168.0.0 24 172.16.2.1 track bfd-session toshangha
标签:comm 出现 hang 动态 image 不可 会话 vlan 模拟
原文地址:https://www.cnblogs.com/bjlssj/p/11757497.html