1. 组网需求
·Switch A、Switch B和Switch C上运行OSPF,网络层相互可达。
· 当Switch A和Switch B通过L2 Switch通信的链路出现故障时BFD能够快速感知通告OSPF协议,并且切换到Switch C进行通信。
2. 组网图
图1-16 OSPF与BFD联动配置组网图
![08c196d2a1495a15222351fb85720c2e.png](https://img-blog.csdnimg.cn/img_convert/08c196d2a1495a15222351fb85720c2e.png)
3. 配置步骤
(1) 配置各接口的IP地址(略)
(2) 配置OSPF基本功能
# 配置Switch A。
system-view
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] network 121.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] quit
[SwitchA] interface vlan 11
[SwitchA-Vlan-interface11] ospf cost 2
[SwitchA-Vlan-interface11] quit
# 配置