路由与交换实训报告 Document serial number【KKGB-LBS98YT-BS8CB-BSUT-BST108】苏州市职业大学实习(实训)报告名称交换与路由技术2011年12月29日至2011年12月30日共1周院系计算机工程系班级 10网络安全(CIW)姓名胡帅帅系主任李金祥教研室主任谭方勇指导教师方立刚、高小惠苏州市职业大学实习(实训)任务书名称:路由与交换起讫时间:2011年12月29日~2011年12月30日院系:计算机工程系班级: 10网络安全指导教师:方立刚、高小惠系主任:李金祥实验要求:1、根据拓朴图分别在S2126和S3550创建相应VLAN ,并在S2126上将F0/10-15加入VLAN2,将F0/16-20加入VLAN4,在S3550上将F0/10-12加入VLAN32、在两台交换机之间配置实现冗余链路,解决环路问题3、S3550通过SVI 方式和RA 互连4、S3550配置实现VLAN 间互连5、RA 和RB 之间采用PPP 链路,采用PAP 方式进行验证提高链路的安全性。
6、在全网运应RIPV2实现全网互连。
7、通过访问列表控制所有人可以正常访问服务器,只有VLAN4不可以访问FTP 服务。
8、通过相关命令显示相关配置结果,并进行验证三、实习(实训)方式■ 集中 □ 分散 □ 校内 □ 校外F0 S0S0F0ABF0/5 VLAN1F0/5VLAN2 VLAN4S2126S3550 RA:30 F 30 FS3550 : VLAN3=FTPserverVLAN3F0/6 F0/6五、实习(实训)报告内容(有指导书的可省略)项目一、交换机基本配置、交换机的远程登陆一.实训要求通过实训熟悉配置环境,学会交换机的基本配置方法和交换机的远程登陆。
二.实训步骤,1-2和1-3所示:图1-1:新建连接图1-2:连接到bbc图1-3:打开超级终端End with CNTL/Z.SwitchA(config)# End with CNTL/Z.switchA(config)#no ip domain-lookup2005-02-20 17:02:54 @5-CONFIG:Configured from outbandswitchA(config)#int fa 0/12005-02-20 17:03:47 @5-CONFIG:Configured from outbandswitchA(config-if)#speed 1002005-02-20 17:04:00 @5-CONFIG:Configured from outbandswitchA(config-if)#duplex full2005-02-20 17:04:09 @5-CONFIG:Configured from outbandswitchA(config-if)#exitswitchA(config)#int vlan 12005-02-20 17:18:16 @5-CONFIG:Configured from outband 2005-02-20 17:18:42 @5-CONFIG:Configured from outband switchA(config-if)#exit.Current configuration : 453 bytes!version!enable services web-serverhostname switchAvlan 1!vlan 2!enable secret level 15 5 $2,1u_;C3&-8U0<D4'.tj9=GQ+/7R:>H !interface fastEthernet 0/1speed 100duplex full!interface vlan 1no shutdown!interface vlan 2!snmp-server community public roline vtyexec-timeout 1000!line console 0exec-timeout 30!endswitchA#switchA#show interface vlan% Incomplete command.switchA#show interface vlan 1Interface : Vlan 1Description :AdminStatus : upOperStatus : downHardware : -Mtu : 1500LastChange : 0d:0h:0m:0sARP Timeout : 3600 secManagementStatus:EnabledswitchA#switchA#show interface fa 0/1Interface : FastEthernet100BaseTX 0/1Description :AdminStatus : upOperStatus : downHardware : 10/100BaseTXMtu : 1500LastChange : 0d:0h:0m:0sAdminDuplex : FullOperDuplex : UnknownAdminSpeed : 100OperSpeed : UnknownFlowControlAdminStatus : OffFlowControlOperStatus : OffPriority : 0Broadcast blocked :DISABLEUnknown multicast blocked :DISABLEUnknown unicast blocked :DISABLEswitchA#switchA#show mac-address-tableVlan MAC Address Type Interface---------- -------------------- -------- -------------------switchA#switchA#show versionSystem description : Red-Giant Gigabit Intelligent Switch(S2126G) By Ruijie NetworkSystem uptime : 0d:3h:44m:25sSystem hardware version :System software version : (2) Build Aug 31 2005 ReleaseSystem BOOT version : RG-S2126G-BOOT 03-02-02System CTRL version : RG-S2126G-CTRL 03-08-02Running Switching Image : Layer2switchA#show clockSystem clock : 2005-02-20 17:31:58 SundayswitchA#show configUsing 181 out of 6291456 bytes!version!enable services web-serverhostname S2126-2vlan 1!enable secret level 15 5 $2;C,tZ[30<D+S(\49=G1X)sQ:>*T!snmp-server community public roendswitchA#2. 交换机的远程登陆SwitchA(config)#line console 0SwitchA(config-line)#line vty 0 4SwitchA(config-line)#enable secret tcySwitchA(config)#enable password tcy三.项目小结通过实验,我基本掌握了交换机的基本配置方法,也学会了交换机的远程登陆。
但还有很多不足的地方,希望可以通过今后的上级操作来逐渐完善自己。
项目二、路由器实现不同VLAN之间互通一.实训要求通过实训掌握交换机VLAN的划分,跨交换机实现相同VLAN的互通和路由器实现不同VLAN之间的通信。
二.实训步骤1. 交换机VLAN的划分SwitchA(config)#SwitchA#%SYS-5-CONFIG_I: Configured from console by consoleSwitchA#conf tEnter configuration commands, one per line. End with CNTL/Z.SwitchA(config)#exitSwitchA#conf tSwitchA(config)#vlan 10SwitchA(config-vlan)#exitSwitchA(config)#vlan 20SwitchA(config-vlan)#exitSwitchA(config)#vlan 30SwitchA(config-vlan)#exitSwitchA(config)#vlan 40SwitchA(config-vlan)#exitSwitchA(config)#interface range fastethernet 0/1-5SwitchA(config-if-range)#switchport access vlan 10SwitchA(config-if-range)#exitSwitchA(config)#interface range fastethernet 0/6-10SwitchA(config-if-range)#switchport access vlan 20SwitchA(config-if-range)#exitSwitchA(config)#interface range fastethernet 0/11-15SwitchA(config-if-range)#switchport access vlan 30SwitchA(config-if-range)#exitSwitchA(config)#interface range fastethernet 0/16-20SwitchA(config-if-range)#switchport access vlan 40SwitchA(config-if-range)#exitSwitchA(config)#interface vlan 10SwitchA(config-if)#%LINK-5-CHANGED: Interface Vlan10, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up SwitchA(config-if)#ip addressSwitchA(config-if)#exitSwitchA(config)#interface vlan 20SwitchA(config-if)#ip addressSwitchA(config-if)#exitSwitchA(config)#interface vlan 30SwitchA(config-if)#ip addressSwitchA(config-if)#exitSwitchA(config)#interface vlan 40SwitchA(config-if)#ip addressSwitchA(config-if)#exitSwitchA(config)#%SYS-5-CONFIG_I: Configured from console by consoleSwitchA#2.跨交换机实现相同VLAN的互通Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#host SwitchBSwitchB(config)#vlan 10SwitchB(config-vlan)#exitSwitchB(config)#vlan 20SwitchB(config-vlan)#exitSwitchB(config)#interface range fastethernet 0/1-5SwitchB(config-if-range)#switchport access vlan 10SwitchB(config-if-range)#exitSwitchB(config)#interface range fastethernet 0/6-10SwitchB(config-if-range)#switchport access vlan 20SwitchB(config-if-range)#exitSwitchB(config)#interface vlan 10SwitchB(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up SwitchB(config-if)#exitSwitchB(config)#interface vlan 30SwitchB(config-if)#interface vlan 20%LINK-5-CHANGED: Interface Vlan20, changed state to upSwitchB(config-if)# % Incomplete command.SwitchB(config-if)#exit实验结果如图2-1所示:图2-1:跨交换机实现相同VLAN的互通3.路由器实现不同VLAN之间的通信(1)拓扑图将主机A和B划分到VLAN2(将交换机端口1-4划分到VLAN2)中,接在交换机端口2和4con上;将主机C和D划分到VLAN3(将交换机端口9-12划分到VLAN3)中,接在交换机端口10和12上;路由器的FASTETHERNET 0接在交换机的端口6上,将交换机端口6设为主干模式。