实验10路由器静态路由配置.doc
文本预览下载声明
课程: 计算机网络技术 实验名称: 实验十 路由器静态路由配置 日期: 姓名: 学号: 班级: 成绩:
1. 实验目的和要求:
(1)掌握静态路由的配置方法和技巧;
(2)掌握通过静态路由方式实现网络的连通性;
(3)熟悉广域网线缆的链接方式
2. 实验内容:
配置静态路由,并验证主机间的通信。
3.实验步骤:
(1)设备选择
PC 2 台;Router-PT 可扩展路由2 台;交叉线
(2)新建packet tracer 拓扑图
(3)配置路由器和计算机。
计算机A:
IP: 192.168.1.2
Submask: 255.255.255.0
Gateway: 192.168.1.1
路由器A:
f0/0的IP:192.168.1.1 为了开启该端口,端口状态port status改为On
f0/1的IP:192.168.3.1 为了开启该端口,端口状态port status改为On
路由器B:
f0/1的IP:192.168.3.2 为了开启该端口,端口状态port status改为On
f0/0的IP:192.168.2.1 为了开启该端口,端口状态port status改为On
计算机B:
IP: 192.168.2.2
Submask: 255.255.255.0
Gateway: 192.168.2.1
(4)测试计算机A和计算机B的连通性。
在计算机A中ping计算机B发现不通,为了判断在哪开始不通,所以依次ping路由器A的f0/0, f0/1,路由器B的f0/1,f0/0 。结果在哪开始出现不通?
。
同理,在计算机B中ping计算机A发现不通,为了判断在哪开始不通,所以依次ping路由器B的f0/0, f0/1,路由器A的f0/1,f0/0。结果在哪开始出现不通?
。
注意:ping后面跟的是计算机或者端口的IP地址,不同IP网段的主机ping测试(pc1 ping pc2),如果返回不可达消息,表示在正向路径上(pc1到pc2)的某一台路由器缺少到目的网络的路由,如果返回超时,表示反向路径(pc2到pc1)中的某一台路由器缺少到源地址的路由。
(5)分别在路由器A和路由器B中查看路由信息。
路由器A
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RouterA
RouterA(config)#end
RouterA#
%SYS-5-CONFIG_I: Configured from console by console
show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.3.0/24 is directly connected, FastEthernet1/0
路由器B
Router#conf t
Enter configuration comm
显示全部