当前位置:
文档之家› 网络构建实验七-2 静态路由配置(模拟器环境)
网络构建实验七-2 静态路由配置(模拟器环境)
Rb (config)# interface serial 2/0
Rb (config-if)# ip address 172.16.2.2
255.255.255.0
Rb (config-if)# no shutdown
提示信息:
%LINK-5-CHANGED: Interface Serial2/0, changed state
YES unset administratively down d
RA #show interface serial 1/2
Router#show interfaces serial 2/0
Serial2/0 is down, line protocol is down (disabled)
Hardware is HD64570
路由器是根据路由表进行选路和转发的。而路由表里就是由一条条的路由信息组成,路 由表的产生方式一般有3种:
直连路由:给路由器接口配置一个地址,路由器自动产生本接口IP所在网段的路由信息。 静态路由:在拓扑结构简单的网络中,管理员通过手工的方式配置本路由器未知网段的路由信息,从
而实现不同网络段之间的连接。 动态路由:路由器通过路由协议学习自动产生的路由信息。
F1/0 NIC2 S1/2 S1/2 R1762-7-1(Ra) DCE F1/0 172.16.1.0/24 172.16.2.0/24 172.16.3.0/24 R1762-7-2(Rb) DTE .1 .2 NIC2 .2 .1 .1
.2
注意:普通路由器和主机直接连接时,需要使用交叉线,在R1762的以太网接口支持MDI/MDIX, 使用直连线也可以连通,在模拟器中必须用交叉线连接。
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route
三、实验设备:每一实验小组提供如下实验设备
1、 实验台设备:计算机两台PC1和PC2(或者PC4和PC5) 2、 实验机柜设备: PACKET TRACER 5.3 模拟器环境
四、实验内容及技术原理:
路由器属于网络层设备,能够根据IP包头的信息,选择一条最佳路径,将数据包转发出 去,实现不同网段的主机之间的互相访问。
255.255.255.0
RA (config-if)# clock rate 64000
RA (config-if)# no shutdown
验证路由器接口的配置
RA #show ip interface brief
Router#show ip interface brief
Interface
IP-Address
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
实验报告日期:
报 告 退 发: ( 订正 、 重做 )
教 师 审 批 签 字:通过
不通过
一、:实验名称:路由器的静态路由
二、实验目的:
掌握路由器的静态路由的基本配置方法。 背景描述: 设校园网通过1台路由器连接到校园外的另一台路由器上,现要在路由器上做适当的配置, 实现校园网内部主机与校园网外部主机的相互通讯。
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 1 subnets
C
172.16.1.0 is directly connected, FastEthernet1/0
[记录实验结果]:
步骤3)、在路由器Rb上配置接口的IP地址
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
RA (config-if)# ip address 172.16.1.1
255.255.255.0
RA (config-if)# no shutdown
RA (config-if)# exit
RA (config)# interface serial 2/0
RA (config-if)# ip address 172.16.2.1
Protocol
FastEthernet0/0
unassigned
administratively down down
FastEthernet1/0
172.16.3.1
up
Serial2/0
172.16.2.2
up
Serial3/0
unassigned
administratively down down
Protocol
YES unset administratively down down
YES manual up
up
YES manual down
down
YES unset administratively down down
YES unset administratively down down
步骤2)在路由器Ra 上配置静态路由
或者:
RA (config)#ip 172.16.2.2
RA (config)#ip serial 2/0
route route
172.16.3.0 172.16.3.0
255.255.255.0 255.255.255.0
验证测试:验证ra 上的静态路由配置
RA #show ip route Router#sh ip ro Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B BGP
五、实验注意事项及要求:
1、 实验中严禁在设备端口上随意插拔线缆,如果确实需要应向老师说明征求许可。 2、 以电子文档形式提交实验报告。 3、 本次实验结果保留:是 √ 否 4、 将路由器的配置文档、验证计算机的TCP/IP配置信息保存。 5、 将路由器的配置信息以图片的形式保存到实验报告中。
六、实验用拓扑图
Internet address is 172.16.2.1/24
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
RB #show interface serial 2/0
RB#show interfaces serial 2/0 Serial2/0 is up, line protocol is up (connected)
Hardware is HD64570 Internet address is 172.16.2.2/24
RbБайду номын сангаасenable
Rb #
configure terminal
Rb (config)# interface fastethernet 1/0
Rb (config-if)# ip address 172.16.3.1
255.255.255.0
Rb (config-if)# no shutdown
Rb (config-if)# exit
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops)
FastEthernet0/0
unassigned
FastEthernet1/0
172.16.1.1
Serial2/0
172.16.2.1