比较成功的实验报告模板(单臂路由)
南海东软信息技术职业学院
课程实验报告
南海东软信息技术职业学院
计算机系网络教研室制
实验报告撰写要求
实验操作是教学过程中理论联系实际的重要环节,而实验报告的撰写又是知识系统化的吸收和升华过程,因此,实验报告应该体现完整性、规范性、正确性、有效性。现将实验报告撰写的有关内容说明如下:
1、 实验报告模板为电子版。
2、 下载统一的实验报告模板,学生自行完成撰写和打印。报告的首页包含本次实验的一般信息:
● 组 号:例如:2-5 表示第二班第5组。
● 实验日期:例如:05-10-06 表示本次实验日期。(年-月-日) …… ● 实验编号:例如:No.1 表示第一个实验。
● 实验时间:例如:3学时 表示本次实验所用的时间。
实验报告正文部分,从六个方面(目的、内容、步骤等)反映本次实验的要点、要求以及完成过程等情况。模板已为实验报告正文设定统一格式,学生只需在相应项内填充即可。续页不再需要包含首页中的实验一般信息。
3、 实验报告正文部分具体要求如下:
一、实验目的
本次实验所涉及并要求掌握的知识点。
1、 掌握单臂路由配置方法;
2、 通过单臂路由实现不同VLAN 之间的通信。
二、实验内容与实验步骤
实验内容、原理分析及具体实验步骤。
1、 实验背景
某企业办公室有两个主要部门,技术部和销售部,分处于不通的办公室,为安全和便于管理对两个部门的主机进行了VLAN 的划分,技术部和销售部分处于不通的主机能够相互访问,获得相应的资源,两个部门的交换机通过一台路由器进行了连接。
2、 技术原理
单臂路由是为了实现VLAN 间通信的三层网络设备路由器配置,它只需要一个以太接口,通过创建子接口可以承担所有VLAN 的网关,而在不同的VLAN 间转发数据。
3、 实验步骤
步骤1:绘制网络拓扑结构
图2.1 单臂路由网络拓扑结构
说明:PC0与S1,PC1与S1之间为直连线;
S1与R1之间为交叉线;
详细的接口显示如上图
步骤2:设置PC 的IP 信息
PC0的IP 信息如下:
IP 地址:192.168.1.2
子网掩码:255.255.255.0
网关:192.168.1.1
PC1的IP 信息如下:
IP 地址:192.168.2.2
子网掩码:255.255.255.0
网关:192.168.2.1
步骤3:配置二层将换机S1
Switch>
Switch>en
Switch#config t
Enter configuration commands, one per line.
Switch(config)#hostname S1
S1(config)#vlan 2
S1(config-vlan)#exit
S1(config)#vlan 3
S1(config-vlan)#exit
S1(config)#int fa 0/2
S1(config-if)#switchport access vlan 2
S1(config-if)#int fa 0/3
S1(config-if)#switchport access vlan 3
S1(config-if)#exit
S1(config)#int fa 0/1
S1(config-if)#switchport mode trunk
End with CNTL/Z.
S1(config-if)#
步骤4:查看S1的详细配置
S1#show run
Building configuration...
Current configuration : 1080 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname S1
!
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport access vlan 3
!
interface FastEthernet0/4
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
步骤5:配置路由器R1
进入命令行之后,先用CTRL+C组合键,再按ENTER 健进入用户模式。
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#int fa 0/0
R1(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#int fa 0/0.1
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up R1(config-subif)#ip address 192.168.1.1 255.255.255.0
% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.
R1(config-subif)#en
R1(config-subif)#encapsulation dot1q 2
R1(config-subif)#exit
R1(config)#int fa 0/0.2
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up R1(config-subif)#ip address 192.168.2.1 255.255.255.0
% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.
R1(config-subif)#en
R1(config-subif)#encapsulation dot1q 3
R1(config-subif)#
R1#
步骤6:查看路由器R1配置
R1#show run
Building configuration...
Current configuration : 618 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 2
ip address 192.168.1.1 255.255.255.0 !
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
步骤7:测试连通性
PC>ipconfig /all
Physical Address................: 0090.2138.B1AB
IP Address......................: 192.168.1.2
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.1
DNS Servers.....................: 0.0.0.0
PC>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=20ms TTL=255
Reply from 192.168.1.1: bytes=32 time=20ms TTL=255
Reply from 192.168.1.1: bytes=32 time=35ms TTL=255
Reply from 192.168.1.1: bytes=32 time=20ms TTL=255
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 20ms, Maximum = 35ms, Average = 23ms
PC>ping 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data:
Reply from 192.168.2.1: bytes=32 time=20ms TTL=255
Reply from 192.168.2.1: bytes=32 time=20ms TTL=255
Reply from 192.168.2.1: bytes=32 time=20ms TTL=255
Reply from 192.168.2.1: bytes=32 time=13ms TTL=255
Ping statistics for 192.168.2.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 13ms, Maximum = 20ms, Average = 18ms
PC>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=40ms TTL=127
Reply from 192.168.2.2: bytes=32 time=40ms TTL=127
Reply from 192.168.2.2: bytes=32 time=40ms TTL=127
Reply from 192.168.2.2: bytes=32 time=40ms TTL=127
Ping statistics for 192.168.2.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 40ms, Maximum = 40ms, Average = 40ms
三、实验环境
实验所使用的器件、仪器设备名称及规格。
1、 Windows7旗舰版
2、 Packet tracet5.2模拟器
1) 路由器2811一台;
2) 交换机2960一台;
3) 台式电脑两台
4) 直通线两根
5) 交叉线两根
四、实验过程与分析
根据具体实验,记录、整理相应数据表格、绘制曲线、波形图等。
详细记录在实验过程中发生的故障和问题,并进行故障分析,说明故障排除的过程及方法。
1、没有按照实验要求,将PC 的IP 、子网掩码、网关设置错误;
2、语法错误;
3、线路与接口没有接对;
4、配置了一些信息,但是没有正常显示在信息中,需要进行重新配置;
5、ping 的测试速度比用PDU 测试速度快。
五、实验结果总结
对实验结果进行分析,完成思考题目,总结实验的心得体会,并提出实验的改进意见。
经过实验,学会了
1、掌握单臂路由配置方法;
2、通过单臂路由实现不同VLAN 之间的通信。
3、路由器可以实现不同网络之间的通信。
六、附录
无