路由配置与子网划分

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

《计算机网络(II)》实验报告
实验名称:路由配置与子网划分
班级:姓名:学号:任课教师:
完成日期:2011-12-11 实验环境:计算机网络实验平台
一、实验目的
1) 熟悉路由器或路由器模拟器的基本用法
2) 设计子网划分方案,配置路由器相关接口
3) 配置静态路由,使网络连通
4) 配置动态路由协议RIP,使网络连通
二、实验内容
一、配置静态路由,实现处于两个不同网络的主机的通信
(1)进入Packet Tracer的主页面,选择三个2621XM路由器Routers1、Routers2、Routers3和两台主机PC0、PC1;
(2)配置路由器Routers1的IP,单击Routers2,进入Routers2的配置界面,为Routers2选择两个网卡;输入命令enable进入特权模式,输入config t进入配置模式,interface FastEthernet0/0表示开始为端口FastEthernet0/0配置IP,ip address 192.168.0.1 255.255.255.0为FastEthernet0/0配置好IP地址和子网掩码;同样为interface FastEthernet0/1配置IP为ip address 192.168.1.1 255.255.255.0;
(3)同理,为Routers1的端口FastEthernet0/0配置IP为ip address 192.168.2.1 255.255.255.0,端口FastEthernet0/1配置IP为ip address 192.168.0.2 255.255.255.0;为Routers3的端口FastEthernet0/0配置IP为ip address 192.168.1.2 255.255.255.0,端口FastEthernet0/1配置IP 为ip address 192.168.3.1 255.255.255.0;为主机PC0配置IP为192.168.2.2,子网掩码为255.255.255.0,默认网关为192.168.2.1;为主机PC1配置IP为192.168.3.2,子网掩码为255.255.255.0,默认网关为192.168.3.1;配置完毕后,其连接如下图所示:
图为配置静态路由的连接图
(4)输入命令ip route 为路由Routers1添加路由ip route 192.168.1.0 255.255.255.0 FastEthernet0/1;ip route 192.168.3.0 255.255.255.0 FastEthernet0/1,为Routers2添加路由ip 192.168.2.0 255.255.255.0 FastEthernet0/0;ip 192.168.3.0 255.255.255.0 FastEthernet0/1,为Routers3添加路由ip 192.168.0.0 255.255.255.0 FastEthernet0/0;ip 192.168.2.0 255.255.255.0 FastEthernet0/0。

配置完毕后,推出配置模式,输入show ip route 查看已经配置好的路由。

最后在PC0的Command Prompt 输入ping 192.168.3.2 得到的结果如:
PC>ping 192.168.3.2
Pinging 192.168.3.2 with 32 bytes of data:
Reply from 192.168.3.2: bytes=32 time=159ms TTL=125
Reply from 192.168.3.2: bytes=32 time=164ms TTL=125
Reply from 192.168.3.2: bytes=32 time=155ms TTL=125
Reply from 192.168.3.2: bytes=32 time=134ms TTL=125
Ping statistics for 192.168.3.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 134ms, Maximum = 164ms, A verage = 153ms
在PC1中的Command Prompt输入ping 192.168.2.2 得到的结果如:
PC>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Request timed out.
Reply from 192.168.2.2: bytes=32 time=166ms TTL=125
Reply from 192.168.2.2: bytes=32 time=165ms TTL=125
Reply from 192.168.2.2: bytes=32 time=158ms TTL=125
Ping statistics for 192.168.2.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 158ms, Maximum = 166ms, A verage = 163ms
二、配置静态路由,实现处于两个不同网络的主机的通信
(1)进入Packet Tracer的主页面,选择三个2621XM路由器Routers4、Routers5、Routers6
和两台主机PC0、PC1;
(2)Routers4、Routers5、Routers6的IP配置分别与上面的静态路由Routers1、Routers2、
Routers3相同。

此处的PC0和PC1与上面的静态路由PC0、PC1相同。

其连接如下图所示:
图为配置动态路由连接图
(3)在Routers4中的RIP Routing添加network address192.168.1.0和192.168.2.0;在Routers5
中的RIP Routing添加network address192.168.0.0和192.168.1.0;在Routers6中的RIP Routing添加network address192.168.0.0和192.168.3.0。

(4)主机PC0 ping主机PC1得到结果如下:
PC>ping 192.168.3.2
Pinging 192.168.3.2 with 32 bytes of data:
Request timed out.
Reply from 192.168.3.2: bytes=32 time=161ms TTL=125
Reply from 192.168.3.2: bytes=32 time=146ms TTL=125
Reply from 192.168.3.2: bytes=32 time=136ms TTL=125
Ping statistics for 192.168.3.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 136ms, Maximum = 161ms, A verage = 147ms
(5)主机PC1 ping主机PC0得到结果如下:
PC>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=145ms TTL=125
Reply from 192.168.2.2: bytes=32 time=199ms TTL=125
Reply from 192.168.2.2: bytes=32 time=119ms TTL=125
Reply from 192.168.2.2: bytes=32 time=161ms TTL=125
Ping statistics for 192.168.2.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 119ms, Maximum = 199ms, A verage = 156ms。

相关文档
最新文档