VTP配置及VLAN间路由.docx
文本预览下载声明
桂林电子科技大学 思科网络技术教程 实验报告实验名称实验4 VTP配置及VLAN间路由辅导员意见:成绩 辅导员 签 名院 系计算机科学与工程学院专业计算机科学与技术学 号姓名同 作 者实验日期2015年月日实验4 VTP配置及VLAN间路由第一部分 基本VTP配置【实验目的:】1、执行基本交换机配置2、配置主机 PC 上的以太网接口3、在交换机上配置 VTP 和安全功能【实验预备知识】: 复习理论课讲解的VTP相关知识和配置命令。【实验拓扑图】:分析:配置VTP,首先确定结构,在结构中可以看到需要配置3个交换机其中确定并配置S2交换机是客户端,S3交换机是透明,S1是服务器和相同域,相同的管理接口。所以S2和S3应该配置连接PC端的为接入模式分配不同的vlan和配置端口fa0/6、fa0/11 和 fa0/18,使它们只支持一台主机,并且动态获知该主机的 MAC 地址,交换机相连接口配置中继和本征,管理接口地址。S1配置vlan 【实验内容】:任务 1:执行基本交换机配置根据以下原则配置交换机 S1、S2 和 S3 并保存配置:? 按照拓扑所示配置交换机主机名。? 禁用 DNS 查找。? 将执行模式口令配置为 class。? 为控制台连接配置口令 cisco。? 为 vty 连接配置口令 cisco。任务 2:配置主机 PC 上的以太网接口使用地址表中的 IP 地址和默认网关配置PC1、PC2、PC3、PC4、PC5 和 PC6 的以太网接口。任务 3:在交换机上配置 VTP 和安全功能步骤 1. 启用 S2 和 S3 上的用户端口。将用户端口配置为接入模式。请参阅拓扑图来确定哪些端口连接到最终用户设备。S2(config)#interface fa0/6S2(config-if)#switchport mode accessS2(config-if)#no shutdownS2(config-if)#interface fa0/11S2(config-if)#switchport mode accessS2(config-if)#no shutdownS2(config-if)#interface fa0/18S2(config-if)#switchport mode accessS2(config-if)#no shutdown步骤 2. 用#show vtp status三台交换机上的当前 VTP 配置。步骤 3. 在所有三台交换机上配置工作模式、域名和 VTP 口令。S1(config)#vtp mode serverS1(config)#vtp domain Lab4Changing VTP domain name from NULL to Lab4S1(config)#vtp password ciscoSetting device VLAN database password to ciscoS1(config)#endS2(config)#vtp mode clientSetting device to VTP CLIENT modeS2(config)#vtp domain Lab4Changing VTP domain name from NULL to Lab4S2(config)#vtp password ciscoSetting device VLAN database password to ciscoS2(config)#endS3(config)#vtp mode transparentSetting device to VTP TRANSPARENT mode.S3(config)#vtp domain Lab4Changing VTP domain name from NULL to Lab4S3(config)#vtp password ciscoSetting device VLAN database password to ciscoS3(config)#endS1 S2 S3 (config)#interface fa0/1S1 S2 S3 (config-if)#switchport mode trunkS1 S2 S3 (config-if)#switchport trunk native vlan 99S1 S2 S3 (config-if)#no shutdown步骤 5. 在 S2 和 S3 接入层交换机上配置端口安全功能。S2(config)#interface fa0/6S2(config-if)#switchport port-securityS2(config-if)#switchport port-security maximum 1S2(config-i
显示全部