计算机网络实验四路由器的配置.docx

上传人:b****6 文档编号:7541639 上传时间:2023-05-11 格式:DOCX 页数:14 大小:16.60KB
下载 相关 举报
计算机网络实验四路由器的配置.docx_第1页
第1页 / 共14页
计算机网络实验四路由器的配置.docx_第2页
第2页 / 共14页
计算机网络实验四路由器的配置.docx_第3页
第3页 / 共14页
计算机网络实验四路由器的配置.docx_第4页
第4页 / 共14页
计算机网络实验四路由器的配置.docx_第5页
第5页 / 共14页
计算机网络实验四路由器的配置.docx_第6页
第6页 / 共14页
计算机网络实验四路由器的配置.docx_第7页
第7页 / 共14页
计算机网络实验四路由器的配置.docx_第8页
第8页 / 共14页
计算机网络实验四路由器的配置.docx_第9页
第9页 / 共14页
计算机网络实验四路由器的配置.docx_第10页
第10页 / 共14页
计算机网络实验四路由器的配置.docx_第11页
第11页 / 共14页
计算机网络实验四路由器的配置.docx_第12页
第12页 / 共14页
计算机网络实验四路由器的配置.docx_第13页
第13页 / 共14页
计算机网络实验四路由器的配置.docx_第14页
第14页 / 共14页
亲,该文档总共14页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

计算机网络实验四路由器的配置.docx

《计算机网络实验四路由器的配置.docx》由会员分享,可在线阅读,更多相关《计算机网络实验四路由器的配置.docx(14页珍藏版)》请在冰点文库上搜索。

计算机网络实验四路由器的配置.docx

计算机网络实验四路由器的配置

天津理工大学实验报告

学院(系)名称:

计算机与通信工程学院

姓名

学号

专业

计算机科学与技术(中加)

班级

教学2班

实验项目

实验四:

路由器的配置

课程名称

计算机网络

课程代码

0662016

实验时间

2015年6月25日第7、8节

实验地点

7-219

批改意见

成绩

 

教师签字:

(一)实验目的:

掌握利用超级终端配置路由器时的连接和参数设置;掌握路由器的常见模式及其转换命令;掌握用配置向导配置路由器的步骤和方法;掌握检查路由器配置和状态的路由器命令。

掌握路由器配置文件管理方法,掌握静态路由和动态路由的配置方法。

(二)实验环境:

软件环境:

Windows2000/XP

硬件环境:

IBM-PC或兼容机

局域网、PC机连入Internet

(三)实验学时:

2学时,必做.

(四)实验要求:

利用超级终端进行路由器的配置,记录配置过程,在实验报告中注明各种命令的功能。

进行网络地址规划,配置路由器;检查路由器配置。

掌握路由协议的种类和特点。

掌握静态路由、默认路由的配置方法。

掌握查看路由条目的方法,并验证路由的作用。

(6)实验步骤:

1.设计并连接网络。

2.连接主机与路由器。

3.配置各个接口。

4.最后配置路由表。

配置RIP:

#

rip1

version2

network0.0.0.0

#

路由表:

[r1]displayiprouting-table

RoutingTables:

Public

Destinations:

10Routes:

10

Destination/MaskProtoPreCostNextHopInterface

20.0.1.0/24Direct0020.0.1.1Eth0/0

20.0.1.1/32Direct00127.0.0.1InLoop0

20.0.2.0/24Direct0020.0.2.1S2/0

20.0.2.1/32Direct00127.0.0.1InLoop0

20.0.2.2/32Direct0020.0.2.2S2/0

20.0.3.0/24RIP100120.0.2.2S2/0

20.0.4.0/24RIP100120.0.2.2S2/0

20.0.5.0/24RIP100220.0.2.2S2/0

127.0.0.0/8Direct00127.0.0.1InLoop0

127.0.0.1/32Direct00127.0.0.1InLoop0

接口信息:

[r1]displayipintb

*down:

administrativelydown

(s):

spoofing

InterfacePhysicalProtocolIPAddressDescription

Aux0downdownunassignedAux0Inte...

Cellular0/0downdownunassignedCellular0...

Eth0/0upup20.0.1.1Ethernet0...

Eth0/1downdownunassignedEthernet0...

S1/0downdownunassignedSerial1/0...

S2/0upup20.0.2.1Serial2/0...

测试连通性:

C:

\DocumentsandSettings\stud>ping20.0.5.2

Pinging20.0.5.2with32bytesofdata:

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Pingstatisticsfor20.0.5.2:

Packets:

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

Approximateroundtriptimesinmilli-seconds:

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

配置IP:

#

interfaceEthernet0/0

portlink-moderoute

ipaddress20.0.1.1255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

#

interfaceSerial1/0

link-protocolppp

#

interfaceSerial2/0

link-protocolppp

