R0 (config-router) #router-id 10.10.10.10
R0 (config-router) #network 192.168.2.0 0.0.0.255 area 0
R0 (config-router) #network 192.168.3.0 0.0.0.255 area 0
在 R1 中 OSPF 路由配置如下:
R1 (config) #router ospf 3
R1 (config-router) #router-id 1.1.1.1
R1 (config-router) #network 192.168.3.0 0.0.0.255 area 0
R1 (config-router) #network 192.168.4.0 0.0.0.255 area 0
在 R2 中 OSPF 路由配置如下:
R2 (config) #router ospf 3
R2 (config-router) #router-id 2.2.2.2
R2 (config-router) #network 192.168.1.0 0.0.0.255 area 0
R2 (config-router) #network 192.168.2.0 0.0.0.255 area 0
在 R3 中 OSPF 路由配置如下:
R3 (config) #router ospf 3
R3 (config-router) #router-id 3.3.3.3
R3 (config-router) #network 192.168.4.0 0.0.0.255 area 0
R3 (config-router) #network 192.168.5.0 0.0.0.255 area 0
3) 验证连通性,由 PC0 去 ping PC1
4) 查看路由器 R0、R1、R2、R3 的路由
以 R0 为例:
R0#show ip route
5) 查看路由协议配置与统计信息
以 R0 为例:
R0#show ip protocols
6) 查看 OSPF 进程及区域细节的数据
以 R0 为例:
R0#show ip ospf
7) 查看路由器 OSPF 数据库信息
- 1
- 2
前往页