计算机网络实验四路由器的配置.docx
- 文档编号:25981924
- 上传时间:2023-06-16
- 格式:DOCX
- 页数:52
- 大小:29.02KB
计算机网络实验四路由器的配置.docx
《计算机网络实验四路由器的配置.docx》由会员分享,可在线阅读,更多相关《计算机网络实验四路由器的配置.docx(52页珍藏版)》请在冰豆网上搜索。
计算机网络实验四路由器的配置
.
天津理工大学实验报告
学院(系)名称:
计算机与通信工程学院
学号专业计算机科学与技术(中加)
班级教学2班实验项目实验四:
路由器的配置
课程名称计算机网络课程代码0662016
实验时间2015年6月25日第7、8节实验地点7-219
批改意见成绩
教师签字:
(一)实验目的:
掌握利用超级终端配置路由器时的连接和参数设置;掌握路由器的常见模式及其转换命令;掌握用配
置向导配置路由器的步骤和方法;掌握检查路由器配置和状态的路由器命令。
掌握路由器配置文件管理方法,掌握静态路由和动态路由的配置方法。
(二)实验环境:
软件环境:
Windows2000/XP
硬件环境:
IBM-PC或兼容机
局域网、PC机连入Internet
(三)实验学时:
2学时,必做.
(四)实验要求:
利用超级终端进行路由器的配置,记录配置过程,在实验报告中注明各种命令的功能。
进行网络地址规划,配置路由器;检查路由器配置。
掌握路由协议的种类和特点。
掌握静态路由、默认路由的配置方法。
掌握查看路由条目的方法,并验证路由的作用。
(六)实验步骤:
1.设计并连接网络。
2.连接主机与路由器。
3.配置各个接口。
4.最后配置路由表。
配置RIP:
#
.
.
rip1
version2
network0.0.0.0
#
路由表:
[r1]displayiprouting-table
RoutingTables:
Public
Destinations:
10
Routes:
10
Destination/Mask
Proto
Pre
Cost
NextHop
Interface
20.0.1.0/24
Direct0
0
20.0.1.1
Eth0/0
20.0.1.1/32
Direct0
0
127.0.0.1
InLoop0
20.0.2.0/24
Direct0
0
20.0.2.1
S2/0
20.0.2.1/32
Direct0
0
127.0.0.1
InLoop0
20.0.2.2/32
Direct0
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
Direct0
0
127.0.0.1
InLoop0
127.0.0.1/32
Direct0
0
127.0.0.1
InLoop0
接口信息:
[r1]displayipintb
*down:
administrativelydown
(s):
spoofing
Interface
PhysicalProtocolIPAddress
Description
Aux0
down
down
unassigned
Aux0Inte...
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:
\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/24
Direct0
0
20.0.1.1
Eth0/0
20.0.1.1/32
Direct0
0
127.0.0.1
InLoop0
20.0.2.0/24
Direct0
0
20.0.2.1
S2/0
20.0.2.1/32
Direct0
0
127.0.0.1
InLoop0
20.0.2.2/32
Direct0
0
20.0.2.2
S2/0
20.0.3.0/24
OSPF
10
1572
20.0.2.2
S2/0
20.0.4.0/24
OSPF
10
3124
20.0.2.2
S2/0
20.0.5.0/24
OSPF
10
3125
20.0.2.2
S2/0
127.0.0.0/8
Direct0
0
127.0.0.1
InLoop0
127.0.0.1/32
Direct0
0
127.0.0.1
InLoop0
接口信息:
[r1]displayipintb
*down:
administrativelydown
(s):
spoofing
Interface
PhysicalProtocolIPAddress
Description
Aux0
down
down
unassigned
Aux0Inte...
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:
\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:
12
Routes:
12
Destination/Mask
Proto
Pre
Cost
NextHop
Interface
20.0.1.0/24
RIP
100
1
20.0.2.1
S2/0
20.0.2.0/24
Direct0
0
20.0.2.2
S2/0
20.0.2.1/32
Direct0
0
20.0.2.1
S2/0
20.0.2.2/32
Direct0
0
127.0.0.1
InLoop0
20.0.3.0/24
Direct0
0
20.0.3.1
Eth0/0
20.0.3.1/32
Direct0
0
127.0.0.1
InLoop0
20.0.4.0/24
Direct0
0
20.0.4.1
S1/0
20.0.4.1/32
Direct0
0
127.0.0.1
InLoop0
20.0.4.2/32
Direct0
0
20.0.4.2
S1/0
20.0.5.0/24
RIP
100
1
20.0.4.2
S1/0
127.0.0.0/8
Direct0
0
127.0.0.1
InLoop0
127.0.0.1/32
Direct0
0
127.0.0.1
InLoop0
接口信息:
[H3C-rip-1]displayipintb
*down:
administrativelydown
(s):
spoofing
.
.
Interface
PhysicalProtocolIPAddress
Description
Aux0
down
down
unassigned
Aux0Inte...
Cellular0/0
down
down
unassigned
Cellular0...
Eth0/0
up
up
20.0.3.1
Ethernet0...
Eth0/1
down
down
unassigned
Ethernet0...
S1/0
up
up
20.0.4.1
Serial1/0...
S2/0
up
up
20.0.2.2
Serial2/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:
12
Routes:
12
Destination/Mask
Proto
Pre
Cost
NextHop
Interface
20.0.1.0/24
OSPF
10
1563
20.0.2.1
S2/0
20.0.2.0/24
Direct0
0
20.0.2.2
S2/0
20.0.2.1/32
Direct0
0
20.0.2.1
S2/0
20.0.2.2/32
Direct0
0
127.0.0.1
InLoop0
20.0.3.0/24
Direct0
0
20.0.3.1
Eth0/0
20.0.4.0/24
Direct0
0
20.0.4.1
S1/0
20.0.4.1/32
Direct0
0
127.0.0.1
InLoop0
20.0.4.2/32
Direct0
0
20.0.4.2
S1/0
20.0.5.0/24
OSPF
10
1563
20.0.4.2
S1/0
127.0.0.0/8
Direct0
0
127.0.0.1
InLoop0
127.0.0.1/32
Direct0
0
127.0.0.1
InLoop0
接口信息:
[H3C]displayipintb
*down:
administrativelydown
(s):
spoofing
InterfacePhysicalProtocolIPAddressDescription
Aux0downdownunassignedAux0Inte...
.
.
Cellular0/0
down
down
unassigned
Cellular0...
Eth0/0
up
up
20.0.3.1
Ethernet0...
Eth0/1
down
down
unassigned
Ethernet0...
S1/0
up
up
20.0.4.1
Serial1/0...
S2/0
up
up
20.0.2.2
Serial2/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:
10
Routes:
10
Destination/Mask
Proto
Pre
Cost
NextHop
Interface
20.0.1.0/24
OSPF
10
3125
20.0.4.1
S1/0
20.0.2.0/24
OSPF
10
3124
20.0.4.1
S1/0
20.0.3.0/24
OSPF
10
1572
20.0.4.1
S1/0
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机网络 实验 路由器 配置
![提示](https://static.bdocx.com/images/bang_tan.gif)