ipaddress20.0.2.1255.255.255.0

 

#

配置OSPF:

#

ospf1

area0.0.0.0

network0.0.0.0255.255.255.255

#

路由表:

[r1]displayiprouting-table

RoutingTables:

Public

Destinations:

10Routes:

10

Destination/MaskProtoPreCostNextHopInterface

20.0.1.0/24Direct0020.0.1.1Eth0/0

20.0.1.1/32Direct00127.0.0.1InLoop0

20.0.2.0/24Direct0020.0.2.1S2/0

20.0.2.1/32Direct00127.0.0.1InLoop0

20.0.2.2/32Direct0020.0.2.2S2/0

20.0.3.0/24OSPF10157220.0.2.2S2/0

20.0.4.0/24OSPF10312420.0.2.2S2/0

20.0.5.0/24OSPF10312520.0.2.2S2/0

127.0.0.0/8Direct00127.0.0.1InLoop0

127.0.0.1/32Direct00127.0.0.1InLoop0

接口信息:

[r1]displayipintb

*down:

administrativelydown

(s):

spoofing

InterfacePhysicalProtocolIPAddressDescription

Aux0downdownunassignedAux0Inte...

Cellular0/0downdownunassignedCellular0...

Eth0/0upup20.0.1.1Ethernet0...

Eth0/1downdownunassignedEthernet0...

S1/0downdownunassignedSerial1/0...

S2/0upup20.0.2.1Serial2/0...

测试连通性:

C:

\DocumentsandSettings\stud>ping20.0.5.2

Pinging20.0.5.2with32bytesofdata:

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Pingstatisticsfor20.0.5.2:

Packets:

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

Approximateroundtriptimesinmilli-seconds:

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

配置静态路由:

[R1]iprout

[R1]iproute-static20.0.3.0255.255.255.020.0.2.2

[R1]iprout

[R1]iproute-static20.0.4.0255.255.255.020.0.2.2

[R1]iprout

[R1]iproute-static20.0.5.0255.255.255.020.0.2.2

测试连通性:

[R1]ping20.0.5.2

PING20.0.1.1:

56databytes,pressCTRL_Ctobreak

Replyfrom20.0.1.1:

bytes=56Sequence=1ttl=255time=25ms

Replyfrom20.0.1.1:

bytes=56Sequence=2ttl=255time=24ms

Replyfrom20.0.1.1:

bytes=56Sequence=3ttl=255time=25ms

Replyfrom20.0.1.1:

bytes=56Sequence=4ttl=255time=25ms

Replyfrom20.0.1.1:

bytes=56Sequence=5ttl=255time=24ms

---20.0.1.1pingstatistics---

5packet(s)transmitted

5packet(s)received

0.00%packetloss

round-tripmin/avg/max=24/24/25ms

 

R2:

配置RIP:

#

rip1

version2

network0.0.0.0

#

路由表:

[H3C-rip-1]displayiprouting-table

RoutingTables:

Public

Destinations:

12Routes:

12

Destination/MaskProtoPreCostNextHopInterface

20.0.1.0/24RIP100120.0.2.1S2/0

20.0.2.0/24Direct0020.0.2.2S2/0

20.0.2.1/32Direct0020.0.2.1S2/0

20.0.2.2/32Direct00127.0.0.1InLoop0

20.0.3.0/24Direct0020.0.3.1Eth0/0

20.0.3.1/32Direct00127.0.0.1InLoop0

20.0.4.0/24Direct0020.0.4.1S1/0

20.0.4.1/32Direct00127.0.0.1InLoop0

20.0.4.2/32Direct0020.0.4.2S1/0

20.0.5.0/24RIP100120.0.4.2S1/0

127.0.0.0/8Direct00127.0.0.1InLoop0

127.0.0.1/32Direct00127.0.0.1InLoop0

接口信息:

[H3C-rip-1]displayipintb

*down:

administrativelydown

(s):

spoofing

InterfacePhysicalProtocolIPAddressDescription

Aux0downdownunassignedAux0Inte...

Cellular0/0downdownunassignedCellular0...

Eth0/0upup20.0.3.1Ethernet0...

Eth0/1downdownunassignedEthernet0...

S1/0upup20.0.4.1Serial1/0...

S2/0upup20.0.2.2Serial2/0...

测试连通性:

C:

\DocumentsandSettings\stud>ping20.0.5.2

Pinging20.0.5.2with32bytesofdata:

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Pingstatisticsfor20.0.5.2:

Packets:

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

Approximateroundtriptimesinmilli-seconds:

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

配置IP:

#

interfaceEthernet0/0

portlink-moderoute

ipaddress20.0.3.1255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

#

interfaceSerial1/0

link-protocolppp

ipaddress20.0.4.1255.255.255.0

#

interfaceSerial2/0

link-protocolppp

ipaddress20.0.2.2255.255.255.0

#

