计算机路由器的配置文件,计算机网络实验四:路由器的配置(11页)-原创力文档...

天津理工大学实验报告

学院(系)名称:计算机与通信工程学院

姓名学号专业计算机科学与技术(中加)

班级教学 2 班实验项目实验四:路由器的配置

课程名称计算机网络课程代码0662016

实验时间2015 年 6 月 25 日第 7、8 节实验地点7-219

批改意见成绩

教师签字:

(一)实验目的:

掌握利用超级终端配置路由器时的连接和参数设置;掌握路由器的常见模式及其转换命令;掌握用配

置向导配置路由器的步骤和方法;掌握检查路由器配置和状态的路由器命令。掌握路由器配置文件管理方法,掌握静态路由和动态路由的配置方法。

(二)实验环境:

软件环境: Windows 2000 / XP

硬件环境: IBM -PC 或兼容机

局域网、 PC 机连入 Internet

(三)实验学时:2 学时,必做 .

(四)实验要求:

利用超级终端进行路由器的配置,记录配置过程,在实验报告中注明各种命令的功能。进行网络地址规划,配置路由器;检查路由器配置。掌握路由协议的种类和特点。掌握静态路由、默认路由的配置方法。掌握查看路由条目的方法,并验证路由的作用。

(六)实验步骤:

1.设计并连接网络。

2.连接主机与路由器。

3.配置各个接口。

4.最后配置路由表。

配置 RIP:

#

rip 1

第1页共10页

version 2

network 0.0.0.0

#

路由表:

[r1]display ip routing-table

Routing Tables: Public

Destinations : 10

Routes : 10

Destination/Mask

Proto

Pre

Cost

NextHop

Interface

20.0.1.0/24

Direct 0

0

20.0.1.1

Eth0/0

20.0.1.1/32

Direct 0

0

127.0.0.1

InLoop0

20.0.2.0/24

Direct 0

0

20.0.2.1

S2/0

20.0.2.1/32

Direct 0

0

127.0.0.1

InLoop0

20.0.2.2/32

Direct 0

0

20.0.2.2

S2/0

20.0.3.0/24

RIP

100

1

20.0.2.2

S2/0

20.0.4.0/24

RIP

100

1

20.0.2.2

S2/0

20.0.5.0/24

RIP

100

2

20.0.2.2

S2/0

127.0.0.0/8

Direct 0

0

127.0.0.1

InLoop0

127.0.0.1/32

Direct 0

0

127.0.0.1

InLoop0

接口信息:

[r1]display ip int b

*down: administratively down

(s): spoofing

Interface

Physical Protocol IP Address

Description

Aux0

down

down

unassigned

Aux0 Inte...

Cellular0/0

down

down

unassigned

Cellular0...

Eth0/0

up

up

20.0.1.1

Ethernet0...

Eth0/1

down

down

unassigned

Ethernet0...

S1/0

down

down

unassigned

Serial1/0...

S2/0

up

up

20.0.2.1

Serial2/0...

测试连通性:

C:\Documents and Settings\stud>ping 20.0.5.2

Pinging 20.0.5.2 with 32 bytes of data:

Reply from 20.0.5.2: bytes=32 time=36ms TTL=253

Reply from 20.0.5.2: bytes=32 time=36ms TTL=253

Reply from 20.0.5.2: bytes=32 time=36ms TTL=253

Reply from 20.0.5.2: bytes=32 time=36ms TTL=253

Ping statistics for 20.0.5.2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 36ms, Maximum = 36ms, Average = 36ms

配置IP:

第2页共10页

#

interface Ethernet0/0

port link-mode rout

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值