PT练习3.5.2:VLAN配置练习(教师版)

上传人:鲁** 文档编号:499445803 上传时间:2023-08-02 格式:DOC 页数:6 大小:583KB
返回 下载 相关 举报
PT练习3.5.2:VLAN配置练习(教师版)_第1页
第1页 / 共6页
PT练习3.5.2:VLAN配置练习(教师版)_第2页
第2页 / 共6页
PT练习3.5.2:VLAN配置练习(教师版)_第3页
第3页 / 共6页
PT练习3.5.2:VLAN配置练习(教师版)_第4页
第4页 / 共6页
PT练习3.5.2:VLAN配置练习(教师版)_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《PT练习3.5.2:VLAN配置练习(教师版)》由会员分享,可在线阅读,更多相关《PT练习3.5.2:VLAN配置练习(教师版)(6页珍藏版)》请在金锄头文库上搜索。

1、0CCNA ExplorationCCNA ExplorationLAN Switching and Wireless:LAN 交换和无线:VLANsVLANPT Activity 3.5.2:PT 练习 3.5.2:Challenge VLAN ConfigurationVLAN 配置练习0PT 练习 3.5.2:VLAN 配置练习(教师版)拓扑图地址表设备接口IP 地址子网掩码默认网关S1VLAN 56192.168.56.11255.255.255.0不适用S2VLAN 56192.168.56.12255.255.255.0不适用S3VLAN 56192.168.56.13255.25

2、5.255.0不适用PC1网卡192.168.10.21255.255.255.0192.168.10.1PC2网卡192.168.20.22255.255.255.0192.168.20.1PC3网卡192.168.20.23255.255.255.0192.168.30.1PC4网卡192.168.10.24255.255.255.0192.168.10.1PC5网卡192.168.20.25255.255.255.0192.168.20.1PC6网卡192.168.30.26255.255.255.0192.168.30.1端口分配(交换机2 和 3)端口分配网络Fa0/1 0/5VLA

3、N 99 Management&Native192.168.56.0/24Fa0/6 0/10VLAN 30 Guest(Default)192.168.30.0/24Fa0/11 0/17VLAN 10 Faculty/Staff192.168.10.0/24Fa0/18 0/24VLAN 20 Students192.168.20.0/24学习目标 执行交换机上的基本配置任务 创建 VLAN 分配交换机端口到 VLAN 添加、移动和更改端口 检验 VLAN 配置 对交换机间连接启用中继 检验中继配置 保存 VLAN 配置 任务 1:执行基本交换机配置根据以下指导原则配置交换机。Packet

4、 Tracer 将只对主机名评分。 配置交换机主机名。 禁用 DNS 查找。 将执行模式口令配置为 class。 为控制台连接配置口令 cisco。 为 vty 连接配置口令 cisco。enableconfigure terminalno ip domain-lookupenable secret class!line con 0 password cisco login!line vty 0 4password ciscologinendcopy running-config startup-config任务 2:配置并激活以太网接口步骤 1. 配置 PC。使用本练习开头部分地址表中的 I

5、P 地址和默认网关配置六台 PC 的以太网接口。现在 PC1 的 IP 地址会评定为错误。您将在稍后的练习中更改 PC1 的地址。步骤 2. 在 S2 和 S3 上启用提供访问的用户端口。 S2(config)#interface fa0/6S2(config-if)#switchport mode accessS2(config-if)#interface fa0/11S2(config-if)#switchport mode accessS2(config-if)#interface fa0/18S2(config-if)#switchport mode accessS3(config)#

6、interface fa0/6S3(config-if)#switchport mode accessS3(config-if)#interface fa0/11S3(config-if)#switchport mode accessS3(config-if)#interface fa0/18S3(config-if)#switchport mode access任务 3:在交换机上配置 VLAN步骤 1. 在交换机 S1 上创建 VLAN。VLAN ID 和名称列在本练习开头部分的端口分配表中。S1(config)#vlan 56S1(config-vlan)#name Management

7、&NativeS1(config-vlan)#exitS1(config)#vlan 10S1(config-vlan)#name Faculty/StaffS1(config-vlan)#exitS1(config)#vlan 20 S1(config-vlan)#name StudentsS1(config-vlan)#exitS1(config)#vlan 30S1(config-vlan)#name Guest(Default)S1(config-vlan)#exit步骤 2. 检验在 S1 上创建的 VLAN。使用 show vlan brief 命令检验 VLAN 是否已成功创建。

8、S1#show vlan briefVLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 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/210 Faculty/Staff active 20 Students active 30

9、 Guest(Default) active 56 Management&Native active 步骤 3. 在交换机 S2 和 S3 上配置、命名和检验 VLAN。使用步骤 1 中的命令在 S2 和 S3 上创建并命名 VLAN 10、20、30 和 56。使用 show vlan brief 命令检验配置是否正确。 步骤 4. 在 S2 和 S3 上将交换机端口分配给 VLAN。注意:S2 Fa0/11 端口现在会被评为错误,而且 Packet Tracer 将只对每个 VLAN 的第一个端口分配评分。S3(config)#interface fa0/6S3(config-if)#sw

10、itchport access vlan 30S3(config-if)#interface fa0/11S3(config-if)#switchport access vlan 10S3(config-if)#interface fa0/18S3(config-if)#switchport access vlan 20S3(config-if)#endS3#copy running-config startup-configDestination filename startup-config? enterBuilding configuration.OK步骤 5. 确定 S2 的哪些端口已

11、添加到 VLAN 10。在 S2 上使用 show vlan id vlan-number 命令查看哪些端口已分配给 VLAN 10。Fa0/11步骤 6. 在每台交换机上配置管理 VLAN 56。S1(config)#interface vlan 56S1(config-if)#ip address 192.168.56.11 255.255.255.0S1(config-if)#no shutdownS2(config)#interface vlan 56S2(config-if)#ip address 192.168.56.12 255.255.255.0S2(config-if)#no

12、 shutdownS3(config)#interface vlan 56S3(config-if)#ip address 192.168.56.13 255.255.255.0S3(config-if)#no shutdown步骤 7. 为所有三台交换机上的中继端口配置中继和本征 VLAN。检验中继配置情况。S1(config)#interface fa0/1S1(config-if)#switchport mode trunkS1(config-if)#switchport trunk native vlan 56S1(config-if)#no shutdownS1(config-if)

13、#interface fa0/2S1(config-if)#switchport mode trunkS1(config-if)#switchport trunk native vlan 56S2(config)#interface fa0/1S2(config-if)#switchport mode trunk S2(config-if)#switchport trunk native vlan 56S2(config-if)#no shutdownS2(config-if)#endS3(config)#interface fa0/2S3(config-if)#switchport mode trunk S3(config-if)#switchport trunk native vlan 56S3(config-if)#no shutdownS3(config-if)#end使用 show

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

当前位置:首页 > 建筑/环境 > 施工组织

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