配置OSPF:

#

ospf1

area0.0.0.0

network0.0.0.0255.255.255.255

#

路由表:

[H3C]displayiprouting-table

RoutingTables:

Public

Destinations:

12Routes:

12

Destination/MaskProtoPreCostNextHopInterface

20.0.1.0/24OSPF10156320.0.2.1S2/0

20.0.2.0/24Direct0020.0.2.2S2/0

20.0.2.1/32Direct0020.0.2.1S2/0

20.0.2.2/32Direct00127.0.0.1InLoop0

20.0.3.0/24Direct0020.0.3.1Eth0/0

20.0.4.0/24Direct0020.0.4.1S1/0

20.0.4.1/32Direct00127.0.0.1InLoop0

20.0.4.2/32Direct0020.0.4.2S1/0

20.0.5.0/24OSPF10156320.0.4.2S1/0

127.0.0.0/8Direct00127.0.0.1InLoop0

127.0.0.1/32Direct00127.0.0.1InLoop0

接口信息:

[H3C]displayipintb

*down:

administrativelydown

(s):

spoofing

InterfacePhysicalProtocolIPAddressDescription

Aux0downdownunassignedAux0Inte...

Cellular0/0downdownunassignedCellular0...

Eth0/0upup20.0.3.1Ethernet0...

Eth0/1downdownunassignedEthernet0...

S1/0upup20.0.4.1Serial1/0...

S2/0upup20.0.2.2Serial2/0...

测试连通性:

C:

\DocumentsandSettings\stud>ping20.0.5.2

Pinging20.0.5.2with32bytesofdata:

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Replyfrom20.0.5.2:

bytes=32time=36msTTL=253

Pingstatisticsfor20.0.5.2:

Packets:

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

Approximateroundtriptimesinmilli-seconds:

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

配置静态路由:

[R2]iprout

[R2]iproute-static20.0.1.0255.255.255.020.0.2.2

[R2]iprout

[R2]iproute-static20.0.5.0255.255.255.020.0.2.2

测试连通性:

[R2]ping20.0.5.2

PING20.0.5.2:

56databytes,pressCTRL_Ctobreak

Replyfrom20.0.5.2:

bytes=56Sequence=1ttl=127time=25ms

Replyfrom20.0.5.2:

bytes=56Sequence=2ttl=127time=25ms

Replyfrom20.0.5.2:

bytes=56Sequence=3ttl=127time=24ms

Replyfrom20.0.5.2:

bytes=56Sequence=4ttl=127time=25ms

Replyfrom20.0.5.2:

bytes=56Sequence=5ttl=127time=25ms

 ---20.0.5.2pingstatistics---

5packet(s)transmitted

5packet(s)received

0.00%packetloss

round-tripmin/avg/max=24/24/25ms

 

R3:

配置RIP:

#

rip1

version2

network0.0.0.0

#

路由表:

[H3C]displayiprouting-table

RoutingTables:

Public

 Destinations:

10Routes:

10

Destination/MaskProtoPreCostNextHopInterface

20.0.1.0/24OSPF10312520.0.4.1S1/0

20.0.2.0/24OSPF10312420.0.4.1S1/0

20.0.3.0/24OSPF10157220.0.4.1S1/0

20.0.4.0/24Direct0020.0.4.2S1/0

20.0.4.1/32Direct0020.0.4.1S1/0

20.0.4.2/32Direct00127.0.0.1InLoop0

20.0.5.0/24Direct0020.0.5.1Eth0/0

20.0.5.1/32Direct00127.0.0.1InLoop0

127.0.0.0/8Direct00127.0.0.1InLoop0

127.0.0.1/32Direct00127.0.0.1InLoop0

接口信息:

[H3C]displayipintb

*down:

administrativelydown

(s):

spoofing

InterfacePhysicalProtocolIPAddressDescription

Aux0downdownunassignedAux0Inte...

Cellular0/0downdownunassignedCellular0...

Eth0/0upup20.0.5.1Ethernet0...

Eth0/1downdown10.0.0.9Ethernet0...

S1/0upup20.0.4.2Serial1/0...

S2/0downdown2.0.0.1Serial2/0...

测试连通性:

C:

\DocumentsandSettings\stud>ping20.0.3.2

Pinging20.0.3.2with32bytesofdata:

Replyfrom20.0.3.2:

bytes=32time=36msTTL=253

Replyfrom20.0.3.2:

bytes=32time=36msTTL=253

Replyfrom20.0.3.2:

bytes=32time=36msTTL=253

Replyfrom20.0.3.2:

bytes=32time=36msTTL=253

Pingstatisticsfor20.0.3.2:

Packets:

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

Approximateroundtriptimesinmilli-seconds:

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

配置IP:

#

interfaceEthernet0/0

portlink-moderoute

ipaddress20

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 工作范文 > 行政公文

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2