计算机网络实训5

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

计算机网络实训5

任务一(1)动态路由协议RIP及OSPF

假设北京联合大学与安格利亚鲁斯金大学的网络如下图所示,请在仿真软件中仿真路由协议的使用方法。具体学习步骤如下。(画好拓扑结构,并配置好各个接口和计算机的IP地址,请复制两份。)

拓扑图:

1.For each router perform the following tasks:

对每个路由器都完成以下任务:

Determine the current state of the router’s routing table - Router# show ip route

测试当前的路由表状态。Router# show ip route

Write down the routes it knows about.

记录路由表信息(拷屏并解释路由信息)

路由器只知道直接连接的路由,C代表直接连接,R代表RIP协议。

2.Apply the RIP routing protocol to each router, thus:

在每个路由器上使用RIP路由协议

Router(config)# router rip

Router(config-router)# (note the change in mode 注意模式上的变化)

e RIP to advertise its routing table out of all connected networks, thus:

使用RIP要发送它的路由表到所有相邻网络,因此需要如下配置:

Example for the Beijing router(使用Beijing 路由器举例)

Beijing(config-router)# network 192.168.1.0

Beijing(config-router)# network 192.168.2.0

Beijing(config-router)# network 192.168.4.0

Repeat for NewYork and Chelmsford routers but use the appropriate network

statements

在NewYork和Chelmsford 路由器上重复上述操作,但要注意使用相应的相邻网络号。

拷屏:三个路由器的RIP配置(要求用命令行方式)

4.For each router record the contents of its routing table.

记录每个路由器中路由表的内容。

拷屏并解释路由信息:

Type(模式):C代表直接连接,R代表RIP协议Network:目的网络

Port:接口

Next Hop IP:下一跳地址

Metric:量度

5.What route does the packet from Beijing PC1 take to reach ARU_PC1?

Beijing PC1发出的分组从什么路由到达ARU_PC1?

请回答:

经路由器BeiJing和路由器Chelmsford到达PC1

6.Enter simulation mode by clicking on the Simulation tab.

单击Simulation项,进入仿真模式

7.Click on Edit filters and deselect all filters leaving RIP on. (this will only show RIP

traffic)

单击Edit filters,只留下RIP,其他协议都不选。

8.Activate the simulation by clicking on the PLAY tab.

单击PLAY 激活仿真。

9.Wait for a number of RIP updates to occur then STOP the simulation and examine the

packets RIP data.

等待产生了几个RIP更新信息后,停止仿真,检查RIP数据包。

You should note that each router is broadcasting its own routing table and receiving similar packets from its neighbours.

你将发现每个路由器都广播自己的路由表到相邻路由器,并接收相邻路由器发的

路由表。

The received packets will show the distance (metric) to each network it knows about. Each router will then choose the lowest cost to a particular network and add it to its routing table.

接收到的分组里有它知道的到每个网络的距离。每个路由器将选择到每个网络的最低开销,然后将其加入到路由表中。 拷屏 检查RIP 的信息

10.You should observe that that during the simulation RIP packets were not only sent to

neighbouring routers but also sent to their respective LANs. This is because packets are broadcast out of all networks even though none of the end devices on the LAN can interpret these messages. You can prevent updates being sent to these interfaces by using the passive-interface command, thus:

你会观察到在仿真RIP分组期间,这些分组不仅送到相邻路由器,而且也发送到它们各自的局域网,这是因为这些分组是广播到所有相邻网络甚至局域网的终端设备。你可以阻止在这些端口上发送路由更新信息,用assive-interface 命令。

router(config-router)# passive-interface fa0/0

If you simulate the network again you should now see these packets being blocked.

如果你再仿真,你就发现这些分组被阻止了。

单击Simulation项,进入仿真模式拷屏

11.在路由器上使用debug ip rip 命令,可以进一步查看路由器接收到的路由更新信

息和发送出去的路由更新信息。

router# debug ip rip

删除该命令方法:

router# no debug ip rip

相关文档
最新文档