交换机DHCP服务器的配置_第1页
交换机DHCP服务器的配置_第2页
交换机DHCP服务器的配置_第3页
交换机DHCP服务器的配置_第4页
交换机DHCP服务器的配置_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

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

文档简介

创建高级交换型互联网实验报告 时间 2011 12 15 实验名称 实训三十 交换机 DHCP 服务器的配置 班 级网管 1001姓名 实验内容 一 实验要求 1 PC1 PC2 PC3 属于 vlan10 2 PC4 Server0 属于 vlan20 3 PC2 PC3 PC4 均是动态获取 IP 地址 PC1 是静态 IP 地址 4 Server0 开启 WWW 和 FTP 服务 关闭 DHCP 服务 并使用静态地址 5 vlan10 可以动态获取 ip 范围是 192 168 10 50 192 168 10 100 6 vlan20 可以动态获取 ip 范围是 10 0 0 100 10 0 0 254 7 vlan10 的 PC 可以用域名访问 Server0 的 www 服务 不能访问 ftp 服务 8 PC1 不能访问 Server0 所有的服务 9 能否建立规则控制 PC4 可以访问 Server0 的 ftp 服务 不能访问 www 服务 为什么 二 实验设备 1 2950 型号交换机 2 台 2 PC4 台 4 直通线 5 根 5 交叉线 2 根 6 三层交换机 1 台 三 拓扑图 四 实验步骤 1 在 SW2 上配置 vlan10 和 vlan20 创建 IP 地址 配置 trunk 口 SW2 config vlan 10 SW2 config vlan vlan 20 SW2 config vlan exit SW2 config int vlan 10 SW2 config if ip address 192 168 10 1 255 255 255 0 SW2 config if no shutdown SW2 config if exit SW2 config int vlan 20 SW2 config if ip address 10 0 0 1 255 255 255 0 SW2 config if no shutdown SW2 config if exit SW2 config int range f0 3 4 SW2 config if range switchport trunk encapsulation dot1q SW2 config if range switchport mode trunk SW2 config if range exit 2 在 SW1 和 SW3 上配置创建 VLAN 配置 trunk 口 Sw1 config vlan 10 Sw1 config vlan exit Sw1 config int range f0 1 2 Sw1 config if range switchport access vlan 10 Sw1 config if range exit Sw1 config int f0 3 Sw1 config if switchport mode trunk Sw3 config vlan 10 Sw3 config vlan vlan 20 SW3 config int f0 1 SW3 config if switchport access vlan 10 SW3 config if exit SW3 config int f0 2 SW3 config if switchport access vlan 20 SW3 config if exit SW3 config int f0 3 SW3 config if sw SW3 config if switchport ac SW3 config if switchport access vlan 20 SW3 config if exit SW3 config int f0 4 SW3 config if switchport mode trunk 3 配置完后 ping 通 FTP 配置和 www 服务正常 PC ping 10 0 0 2 Pinging 10 0 0 2 with 32 bytes of data Request timed out Reply from 10 0 0 2 bytes 32 time 125ms TTL 127 Reply from 10 0 0 2 bytes 32 time 125ms TTL 127 Reply from 10 0 0 2 bytes 32 time 109ms TTL 127 Ping statistics for 10 0 0 2 Packets Sent 4 Received 3 Lost 1 25 loss Approximate round trip times in milli seconds Minimum 109ms Maximum 125ms Average 119ms PC ftp 10 0 0 2 Trying to connect 10 0 0 2 Connected to 10 0 0 2 220 Welcome to PT Ftp server Username cisco 331 Username ok need password Password cisco 230 Logged in passive mode On ftp quit 5 vlan10 可以动态获取 ip 范围是 192 168 10 50 192 168 10 100 SW2 config ip dhcp pool vlan10 SW2 dhcp config network 192 168 10 0 255 255 255 0 SW2 dhcp config default router 192 168 10 1 SW2 dhcp config dns server 10 0 0 2 SW2 dhcp config exit SW2 config ip dhcp excluded address 192 168 10 1 192 168 10 99 SW2 config ip dhcp excluded address 192 168 10 101 192 168 10 255 6 vlan20 可以动态获取 ip 范围是 10 0 0 100 10 0 0 254 SW2 config ip dhcp excluded address 10 0 0 1 10 0 0 99 SW2 config ip dhcp pool vlan20 SW2 dhcp config network 10 0 0 0 255 255 255 0 SW2 dhcp config default router 10 0 0 1 SW2 dhcp config dns server 10 0 0 2 7 vlan10 的 PC 可以用域名访问 Server0 的 www 服务 不能访问 ftp 服务 SW2 config access list 101 permit tcp 192 168 10 0 0 0 0 255 host 10 0 0 2 eq www SW2 config access list 101 deny tcp 192 168 10 0 0 0 0 255 host 10 0 0 2 eq ftp SW2 config int vlan 10 SW2 config if ip access group 101 in 但是域名不知为什么不能访问 8 PC1 不能访问 Server0 所有的服务 SW2 config no access list 101 permit tcp 192 168 10 0 host 10 0 0 2 eq www SW2 config access list 101 deny tcp host 192 168 10 2 host 10 0 0 2 eq www SW2 config access list 101 permit tcp 192 168 10 0 0 0 0 255 host 10 0 0 2 eq www SW2 config int vlan 10 SW2 config if ip access group 101 in PC ping 10 0 0 2 Pinging 10 0 0 2 with 32 bytes of data Request timed out Request timed out Request timed out Request timed out Ping statistics for 10 0 0 2 Packets Sent 4 Received 0 Lost 4 100 loss PC ftp 10 0 0 2 Trying to connect 10 0 0 2 Error opening ftp 10 0 0 2 Timed out Packet Tracer PC Command Line 1 0 P

温馨提示

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

评论

0/150

提交评论