当前位置:
文档之家› 计算机网络实验四_路由器的配置
计算机网络实验四_路由器的配置
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:
#
interface Serial2/0
link-protocol ppp
ip address 20.0.2.1 255.255.255.0
#
配置 OSPF:
#
ospf 1
area 0.0.0.0
network 0.0.0.0 255.255.255.255
#
路由表:
[r1]display ip routing-table
20.0.4.0/24 OSPF 10 3124 20.0.2.2 S2/0
配置 IP:
#
interface Ethernet0/0
port link-mode route
ip address 20.0.1.1 255.255.255.0
#
interface Ethernet0/1
port link-mode route
#
interface Serial1/0
link-protocol ppp
理工大学实验报告
学院(系)名称:计算机与通信工程学院
学号
专业
计算机科学与技术(中加)
班级
教学2班
实验项目
实验四:路由器的配置
课程名称
计算机网络
课程代码
0662016
实验时间
2015年6月25日 第7、8节
实验地点
7-219
批改意见
成绩
教师签字:
(一)实验目的:
掌握利用超级终端配置路由器时的连接和参数设置;掌握路由器的常见模式及其转换命令;掌握用配置向导配置路由器的步骤和方法;掌握检查路由器配置和状态的路由器命令。掌握路由器配置文件管理方法,掌握静态路由和动态路由的配置方法。
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
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
(6)实验步骤:
1.设计并连接网络。
2.连接主机与路由器。
3.配置各个接口。
4.最后配置路由表。
配置RIP:
#
rip 1
version 2
network 0.0.0.0
#
路由表:
[r1]display ip routing-table
Routing Tables: Public
Destinations : 10 Routes : 10
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
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
Routing Tables: Public
tinations : 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
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
(二)实验环境:
软件环境:Windows 2000/XP
硬件环境:IBM-PC或兼容机
局域网、PC机连入Internet
(三)实验学时:2学时,必做.
(四)实验要求:
利用超级终端进行路由器的配置,记录配置过程,在实验报告中注明各种命令的功能。进行网络地址规划,配置路由器;检查路由器配置。掌握路由协议的种类和特点。掌握静态路由、默认路由的配置方法。掌握查看路由条目的方法,并验证路由的作用。
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 OSPF 10 1572 20.0.2.2 S2/0