2022年2022年计算机网络实验报告 23.pdf

上传人:Che****ry 文档编号:34875208 上传时间:2022-08-19 格式:PDF 页数:5 大小:40.41KB
返回 下载 相关 举报
2022年2022年计算机网络实验报告 23.pdf_第1页
第1页 / 共5页
2022年2022年计算机网络实验报告 23.pdf_第2页
第2页 / 共5页
点击查看更多>>
资源描述

《2022年2022年计算机网络实验报告 23.pdf》由会员分享,可在线阅读,更多相关《2022年2022年计算机网络实验报告 23.pdf(5页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、实验二在同一个交换机上配置不同的vlan 一、 实验目的1、学习交换机的基本设置方法2、理解交换机的端口属性3、掌握 VLAN的划分和配置命令二、实验要求(1)写出配置过程。(2)画出网络拓扑图三、实验内容(拓扑)四、 实验过程步骤 1:配置 PC0、PC1 、PC2 、PC3 。主机 PC0 设置:IP 地址: 192.168.1.1 子网掩码: 255.255.255.0 主机 PC1 设置:IP 地址: 192.168.1.2 子网掩码: 255.255.255.0 主机 PC2 设置:IP 地址: 192.168.1.3 子网掩码: 255.255.255.0 主机 PC2 设置:IP

2、 地址: 192.168.1.4 子网掩码: 255.255.255.0 步骤 2:验证网络连通性。PC0 上 ping PC1 、PC2 、PC3 ,结果如下:名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 5 页 - - - - - - - - - PCping 192.168.1.2 Pinging 192.168.1.2 with 32 bytes of data: Reply from 192.168.1.2: bytes=32 time=0ms TTL=128

3、 Reply from 192.168.1.2: bytes=32 time=0ms TTL=128 Reply from 192.168.1.2: bytes=32 time=0ms TTL=128 Reply from 192.168.1.2: bytes=32 time=0ms TTL=128 Ping statistics for 192.168.1.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, M

4、aximum = 0ms, Average = 0ms PCping 192.168.1.3 Pinging 192.168.1.3 with 32 bytes of data: Reply from 192.168.1.3: bytes=32 time=1ms TTL=128 Reply from 192.168.1.3: bytes=32 time=2ms TTL=128 Reply from 192.168.1.3: bytes=32 time=0ms TTL=128 Reply from 192.168.1.3: bytes=32 time=0ms TTL=128 Ping stati

5、stics for 192.168.1.3: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 2ms, Average = 0ms PCping 192.168.1.4 Pinging 192.168.1.4 with 32 bytes of data: Reply from 192.168.1.4: bytes=32 time=2ms TTL=128 Reply from 192.168.1.

6、4: bytes=32 time=0ms TTL=128 Reply from 192.168.1.4: bytes=32 time=0ms TTL=128 Reply from 192.168.1.4: bytes=32 time=0ms TTL=128 Ping statistics for 192.168.1.4: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 2ms, Average

7、= 0ms 步骤 3:配置交换机并查看VLAN 信息。Switchenable Switch#vlan database /进入 VLAN 配置模式Switch(vlan)#vlan 2 name test2 /添加 VLAN 并命名Switch(vlan)#vlan 3 name test3 Switch(vlan)#exit Switch#show vlan /查看 VLAN信息VLAN Name Status Ports - - - - 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9

8、, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 5 页 - - - - - - - - - 2 test2 active 3 test3 active (省略 )Switch#show vtp status V

9、TP Version : 2 Configuration Revision : 2 Maximum VLANs supported locally : 255 Number of existing VLANs : 7 VTP Operating Mode : Server VTP Domain Name : VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0 x83 0 x24 0 x1E 0 x69 0 x6B 0 x1D 0 x36 0 x74 C

10、onfiguration last modified by 0.0.0.0 at 3-1-93 00:15:02 Local updater ID is 0.0.0.0 (no valid interface found) Switch(config)#exit Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch#configure terminal Switch(config)#interface fastEthernet 0/1 /进入端口 Fa0/1 的配置模

11、式Switch(config-if)#switchport mode access /设置端口为静态VLAN 访问模式Switch(config-if)#switchport access vlan2 /把端口 Fa0/1 分配给相信的VLAN 2Switch(config-if)#ex Switch(config)#interface fastEthernet 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch

12、(config)#interface fastEthernet 0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/4 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch#s

13、how vlan VLAN Name Status Ports - - - - 1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 2 test2 active Fa0/1, Fa0/2 3 test3 active Fa0/3, Fa0/4 (省略 ) 步骤 4:测试连通性。PC0 上

14、 ping PC1 、PC2 、PC3 ,结果如下:PCping 192.168.1.2 Pinging 192.168.1.2 with 32 bytes of data: Reply from 192.168.1.2: bytes=32 time=1ms TTL=128 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 5 页 - - - - - - - - - Reply from 192.168.1.2: bytes=32 time=0ms TTL=128 Repl

15、y from 192.168.1.2: bytes=32 time=0ms TTL=128 Reply from 192.168.1.2: bytes=32 time=0ms TTL=128 Ping statistics for 192.168.1.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 1ms, Average = 0ms PCping 192.168.1.3 Pinging

16、192.168.1.3 with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 192.168.1.3: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), PCping 192.168.1.4 Pinging 192.168.1.4 with 32 bytes of data: Request timed out. Request timed out. R

17、equest timed out. Request timed out. Ping statistics for 192.168.1.4: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), PC3 上 ping PC0 、PC1 、PC2 ,结果如下:PCping 192.168.1.1 Pinging 192.168.1.1 with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping s

18、tatistics for 192.168.1.1: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), PCping 192.168.1.2 Pinging 192.168.1.2 with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 192.168.1.2: Packets: Sent = 4, Received = 0, Lost = 4 (100%

19、 loss), PCping 192.168.1.3 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 5 页 - - - - - - - - - Pinging 192.168.1.3 with 32 bytes of data: Reply from 192.168.1.3: bytes=32 time=1ms TTL=128 Reply from 192.168.1.3: bytes=32 time=0ms TTL=128 Reply from 192.168.1.3

20、: bytes=32 time=0ms TTL=128 Reply from 192.168.1.3: bytes=32 time=0ms TTL=128 Ping statistics for 192.168.1.3: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 1ms, Average = 0ms 五、 实验体会1、VLAN (Virtual Local Area Network)的中文

21、名为“虚拟局域网”,VLAN 是一种将局域网设备从逻辑上划分(注意,不是从物理上划分)成一个网段,从而实现虚拟工作组的数据交换技术;VLAN 的优点有:增加了网络连接的灵活性;控制网络上的广播;增加网络的安全性。2、初始状态所有的端口都在default 中(实际就是 vlan 1),所有的端口都可以连通。划分后,将交换机端口划分到不同的VLAN 中,同一个VLAN 中的主机可以互相连通,不同VLAN中的主机不能联通,可以有效控制网络上的广播。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 5 页 - - - - - - - - -

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

当前位置:首页 > 教育专区 > 高考资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