基本 OSPF 配置实验在路由器 R1 上配置 OSPF R1(config)# router ospf 1 R1(config-router)# R1(config-router)# network area 0 R1(config-router)# network area 0 R1(config-router)# network area 0 R1(config-router)# end R2(config)# router ospf 1 R2(config-router)# R2(config-router)# network area 0 R2(config-router)# network R2(config-router)# network area 0 R2(config-router)# end R3(config)# router ospf 1 R3(config-router)# network area 0 R3(config-router)# network area 0 R3(config-router)# network area 0 R3(config-router)# end R1(config)# interface loopback 0 R1(config-if)# ip address R2(config)# interface loopback 0 R2(config-if)# ip address R3(config)# interface loopback 0 R3(config-if)# ip address R1(config)# router ospf 1 R1(config-router)# router-id R1#(config-router)# end R1# clear ip ospf process Reset ALL OSPF processes?[no]: yes 使用 router-id 命令的 no 形式删除所配置的路由器 ID。 R1(config)# router ospf 1 R1(config-router)# router-id Reload or use “ clear ip ospf process ” command, for this to take effect 使用 clear ip ospf process 命令重新启动 OSPF 进程。重新启动 OSPF 进程会强制路由器使用 Loopback 0 接口上所配置的 IP 地址作为路由器 ID。 R1(config-router)# end R1# cle
基本OSPF配置实验 来自淘豆网www.taodocs.com转载请标明出处.