路由交换 B10040101 王欣源.docx
《路由交换 B10040101 王欣源.docx》由会员分享,可在线阅读,更多相关《路由交换 B10040101 王欣源.docx(13页珍藏版)》请在冰豆网上搜索。
![路由交换 B10040101 王欣源.docx](https://file1.bdocx.com/fileroot1/2023-2/3/86b4c7d2-e9b6-4916-8b88-34fbb6afdef1/86b4c7d2-e9b6-4916-8b88-34fbb6afdef11.gif)
路由交换B10040101王欣源
实验报告
(2011/2012学年第一学期)
课程名称
开放实验
实验名称
网络设备路由器和交换机的配置及应用
实验时间
2011
年
11
月
6/12/13
日
指导单位
计算机实验教学中心
指导教师
彭红姣
学生姓名
王欣源
班级学号
B10040101
学院(系)
计算机学院
专业
计算机科学与技术
网络设备路由器和交换机的配置及应用
一、实验目的
掌握网络通信设备路由器和交换机的安装、连接和配置,掌握局域网的规划和组建,基本网络安全配置和访问管理。
二.实验环境
本实验是在软件Packettracer上实现网络拓扑的构建及相关设备的配置,包括路由器参数的配置,交换机参数的配置,VLAN虚拟局域网构建及配置。
三、实验要求
实验要求完成以下工作:
1.根据网络规划和设计,连接路由器和交换机,构成小型局域网互联;
2.按照网络规划,配置路由器和交换机参数,实现网络互联;
3.在基本网络互联完成的基础上,设置网络访问规则,实现安全控制;
4.根据网络规划,实现虚拟局域网VLAN的设置;
5.测试在网络互联和访问控制条件下,对网络服务的应用
掌握网络通信设备路由器和交换机的安装、连接和配置,掌握局域网的规划和组建,基本网络安全配置和访问管理。
四、实验过程(注:
以下为具体的实验配置)
1.拓扑图:
2.路由器交换机的配置过程(以下顺序可以自己按情况调整)
1.首先将装置连接好。
2.对2950型路由器进行trunk配置
interfacef0/4----交换机之间连接的接口
switchportmodetrunk
3.对3560交换机进行trunk配置
interfacef0/4
switchporttrunkencapsulationdot1q
switchportmodetrunk
在trunk配置成功的前提下进行vtp配置:
对核心交换机配置:
Switch(config)#vtpdomainNUPT
ChangingVTPdomainnamefromNULLtoNUPT
Switch(config)#vtpmode?
clientSetthedevicetoclientmode.
serverSetthedevicetoservermode.
transparentSetthedevicetotransparentmode.
Switch(config)#vtpmodeserver
DevicemodealreadyVTPSERVER.
对client路由器配置:
Switch(config)#vtpmode?
clientSetthedevicetoclientmode.
serverSetthedevicetoservermode.
transparentSetthedevicetotransparentmode.
Switch(config)#vtpmodeclient
SettingdevicetoVTPCLIENTmode.
4.在核心交换机上划分网络:
Switch(config)#vlan10
Switch(config-vlan)#nameqwe
Switch(config-vlan)#exit
Switch(config)#vlan20
Switch(config-vlan)#nameasd
Switch(config-vlan)#end
5.在2940路由器上将电脑划分到不同网络上:
Switch(config)#interfacerangef0/1-2
Switch(config-if-range)#switchportaccessvlan10
Switch(config-if-range)#end
Switch#
Switch#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)#interfacef0/3
Switch(config-if)#switchportaccessvlan20
Switch(config-if)#end
6.进行DHCP配置:
Switch(config)#interfacevlan10
%LINK-5-CHANGED:
InterfaceVlan10,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVlan10,changedstatetoup
Switch(config-if)#ipaddress1.1.10.1255.255.255.0
Switch(config-if)#exit
Switch(config)#interfacevlan20
%LINK-5-CHANGED:
InterfaceVlan20,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVlan20,changedstatetoup
Switch(config)#ipdhcppoolvlan10
Switch(dhcp-config)#network1.1.10.0255.255.255.0
Switch(dhcp-config)#default-router1.1.10.1
Switch(dhcp-config)#dns-server8.8.8.8
Switch(dhcp-config)#exit
Switch(config)#ipdhcppoolvlan20
Switch(dhcp-config)#network1.1.20.0255.255.255.0
Switch(dhcp-config)#default-router1.1.20.1
Switch(dhcp-config)#dns-server8.8.8.8
Switch(dhcp-config)#exit
Switch(config)#ipdhcpexcluded-address1.1.10.1
Switch(config)#ipdhcpexcluded-address1.1.20.1
Switch#
7.自动获取ip地址(配置文档):
Switch#showrun
Buildingconfiguration...
Currentconfiguration:
1535bytes
!
version12.2
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameSwitch
ipdhcpexcluded-address1.1.10.1
ipdhcpexcluded-address1.1.20.1
!
ipdhcppoolvlan10
network1.1.10.0255.255.255.0
default-router1.1.10.1
dns-server8.8.8.8
ipdhcppoolvlan20
network1.1.20.0255.255.255.0
default-router1.1.20.1
dns-server8.8.8.8
interfaceFastEthernet0/1
switchporttrunkencapsulationdot1q
switchportmodetrunk
!
interfaceFastEthernet0/2
switchporttrunkencapsulationdot1q
switchportmodetrunk
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
!
interfaceFastEthernet0/11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceFastEthernet0/16
!
interfaceFastEthernet0/17
!
interfaceFastEthernet0/18
!
interfaceFastEthernet0/19
!
interfaceFastEthernet0/20
!
interfaceFastEthernet0/21
!
interfaceFastEthernet0/22
!
interfaceFastEthernet0/23
!
interfaceFastEthernet0/24
!
interfaceGigabitEthernet0/1
!
interfaceGigabitEthernet0/2
!
interfaceVlan1
noipaddress
shutdown
!
interfaceVlan10
ipaddress1.1.10.1255.255.255.0
!
interfaceVlan20
ipaddress1.1.20.1255.255.255.0
!
----------------------------测试结果图-----------------------------------------------------------------------
(在下页)
(右侧类似,截图省略)
下面对各个PC机进行ping的结果如下:
(其他的省略)
在不同的vlan的划分区域中,不同的PC机之间能够互相ping通,说明实验成功。
最后的结果,个串口间全为绿色。
如图(下页)
实验小结:
对网络设备路由器和交换机的配置及应用有了一定的了解。
由于之前没有接触过,配置命令以及实验环境都不是很熟悉,做的时候顺序总是搞错,例如,在没有配置好vtp的时候就开始划分网络,没有配置trunk的时候就配置vtp。
导致总是做不出来。
多做了几次以及与同学交流讨论,上网查询相关的信息后,才渐渐的了解掌握了网络设备路由器和交换机的配置。
也熟悉了一些路由器交换机的简单配置命令。
通过这次的实验我初步认识了路由器及交换机的命令的配置。
指导老师评阅:
等级:
评阅老师:
评阅时间: