Ospf路由配置,并于外界相连通。

一、 实验目的:
Ospf路由配置,并于外界相连通。
Ospf路由配置,并于外界相连通。_第1张图片
二、实验拓扑:

三、实验步骤:
将r0放入NM-1FE-TX和WIC-2T;

Ospf路由配置,并于外界相连通。_第2张图片
配置ip地址;

将r1和r2拓展—>NM-1FE-TX
Ospf路由配置,并于外界相连通。_第3张图片
Ospf路由配置,并于外界相连通。_第4张图片
对r0进行ospf配置
Ospf 10
R0(config-if)#exit
R0(config)#router ospf 10
R0(config-router)#net
R0(config-router)#network 172.16.1.0 0.0.0.3 area 0
R0(config-router)#network 172.16.2.0 0.0.0.3 area 0
R0(config-router)#network 192.168.1.0 0.0.0.255 area 0
R0(config-router)#end

Ospf路由配置,并于外界相连通。_第5张图片
Show ip route:R0
Gateway of last resort is not set

 162.1.0.0/24 is subnetted, 1 subnets

C 162.1.1.0 is directly connected, Serial0/3/0
172.16.0.0/24 is subnetted, 3 subnets
C 172.16.1.0 is directly connected, FastEthernet0/1
C 172.16.2.0 is directly connected, FastEthernet0/0
O 172.16.3.0 [110/2] via 172.16.2.2, 00:04:23, FastEthernet0/0
[110/2] via 172.16.1.2, 00:04:23, FastEthernet0/1
C 192.168.1.0/24 is directly connected, FastEthernet1/0
O 192.168.2.0/24 [110/2] via 172.16.2.2, 00:04:01, FastEthernet0/0
O 192.168.3.0/24 [110/2] via 172.16.1.2, 00:06:01, FastEthernet0/1
R0#

R3#show ip route
172.16.0.0/30 is subnetted, 3 subnets
C 172.16.1.0 is directly connected, FastEthernet0/1
O 172.16.2.0 [110/2] via 172.16.3.1, 00:50:47, FastEthernet0/0
[110/2] via 172.16.1.1, 00:50:47, FastEthernet0/1
C 172.16.3.0 is directly connected, FastEthernet0/0
O 192.168.1.0/24 [110/2] via 172.16.1.1, 00:50:47, FastEthernet0/1
O 192.168.2.0/24 [110/2] via 172.16.3.1, 00:51:07, FastEthernet0/0
C 192.168.3.0/24 is directly connected, FastEthernet1/0
O*E2 0.0.0.0/0 [110/1] via 172.16.1.1, 00:50:47, FastEthernet0/1

R1#show ip route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

 162.1.0.0/24 is subnetted, 1 subnets

C 162.1.1.0 is directly connected, Serial0/3/0
172.16.0.0/30 is subnetted, 3 subnets
C 172.16.1.0 is directly connected, FastEthernet0/1
C 172.16.2.0 is directly connected, FastEthernet0/0
O 172.16.3.0 [110/2] via 172.16.2.2, 00:42:09, FastEthernet0/0
[110/2] via 172.16.1.2, 00:42:09, FastEthernet0/1
C 192.168.1.0/24 is directly connected, FastEthernet1/0
O 192.168.2.0/24 [110/2] via 172.16.2.2, 00:42:09, FastEthernet0/0
O 192.168.3.0/24 [110/2] via 172.16.1.2, 00:42:09, FastEthernet0/1
S* 0.0.0.0/0 is directly connected, Serial0/3/0

二、 实验结果:
PING R2
Ospf路由配置,并于外界相连通。_第6张图片
Ping r1
Ospf路由配置,并于外界相连通。_第7张图片
三、 实验心得:
在整个实验的过程中。主要设置路由的ip,添加opsf地址,掌握opsf的基本理论,另外了解了路由与外部链接的方法,但在实验的过程中还是不够熟悉,在课后还要多加练习,提高试验的效率。

你可能感兴趣的:(路由器,路由配置,ospf,ospf路由与外界相)