
计算机网络项目教学作业.doc
83页目录实验1:交换机的基本配置 1实验2:交换机的远程登录 3实验3:交换机链路汇聚技术 6实验4:交换机连接生成树技术 9实验5:服务器的配置 11实验6:客户机对服务器VLAN的学习 16实验7:三层交换机利用聚合技术实现VLAN间的通信 20实验8:单臂路由的配置 24实验9:设置路由器的系统时钟 28实验10:ARP地址解析协议 29实验11:路由器的标签设置 31实验12:路由器的远程登录 33实验13:域名解析服务 34实验14:用户的克隆与隐藏 37项目实验15:组建小型网络 42项目实验16:项目设计方案 49实验17:利用三层交换机配置DHCP 55实验18:VPN虚拟专用网技术 57实验19:WIN2003域的管理 62实验20:利用GNS3实现跨网段域控制 65实验21 Linux 系统工具-shell编程 70实验22 Linux下实现与Windows的共享 74实验23 Apache服务器的配置 78实验1:交换机的基本配置一、实验目的1.熟悉交换机的模式命令 2.学习特权模式下的命令3.了解全局配置模式下的命令二、实验环境 在Packet Tracer5.1上进行实验 1.一台2950交换机 2.一台PC三、实验内容1、查看MAC地址以及使用Cisco发现协议命令2、给交换机命名和设置密码四、实验步骤、过程1、查看交换机的MAC地址,进入特权模式输入show mac- address –table进行查看,如图2..使用Cisco发现协议,在交换机上查看周围设备及信息以及保存交换机配置,如图3.在全局配置模式下给交换机设置名字和密码,如图实验2:交换机的远程登录一、实验目的 学会在另一台PC上利用远程登录进入交换机进行配置二、实验环境1.两台交换机2.两台PC三、实验内容 在虚拟机中通过对交换机的配置,使得另一台pc可以远程登录并管理交换机。
四、实验步骤、过程1.连接四台机器,设置好四台机器的IP地址,使其在同一网段10.1.1.X,并使两台PC之间能够互相PING通,如图2.给switch0命名,配置并设置好密码,如图3.给switch 1进行配置,如图4.对本次实验的成功进行测试switch1成功进入switch0并取得特权模式,实验成功,如图实验3:交换机链路汇聚技术 一、实验目的1.熟悉交换机链路汇聚的命令2.掌握和配置交换机链路汇聚技术二、实验环境交换机两台,网线若干,测试PC两台三、实验内容 在两台交换机之间配置好链路汇聚四、实验步骤、过程1、两台交换机分别连接两台电脑,并用两根交叉线对两台交换机进行连接,如图12、配置switch 0,将此连接的接口加入汇聚端口并用同命令对switch 1进行配置Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname liushaozhouliushaozhou(config)#ex%SYS-5-CONFIG_I: Configured from console by consoleliushaozhou#vlan da% Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.liushaozhou(vlan)#vlan 10VLAN 10 added: Name: VLAN0010liushaozhou(vlan)#exAPPLY completed.Exiting....liushaozhou#conf tEnter configuration commands, one per line. End with CNTL/Z.liushaozhou(config)#inter fa0/5liushaozhou(config-if)#switchport mode accessliushaozhou(config-if)#switchport access vlan 10liushaozhou(config-if)#exliushaozhou(config)#interface port-channel 1liushaozhou(config-if)#switchport mode trunkliushaozhou(config-if)#exitliushaozhou(config)#interface range gi1/1-2liushaozhou(config-if-range)#channel-group 1 mode on%LINK-5-CHANGED: Interface Port-channel 1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to upliushaozhou(config-if-range)#end%SYS-5-CONFIG_I: Configured from console by console3.检查连通情况,配置成功,如图实验4:交换机连接生成树技术一、实验目的 通过修改bridge ip,重新选择根网桥二、实验环境两台交换机四台电脑三、实验内容 在两台电脑之间用生成树技术进行配置三、实验过程1.给四台电脑设置好IP,并连接交换机。
如图 2.左边switch 10 一灯未亮,即对该交换机进行命令配置Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#spanning-tree vlan 1 priority 4096Switch(config)#3.配置完成,实验5:服务器的配置一、实验目的1.熟悉客户机的模式设置2. 了解客户机在各种模式下是怎样对服务器进行学习以及它们的权限二、实验环境四台交换机,并把它们用交叉线进行连接三、实验内容1、服务器的配置2、客户机加入域四、实验步骤、过程1、将四台交换机用交叉线进行连接,把SW 0设为服务器,如图2.. 配置服务器,设置服务器版本,打通三个接口并划分四个VLAN供下面实验,如图,为交换机的配置命令liushaozhou#vlan database% Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.liushaozhou(vlan)#vtp domain liushaozhouChanging VTP domain name from NULL to liushaozhouliushaozhou(vlan)#vtp serverDevice mode already VTP SERVER.liushaozhou(vlan)#vtp v2-modeV2 mode enabled.liushaozhou(vlan)#exAPPLY completed.Exiting....liushaozhou#conf tEnter configuration commands, one per line. End with CNTL/Z.liushaozhou(config)#inter range fa0/1,fa0/14-15liushaozhou(config-if-range)#sw mo tr%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/14, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/14, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/15, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/15, changed state to upliushaozhou(config-if-range)#end%SYS-5-CONFIG_I: Configured from console by consoleliushaozhou#vlan da% Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.liushaozhou(vlan)#vlan 1VLAN 1 modified:liushaozhou(vlan)#vlan 2VLAN 2 added: Name: VLAN0002liushaozhou(vlan)#vlan 3VLAN 3 added: Name: VLAN0003liushaozhou(vlan)#vlan 4VLAN 4 added: Name: VLAN0004liushaozhou(vlan)#show vlan3.配置SW 1,把其设为客户机,并打开它的三个接口,并用同样的命令对SW2,3进行配置,把SW2,3都设为客户机Switch>enSwitch#vlan da% Warnin。












