(CCNA实验下)实验四:Trunk和VTP配置

上传人:缘*** 文档编号:189760618 上传时间:2021-08-07 格式:DOCX 页数:10 大小:111.93KB
返回 下载 相关 举报
(CCNA实验下)实验四:Trunk和VTP配置_第1页
第1页 / 共10页
(CCNA实验下)实验四:Trunk和VTP配置_第2页
第2页 / 共10页
(CCNA实验下)实验四:Trunk和VTP配置_第3页
第3页 / 共10页
(CCNA实验下)实验四:Trunk和VTP配置_第4页
第4页 / 共10页
(CCNA实验下)实验四:Trunk和VTP配置_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《(CCNA实验下)实验四:Trunk和VTP配置》由会员分享,可在线阅读,更多相关《(CCNA实验下)实验四:Trunk和VTP配置(10页珍藏版)》请在金锄头文库上搜索。

1、(CCNA实验下)实验四:Trunk和VTP配置实验四:Trunk和VTP配置实验目的1、 掌握Trunk和VTP工作原理2、 学习配置Trunk的命令和步骤3、 学习配置VTP命令和步骤实验要求1、 拓扑与地址规划;2、 Trunk基本配置和VTP配置3、 验证Trunk和VTP配置并给出配置清单实验拓扑(可选)第5页共9页实验设备(环境、软件)交换机4台,交叉线4条,直通线2条,Pc机2台。实验设计到的基本概念和理论VTP即是VLAN中继协议,对于VTP在交换机之间传送VLAN信息,必须知道一面3种 需求:1、两台交换机的VTP管理域名必须设置一样。2、其中一台交换机必须配置为VTP服务器

2、。3、不需要路由器VTP有三种操作模式:1、服务器,在VTP服务器模式下,VLAN配置保存在NVRAM中。2、客户机,VLAN配置不保存在NVRAM中。3、透明,在透明模式下,交换机并不参与VTP域的工作,也不与其他交换机共享其VLAN 数据库,但他们仍然将通过任何己经配置好的中继链路转发VTP通告。在网络中配置至少两台VTP服务器交换机。因为只有服务器交换机可以创建、删除 和修改VLAN,所以应该配置一台备用VTP服务器,以防主要VTP服务器被禁用。如 果网络中的所有交换机都配置为VTP客户端模式,您将无法在网络中创建新的VLANO在VTP服务器上启用VTP之后,再创建VLANo在启用VTP

3、之前创建的VLAN 会被删除。务必确保为域中互连的交换机配置了中继端口。VTP信息仅可通过中继端口 交换。配置VTP客户端模式。请不要忘记,交换机默认不是VTP客户端模式。您必须配 置该模式。配置接入端口。当交换机处于VTP客户端模式时,不能添加新的VLANo仅可将接 入端口指定到现有VLANo实验过程和主要步骤1、 主机的IP分配情况:主机IP地址子网掩码PC0192.168.1.1255.255.255.0PC1192.168.1.2255.255.255.02、交换机的配置情况(配置Trunk与VTP)Switchl上的配置:SwitchenableSwitch#config tEnte

4、r configuration commands, one per line. End with CNTL/Z.Switch(config)#vtp domain testChanging VTP domain name from NULL to testSwitch(config)#vtp password 123456Setting device VLAN database password to 123456Switch(config)#interface f2/1Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN:Lin

5、eprotocolonFastEthernet2/1, changed state to down%LINEPROTO-5-UPDOWN:LineprotocolonFastEthernet2/1, changed state to upSwitch(config-if)#exitSwitch(config)#interface fO/1Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN:LineprotocolonFastEthernetO/1, changed state to down%LINEPROTO-5-UPDOWN

6、:LineprotocolonFastEthernetO/1, changed state to upInterfaceInterfaceInterfaceInterfaceSwitch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIGJ: Configured from console by console Switch#copy running-config startup-configDestination filename startup-config?Building configuration.OKSwitch#Switc

7、hO上的配置SwitchenableSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#interface f0/1Switch(config-if)#switchport mode accessSwitch(config-if)#switchport

8、 access vlan 10Switch(config-if)#exitSwitch(config)#interface f1/1Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet1/1, changed state to down%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet1/1, changed state to upSwitch(config-if)#exitSwitch(config

9、)#interface f2/1Switch(config-if)#endSwitch#%SYS-5-CONFIGJ: Configured from console by console Switch#copy running-config startup-configDestination filename startup-config?Building configuration.OKSwitch#Switch3上的配置SwitchenableSwitch#config tEnter configuration commands, one per line. End with CNTL/

10、Z.Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#interface f0/1Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 10Switch(config-if)#exitSwitch(config)#interface f1/1Switch(config-if)#switchp

11、ort mode trunkSwitch(config-if)#exitSwitch(config)#interface f2/1Switch(config-if)#switchport mode trunkon Interfaceon Interface%LINEPROTO-5-UPDOWN:LineprotocolFastEthernet2/1, changed state to down%LINEPROTO-5-UPDOWN:LineprotocolFastEthernet2/1, changed state to upSwitch(config-if)#end%SYS-5-CONFIG

12、J: Configured from console by consoleSwitch#copy running-config startup-configDestination filename startup-config?Building configuration.OKSwitch#Switch2上的配置SwitchenableSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vtp mode clientSetting device to VTP CLIE

13、NT mode.Switch(config)#interface fO/1Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#interface f2/1Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#endSwitch#%SYS-5-CONFIGJ: Configured from console by consoleSwitch#copy running-config startup-co

14、nfigDestination filename startup-config?Building configuration.OKSwitch#第12页共9页3、显示部分交换机上VTP的配置情况如下:Switchl 上物理用 Switchl命令行IOS命令行SvJicctieaableSwicch#sh.ovr vtp statusVTP VersionConfiguxation Se-vi sion Maxxmum VLANs supported locaXly Number of existing- VLANsVTPVTDVTPVTPVTPMDGOpezatxna Mode Domain

15、N口mo Pruning Mode V2 ModeTraps Generation diga tCcanEiguxa txon ZLon匕edL by 0Z55ServertostDX3atledDisabledDisabled03cls OxaF 0x12 0xA.D OxCS: 0sc2F OxB 0x120.0.0 o匕 0-0-00 00:00:00Local updater ID is 0.0.0.0 Cno valid interface round) Switch#EII复制11粘贴SwitchO 上弋 Switch。物理配警命令行IOS命令行Svri,cchLenabLe Switchtghow vtp status VTP V

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

当前位置:首页 > IT计算机/网络 > 其它相关文档

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