- 3
- 0
- 约5.55千字
- 约 9页
- 2016-06-10 发布于重庆
- 举报
CCNP路由实验OSPF虚链路的配置
一、实验目的:
1、掌握OSPF虚链路的配置
二、实验拓扑:
?
三、实验步骤
1、如图配置OSPF网络,配置如下:
R1:
R1(config)#int s1/1
R1(config-if)#ip add 172.16.224.1 255.255.255.0
R1(config-if)#no shut
R1(config)#int loop 0
R1(config-if)#ip add 172.16.1.3 255.255.255.0
R1(config)#int loop 1
R1(config-if)#ip add 172.16.0.3 255.255.255.0
R1(config-if)#exit
R1(config)#router ospf 1
R1(config-router)#network 172.16.224.0 0.0.0.255 area 51
R1(config-router)#network 172.16.0.0 0.0.0.255 area 0
R1(config-router)#network 172.16.1.0 0.0.0.255 area 0
R1(config-router)#
R2:
R2(config)#int s1/0
R2(config-if)#ip add 172.16.224.2 255.255.255.0
R2(config-if)#no shut
R2(config)#int s1/2
R2(config-if)#ip add 172.16.240.1 255.255.255.0
R2(config-if)#no shut
R2(config)#int loop 0
R2(config-if)#ip add 172.16.3.1 255.255.255.0
R2(config-if)#exit
R2(config)#router ospf 1
R2(config-router)#network 172.16.224.0 0.0.0.255 area 51
R2(config-router)#network 172.16.3.0 0.0.0.255 area 51
R2(config-router)#network 172.16.240.0 0.0.0.255 area 3
R3:
R3(config)#int s1/1
R3(config-if)#ip add 172.16.240.2 255.255.255.0
R3(config-if)#no shut
R3(config)#int loop 0
R3(config-if)#ip add 172.16.252.1 255.255.255.0
R3(config)#int loop 1
R3(config-if)#ip add 172.16.248.1 255.255.255.0
R3(config)#router ospf 1
R3(config-router)#network 172.16.240.0 0.0.0.255 area 3
2、使用show ip route、show ip ospf nei查看OSPF配置结果。
R1#
R1#sh ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 172.16.224.0/24 is directly connected, Serial1/1
C 172.16.0.0/24 is directly connected, Loopback1
C 172.16.1.0/24 is directly connected, Loopback0
?????? 172.16.3.1/32 [110/65] via 172.16.224.2, 00:02:52, Serial1/1
R1#sh ip ospf nei detail
Neighbor 172.16.3.1, interface address 172.16.224.2
In the area 51 via interface Serial1/1
Neighbor priority is 0, State is FULL, 6 state changes
DR is 0.0.0.0 BDR is 0.0.0.0
Options is 0x52
LLS Options is 0x1 (LR)
Dead timer due in 00:00:31
Neig
原创力文档

文档评论(0)