此任务使用 SEFOS 中的 RIP 的重新分配功能配置动态路由。此任务还将通过 RIP 动态了解路由,从而验证两台主机的可访问性。
有关此任务的拓扑,请参见Routing Feature Topology。
请参见Configure Static Unicast Route Entries。
动态路由的基本 VLAN 配置类似于静态路由的基本 VLAN 配置。如果 SEFOS-1 和 SEFOS-2 上未保存配置信息,请执行Configure Static Unicast Route Entries 中的Step 1 到Step 6,然后返回此处。
SEFOS-1# configure terminal SEFOS-1(config)# router rip SEFOS-1(config-router)# neighbor 20.0.0.200 SEFOS-1(config-router)# network 20.0.0.201 SEFOS-1(config-router)# network 10.0.0.201 SEFOS-1(config-router)# redistribute all SEFOS-1(config-router)# end
SEFOS-2# configure terminal SEFOS-2(config)# router rip SEFOS-2(config-router)# neighbor 20.0.0.201 SEFOS-2(config-router)# network 20.0.0.200 SEFOS-2(config-router)# network 40.0.0.200 SEFOS-2(config-router)# redistribute all SEFOS-2(config-router)# end
如果 SEFOS-2 是一台第三方交换机,请验证在 SEFOS-2 上是否启用了 RIP,以及是否相应地应用了相关配置。
SEFOS-1# show ip rip database Vrf default 10.0.0.0/8 [1] auto-summary 10.0.0.0/24 [1] directly connected, vlan10 20.0.0.0/8 [1] auto-summary 20.0.0.0/24 [1] directly connected, vlan20 40.0.0.0/8 [2] auto-summary 40.0.0.0/8 [2] via 20.0.0.200, vlan20
SEFOS-2# show ip rip database Vrf default 10.0.0.0/8 [2] auto-summary 10.0.0.0/8 [2] via 20.0.0.201, vlan20 20.0.0.0/8 [1] auto-summary 20.0.0.0/24 [1] directly connected, vlan20 40.0.0.0/8 [1] auto-summary 40.0.0.0/24 [1] directly connected, vlan40
# ping 10.0.0.201
# ping 10.0.0.169
# ping 40.0.0.110
由于 SEFOS 能够使用 RIP 的重新分配功能动态了解路由条目,因此可以测试 SEFOS 的基本路由功能。