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

来源:互联网 发布:linux运维之道 pdf 编辑:程序博客网 时间:2024/05/18 03:51

一、 实验目的:
Ospf路由配置,并于外界相连通。
这里写图片描述
二、实验拓扑:

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

这里写图片描述
配置ip地址;

将r1和r2拓展—>NM-1FE-TX
这里写图片描述
这里写图片描述
对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

这里写图片描述
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
这里写图片描述
Ping r1
这里写图片描述
三、 实验心得:
在整个实验的过程中。主要设置路由的ip,添加opsf地址,掌握opsf的基本理论,另外了解了路由与外部链接的方法,但在实验的过程中还是不够熟悉,在课后还要多加练习,提高试验的效率。

1 0
原创粉丝点击