[信息与通信]中南大学网络工程实验报告.doc_第1页
[信息与通信]中南大学网络工程实验报告.doc_第2页
[信息与通信]中南大学网络工程实验报告.doc_第3页
[信息与通信]中南大学网络工程实验报告.doc_第4页
[信息与通信]中南大学网络工程实验报告.doc_第5页
已阅读5页,还剩37页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

网络工程实验报告班级: 学号:姓名: web服务器操作系统:windows 7服务器:IIS7一. 安装iis 控制面板 程序与功能 打开和关闭windows功能 选择internet信息服务二. IIS配置 1.打开IIS管理器打开方式:控制面板-管理工具-Internet信息服务(IIS)管理工具,打开即可 2. 选择Default Web Site,并双击ASP的选项 3. IIS7中ASP父路径是没有启用的,要开启父路径,选择True即可。 4. 配置IIS7的站点, 单击右边的“高级设置”选项,可以设置网站的目录 5. 点击右侧的“绑定”,然后设置网站的端口,默认使用80端口 6. 点击“默认文档”, 设置网站的默认文档完成即可三.效果图FTP服务器配置一、安装FTP组件由于Win7默认没有安装FTP组件。故FTP的设置第一步就是安装FTP组件点击:控制面板程序和功能打开或关闭Windows功能。勾选“FTP服务器”及“FTP服务”“FTP扩展性”,点击“确定”,安装FTP组件二、添加FTP站点点击:控制面板管理工具。选中“Internet信息服务(IIS)管理器” 1. 双击“Internet信息服务(IIS)管理器”。弹出管理器界面2. 单击选中“网站”,并且在其上右击,选择“添加FTP站点”,出现“站点信息”界面,输入站名:wzl , 路径:G:Music3. 点击“下一步”,出现“绑定和SSL设置”界面4. IP设置为本机的IP地址,端口用FTP默认的21,SSL勾选“无”。点击“下一步”,出现“身份验证和授权信息”界面, 还要给FTP配置帐号,以及帐号的权限,故“身份验证”勾选“基本”,“授权”勾选“未选定”,点击“完成”,完成FTP站点的设置三.设置FTP帐号以及权限 1. 双击刚才选中的“FTP授权规则”,还没有添加用户, 2. 点击右侧的“添加允许规则”,在弹出的窗口中,勾选“指定的用户”,输入Work(本主机用户名),在下方的“权限”中,勾选“读取”。3.确定后,不过在本机上测试正常,但是用别的机器测试FTP的话无法连接,问题在于Windows7的防火墙,所以还需要对防火墙的设置四、Win7的防火墙设置1.点击:控制面板Windows防火墙。点击左侧的“允许程序或功能通过Windows防火墙”,选中“FTP服务器”,将后面的两个框都勾选,点击下方的“允许运行另一程序”,在弹出窗口里,点“浏览”,找到C:WindowsSystem32inetsrvinetinfo.exe,点添加,也就是上图中的Internet Infomation Services。将后面的两个框也都选中。因为在Win7下,FTP是IIS的一个组件,因此也必须在防火墙中将IIS设置为允许。而IIS又不在默认的列表中,因此得手动添加 2. 这样设置,FTP还是不能正常使用。由于FTP用的是21端口,因此在防火墙中还得添加出站和入站的端口规则。在Windows防火墙窗口里,点击左侧的“高级设置”,弹出高级安全防火墙窗口,点击左侧的“入站规则” 3. 点击右侧的“新建规则”,出现向导界面,勾选“端口”4. 点击“下一步”,勾选TCP(FTP用的是TCP协议),再勾选特定本地端口,输入21(FTP用的是21端口)5. 点击“下一步”,默认的都选上6. 点击“下一步”,在名称里输入名字,本例中是21五.绑定IP和端口六:登录其实1是当前主机的IP地址使用虚拟机里的Windows XP系统测试,测试成功DNS服务器配置一.环境 1.系统:Windows 2000 Server 2.IP地址:2二. DNS服务器安装(1) 添加DNS服务器之前必须首先安装DNS服务: 开始 设置 控制面板 添加/删除程序 添加/删除 Windows 组件 在“组件”列表中选择“网络服务” 选中“域名系统(DNS)”(2) DNS服务安装结束之后,在“管理工具”中将出现“DNS”命令项三. DNS服务器基本配置(1) 设置DNS正向搜索区域 开始 程序 管理工具 启动DNS 右击选中“新建区域” 进入新建区域向导 选中“标准主要区域” “正向搜索区域” 输入区域名称 添加IP地址 完成。(2) 添加主机资源gjy,对应IP“3”、别名资源“powerpoint” 选中区域名“”右击 新建主机/别名 输入名称“gjy”和IP地址“3” “添加主机”按钮 选中区域名“”右击 新建别名 输入名称“powerpoint”和对应的主机名称“” 确定(3) 设置DNS反向搜索区域 右击“反向搜索区域” 进入新建区域向导 选中“标准主要区域” 设置反向搜索区域的网络ID:172.0.207 输入区域名称 完成。 右击新建好的反向区域172.0.207.X 输入主机IP号:53 通过“浏览”按钮添加主机名: 确定四、测试(1) 设置DNS客户端 在“Internet(TCP/IP)协议属性”对话框 分别输入首选/备用DNS服务器的IP地址3(2)测试DNS用“”命令测试DNS解析是否正确在DOS窗口输入上述命令,观察域名是否被正确解析测试成功DHCP服务器配置一.环境操作系统:windows server 2000二. DHCP服务器安装(1) 添加DHCP服务器之前必须首先安装DHCP服务: 开始 设置 控制面板 添加/删除程序 添加/删除 Windows 组件 在“组件”列表中选择“网络服务” 选中“DHCP”(2) 打开“开始”菜单,选择“程序” |“管理工具” |“DHCP”命令,打开“ DHCP控制台”窗口三. DHCP的配置(1) . 添加DHCP服务器操作:DHCP右键添加服务器浏览选中要增加的服务器名(2). 设置DHCP服务器操作:选中服务器名右键新建作用域 三.设置客户端 VLAN配置一、准备 (1)、2台C2905switch和4台PC机 (2)、设置VLAN两个,分别为:VLAN100 Pcontrol和VLAN200 Accout(3)、分别将接口加入到VLAN100和VLAN200后配置Trunk线路,保证VLAN间的通信二、网络图 三、 1.Switch 1交换机配置SwitchenableSwitch#configure terminalEnter configuration commands, one per line.End with CNTL/Z.Switch(config)#hostname SW1SW1(config)#line console 0SW1(config-line)#exec-timeout 20 0SW1(config-line)#logging synchronousSW1(config-line)#password dsfengSW1(config-line)#loginSW1(config-line)#line vty 0 15SW1(config-line)#exec-timeout 15 0SW1(config-line)#logging synchronousSW1(config-line)#password dsfengSW1(config-line)#loginSW1(config-line)#enable secret ciscoSW1(config)#exitSW1#vlan databaseSW1(vlan)#vlan 100 name PcontrolVLAN 100 added:Name:PcontrolSW1(vlan)#vlan 200 name AccoutVLAN 200 added:Name:AccoutSW1(vlan)#exitAPPLY completed.Exiting.SW1#configure terminalEnter configuration commands, one per line.End with CNTL/Z.SW1(config)#interface fastethernet 0/2SW1(config-if)#switchport mode accessSW1(config-if)#switchport access vlan 100SW1(config-if)#exitSW1(config)#interface fastethernet 0/3SW1(config-if)#switchport mode accessSW1(config-if)#switchport access vlan 200SW1(config-if)#exitSW1(config)#interface fasteterhent 0/10SW1(config-if)#switchport mode trunkSW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#endSW1#show vlanVLAN NameStatusPorts- - - -1defaultactiveFa0/1, Fa0/4, Fa0/5, Fa0/6Fa0/7, Fa0/8, Fa0/9, Fa0/10Fa0/11, Fa0/12100PcontrolactiveFa0/2200AccoutactiveFa0/31002 fddi-defaultactive1003 token-ring-defaultactive1004 fddinet-defaultactive1005 trnet-defaultactive2. Switch 2的配置Switchenable Switch#configure terminalEnter configuration commands, one per line.End with CNTL/Z.Switch(config)#hostname SW2SW2(config)#line console 0SW2(config-line)#exec-timeout 20 0SW2(config-line)#logging synchronousSW2(config-line)#password dsfengSW2(config-line)#loginSW2(config-line)#line vty 0 15SW2(config-line)#exec-timeout 15 0SW2(config-line)#logging synchronousSW2(config-line)#password dsfengSW2(config-line)#loginSW2(config-line)#enable secret ciscoSW2(config)#endSW2#vlan databaseSW2(vlan)#vlan 100 name PcontrolVLAN 100 added:Name:PcontrolSW2(vlan)#vlan 200 name AccoutVLAN 200 added:Name:AccoutSW2(vlan)#exitAPPLY completed.Exiting.SW2#configure terminalEnter configuration commands, one per line.End with CNTL/Z.SW2(config)#interface fastethernet 0/2SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlan 100SW2(config-if)#exitSW2(config)#interface fastethernet 0/3SW2(config-if)#switchport mode accessSW2(config-if)#switchport access vlan 200SW2(config-if)#exitSW2(config)#interface fastethernet 0/10SW2(config-if)#switchport mode trunkSW2(config-if)#switchport trunk encapsulation dot1qSW2(config-if)#endSW2#show vlanVLAN NameStatusPorts- - - -1defaultactiveFa0/1, Fa0/4, Fa0/5, Fa0/6Fa0/7, Fa0/8, Fa0/9, Fa0/10Fa0/11, Fa0/12100PcontrolactiveFa0/2200AccoutactiveFa0/31002 fddi-defaultactive1003 token-ring-defaultactive1004 fddinet-defaultactive1005 trnet-defaultactive3.PC1的测试C:ipconfig /ip C:ping Pinging with 32 bytes of data:Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Pingstatistics for :Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum =60ms, Average =55ms4. PC2的测试 C:ipconfig /ip C:C:ping Pinging with 32 bytes of data:Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Pingstatistics for :Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum =60ms, Average =55ms5.PC3测试结果:C:ipconfig /ip C:ping Pinging with 32 bytes of data:Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Pingstatistics for :Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum =60ms, Average =55ms6.PC4测试结果:C:ipconfig /ip C:ping Pinging with 32 bytes of data:Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Reply from : bytes=32 time=60ms TTL=241Pingstatistics for :Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 50ms, Maximum =60ms, Average =55ms动态路由配置一、准备1、R0:2个Serial0(2501);2、R1:1个Serial0、1个Ethernet0(805);3、R2:1个Serial0、1个Ethernet0(805);4、S1、S2:2950二、网络图三、配置 1、Router 2的配置Routerenable # (进入特权模式)Router#config t # (进入全局配置模式)Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname r1 # (设置交换机的主机名) r1(config)#r1(config)#int s0 #(进入Serail接口配置模式)r1(config-if)#ip add # (设置接口的IP地址)r1(config-if)#clock rate 64000 #(设置同步时钟)%LINK-3-UPDOWN: Interface Serial0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to upr1(config-if)#no sh # (激活当前接口)r1(config-if)#ex # (退回特权模式)r1(config)#int e0r1(config-if)#ip add r1(config-if)#no sh%LINK-3-UPDOWN: Interface Ethernet0, changed state to upr1(config-if)#exr1(config)#r1(config)#router rip #(进入RIP协议配置子模式) r1(config-router)#network #(声明网络/8)#这一步“”必须与其子网掩码相对应,如上其子网掩码为r1(config-router)#network #这一步“”必须与其子网掩码相对应,如上其子网掩码为r1(config-router)#exr1(config)#exr1#sh ip rou #(查看路由表信息)Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static routeGateway of last resort is not setC is directly connected, Serial0C is directly connected, Ethernet0R 120/1 via , 00:02:25, Serial02、Router 3的配置RouterRouterRouterenRouter#Router#con tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname r2r2(config)#int s0r2(config-if)#ip add r2(config-if)#clock rate 64000%LINK-3-UPDOWN: Interface Serial0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to upr2(config-if)#no shr2(config-if)#exr2(config)#int e0r2(config-if)#ip add r2(config-if)#no sh%LINK-3-UPDOWN: Interface Ethernet0, changed state to upr2(config-if)#exr2(config)#r2(config)#router ripr2(config-router)#network r2(config-router)#network r2(config-router)#ex r2(config)#exr2#r2#sh ip rouCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static routeGateway of last resort is not setC is directly connected, Serial0C is directly connected, Ethernet0R 120/1 via , 00:06:29, Serial0R 120/2 via , 00:02:22, Serial03、Router 1的配置RouterRouterenRouter#con tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname r0r0(config)#int s0r0(config-if)#ip add r0(config-if)#clock rate 64000r0(config-if)#no shr0(config-if)#exr0(config)#int s1r0(config-if)#ip add r0(config-if)#clock rate 64000r0(config-if)#no shr0(config-if)#exr0(config)#r0(config)#router ripr0(config-router)#network r0(config-router)#network r0(config-router)#exr0(config)#exr0#r0#sh ip rouCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static routeGateway of last resort is not setC is directly connected, Serial0C is directly connected, Serial1R 120/1 via , 00:03:23, Serial0R 120/1 via , 00:01:36, Serial1r0#ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msr0#ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms4、Switch 1的配置switchenable #(进入特权模式)switch#config terminal #(进入全局配置模式)switch(config)#hostname S1 #(设置交换机的主机名)S1(config)#S1(config)#int vlan1S1(config-if)#ip a S1(config-if)#ip d #(设置默认网关)S1(config)#ex4、Switch 2的配置switchenable #(进入特权模式)switch#config terminal #(进入全局配置模式)switch(config)#hostname S2 # (设置交换机的主机名)S2(config)#s2(config)#int vlan1s2(config-if)#ip a s2(config-if)#ip d #(设置默认网关)s2(config)#ex5、4个PC的IP地址配置PC1:1PC2:2PC3:1PC4:2静态路由配置一、准备 (1)、2台C2905switch和4台PC机 (2)、设置VLAN两个,分别为:VLAN100 Pcontrol和VLAN200 Accout(3)、分别将接口加入到VLAN100和VLAN200后配置Trunk线路,保证VLAN间的通信二、网络图 三、配置 1、Router 2的配置RouterRouterenRouter#con tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname r1r1(config)#int e0r1(config-if)#ip add r1(config-if)#no sh%LINK-3-UPDOWN: Interface Ethernet0, changed state to upr1(config-if)#exitr1(config)#int s0r1(config-if)#ip add r1(config-if)#clock rate 64000%LINK-3-UPDOWN: Interface Serial0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to upr1(config-if)#no shr1(config-if)#exr1(config)#r1(config)#ip route #(表示从该路由器发往 网段的数据包其下一跳点的地址是)r1(config)#ip route r1(config)#ip route r1(config)#exr1#ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msr1#ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msr1#ping / 未配置R0时Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:.Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 msr1#r1#r1#ping /配置R0后Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms2、Router 3的配置RouterRouterenRouter#con tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname r2r2(config)#int e0r2(config-if)#ip add r2(config-if)#no sh%LINK-3-UPDOWN: Interface Ethernet0, changed state to upr2(config-if)#exr2(config)#int s0r2(config-if)#ip add r2(config-if)#clock rate 64000%LINK-3-UPDOWN: Interface Serial0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to upr2(config-if)#no shr2(config-if)#exr2(config)#r2(config)#ip route r2(config)#ip route r2(config)#ip route r2(config)#exr2#ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msr2#ping Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msr2#ping / 未配置R0时Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:.Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 msr2#r2#r2#ping 192.16

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论