计算机网络实验 电子科技大学

上传人:xins****2008 文档编号:108403334 上传时间:2019-10-23 格式:DOC 页数:36 大小:405.39KB
返回 下载 相关 举报
计算机网络实验 电子科技大学_第1页
第1页 / 共36页
计算机网络实验 电子科技大学_第2页
第2页 / 共36页
计算机网络实验 电子科技大学_第3页
第3页 / 共36页
计算机网络实验 电子科技大学_第4页
第4页 / 共36页
计算机网络实验 电子科技大学_第5页
第5页 / 共36页
点击查看更多>>
资源描述

《计算机网络实验 电子科技大学》由会员分享,可在线阅读,更多相关《计算机网络实验 电子科技大学(36页珍藏版)》请在金锄头文库上搜索。

1、实验报告课程名称:计算机网络基础学院:计算机科学与工程专业:计算机科学与技术学生姓名:郭小明学号:2011060100010实验成绩:日期:2013 年 6 月 7 日电 子 科 技 大 学实 验 报 告 实验一:交换机的基本配置 一、实验室:软件工程实验室 实验日期:6月7日二、实验目的: 掌握交换机命令行各种操作模式的区别,能够使用各种帮助信息,以及用命令进行基本的配置。3、 实验原理: 交换机的管理方式基本分为两种:带内管理和带外管理。通过交换机的Console口管理交换机属于带外管理,不占用交换机的网络接口,其特点是需要使用配置线缆,近距离配置。第一次配置交换机时必须利用Console

2、端口进行配置。交换机的命令行操作模式,主要包括:用户模式、特权模式、全局配置模式、端口模式等几种。四、实验器材: PC + Cisco Packet Tracer 5.3.1五、实验步骤: 在模拟软件上建立交换机,然后进行配置操作。 (1)进入特权模式,配置主机名和每日提示信息,依次执行下面的操作 Switchenable Switch#configure terminal Switch(config)#hostname 2011060100010-sw 2011060100010-sw(config)#banner motd $ Enter TEXT message. End with th

3、e character $. Welcome to 2011060100010-sw. Please do your experiments follow your teachers advice.Thank you! $(2)配置接口状态(配置的是接口5) 2011060100010-swenable 2011060100010-sw#configure terminal Enter configuration commands, one per line. End with CNTL/Z.2011060100010-sw(config-if)#interface fastEthernet

4、0/52011060100010-sw(config-if)#speed 102011060100010-sw(config-if)#duplex half2011060100010-sw(config-if)#no shutdown2011060100010-sw(config-if)#description This is accessport,thank you2011060100010-sw(config-if)#end (3)保存配置 2011060100010-sw#copy running-config startup-config2011060100010-sw#write m

5、emory2011060100010-sw#write六、实验数据及结果分析:(配置的是接口5)2011060100010-sw#show running-configBuilding configuration.Current configuration : 1197 bytes!version 12.1no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname 2011060100010-sw!interface

6、 FastEthernet0/1!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5 description This is accessport,thank you duplex half speed 10!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface Fas

7、tEthernet0/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 FastEt

8、hernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet1/1!interface GigabitEthernet1/2!interface Vlan1 no ip address shutdown!banner motd CWelcome to 2011060100010-sw. Please do your experiments follow your teachers advice.Thank you!C!li

9、ne con 0!line vty 0 4 loginline vty 5 15 login!end 实验2 跨交换机实现VLAN 一、实验室名称: 软件工程实验室 实验时间: 6 月 7 日 二、实验目的: 掌握如何在交换机上划分基于端口的VLAN、如何给VLAN内添加端口,理解跨交换机之间VLAN的特点。三、实验原理: VLAN(Virtual Local Area Network,虚拟局域网)是指在一个物理网段内,进行逻辑的划分,划分成若干个虚拟局域网。VLAN最大的特性是不受物理位置的限制,可以进行灵活的划分。VLAN具备了一个物理网段所具备的特性。相同VLAN内的主机可以互相直接访问

10、,不同VLAN间的主机之间互相访问必须经由路由设备进行转发。广播数据包只可以在本VLAN内进行传播,不能传输到其他VLAN中。四、实验内容:假设某企业有两个主要部门:销售部和技术部,其中销售部门的个人计算机系统连接在不同的交换机上,他们之间需要相互进行通信,但为了数据安全起见,销售部和技术部需要进行相互隔离,现要在交换机上做适当配置来实现这一目标。通过划分Port VLAN实现交换机的端口隔离,然后使在同一VLAN里的计算机系统能跨交换机进行相互通信,而在不同VLAN里的计算机系统不能进行相互通信。五、实验器材(设备、元器件): PC + Cisco Packet Tracer 5.3.1六、

11、实验步骤: 第一步:配置两台交换机的主机名SwitchenableSwitch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname Two-SWTwo-SW(config)#SwitchenableSwitch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname Three-SWThree-SW

12、(config)# 第二步:在三层交换机上划分VLAN 添加端口 Three-SW(config)#vlan 9Three-SW(config-vlan)#name xiaoshouThree-SW(config)#vlan 19Three-SW(config-vlan)#name jishuThree-SW(config-vlan)#exitThree-SW(config)#interface range fastEthernet 0/5-9Three-SW(config-if-range)#switchport mode accessThree-SW(config-if-range)#sw

13、itchport access vlan 9Three-SW(config-if-range)#exitThree-SW(config)#interface range fastEthernet 0/10-14Three-SW(config-if-range)#switchport mode accessThree-SW(config-if-range)#switchport access vlan 20% Access VLAN does not exist. Creating vlan 20Three-SW(config-if-range)#exitThree-SW(config)#int

14、erface range fastEthernet 0/10-14Three-SW(config-if-range)#switchport mode access Three-SW(config-if-range)#switchport access vlan 19Three-SW(config-if-range)#exit 第三步:在二层交换机上划分VLAN添加端口Two-SWenableTwo-SW#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Two-SW(config)#vlan 9 Two-SW(config-vlan)#name xiaoshouTwo-SW(config-vlan)#vlan 19 Two-SW(config-vlan)#name jishuTwo-SW(config-vlan)#exitTwo-SW(config)#interface range fastEthernet 0/5-9Two-SW(config-if-range)#swit

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 教学课件 > 高中课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号