实验二 VLAN Trunking和VLAN配置

上传人:pu****.1 文档编号:511939035 上传时间:2023-11-25 格式:DOC 页数:5 大小:52KB
返回 下载 相关 举报
实验二 VLAN Trunking和VLAN配置_第1页
第1页 / 共5页
实验二 VLAN Trunking和VLAN配置_第2页
第2页 / 共5页
实验二 VLAN Trunking和VLAN配置_第3页
第3页 / 共5页
实验二 VLAN Trunking和VLAN配置_第4页
第4页 / 共5页
实验二 VLAN Trunking和VLAN配置_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《实验二 VLAN Trunking和VLAN配置》由会员分享,可在线阅读,更多相关《实验二 VLAN Trunking和VLAN配置(5页珍藏版)》请在金锄头文库上搜索。

1、实验2VLAN Trunking和VLAN配置1实验目的 通过本实验,你将可以掌握以下技能: 进一步了解和掌握VALN的基本概念,掌握按端口划分VLAN的配置; 通过VLAN Trunking配置跨交换机的VLAN; 配置VTP; 查看上述配置项目的有关信息。2实验拓扑如图1所示,用交叉网线把C2950A交换机的FastEthernetO/12端口和C2950B交换机的FastEthernet0/12端口连接起来。图1 交换机通过Trunk连接3实验要求 将交换机A的VTP配置成Server模式、交换机B为Client模式,两者同一VTP域名Test。在交换机A上配置VLAN。通过实验验证当在

2、两者之间配置Trunk后,交换机B自动获得了与交换机A同样的VLAN配置。4实验步骤电缆连接完成后,在超级终端正常开启的情况下,接通2950交换机的电源,实验开始。第1步:配置C2950A交换机的VTP和VLAN在2950系列交换机上配置VTP和VLAN的方法有两种,本实验演示的是使用vlan database命令的一种。 使用vlan database命令进入VLAN配置模式,在VLAN配置模式下,设置VTP的一系列属性,把C2950A交换机设置成VTP Server模式(缺省配置),VTP域名为Test:C2950A#vlan databaseC2950A(vlan)#vtp server

3、Setting device to VTP SERVER mode.C2950A(vlan)#vtp domain testChanging VTP domain name from exp to test . 定义V10、V20、V30和V40等4个VLAN:C2950A(vlan)#vlan 10 name V10VLAN 10 added: Name: V10C2950A(vlan)#vlan 20 name V20VLAN 20 added: Name: V20C2950A(vlan)#vlan 30 name V30VLAN 30 added: Name: V30C2950A(vla

4、n)#vlan 40 name V40VLAN 40 added: Name: V40每增加一个VLAN,交换机便显示增加VLAN信息。 show vtp status命令显示VTP相关的配置和状态信息:主要应当关注VTP模式、域名、VLAN数量等信息。C2950A#sh vtp statusVTP Version : 2Configuration Revision : 2Maximum VLANs supported locally : 250Number of existing VLANs : 9VTP Operating Mode : ServerVTP Domain Name : te

5、stVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x32 0x8C 0xD9 0x00 0xC1 0x05 0x3B 0x5F Configuration last modified by 192.168.1.1 at 3-1-93 00:03:47 show vtp counters命令列出VTP的统计信息:各种VTP相关包的收发情况表明,因为C2950A交换机与C2950B交换机暂时还没有进行VTP信息的传输,所以各项数值均为0。C2950A#sh

6、vtp countersVTP statistics:Summary advertisements received : 0Subset advertisements received : 0Request advertisements received : 0Summary advertisements transmitted : 0Subset advertisements transmitted : 0Request advertisements transmitted : 0Number of config revision errors : 0Number of config dig

7、est errors : 0Number of V1 summary errors : 0VTP pruning statistics:Trunk Join Transmitted Join Received Summary advts received from non-pruning-capable device- - - - 把端口分配给相应的VLAN,并将端口设置为静态VLAN访问模式:在接口配置模式下用switchport access vlan和switchport mode access命令(只用后一条命令也可以)。C2950A(config)#int fa0/1C2950A(c

8、onfig-if)#switchport mode access C2950A(config-if)#switchport access vlan 10C2950A(config-if)#int fa0/2C2950A(config-if)#switchport mode accessC2950A(config-if)#switchport access vlan 20C2950A(config-if)#int fa0/3C2950A(config-if)#switchport mode accessC2950A(config-if)#switchport access vlan 30C295

9、0A(config-if)#int fa0/4C2950A(config-if)#switchport mode access C2950A(config-if)#switchport access vlan 40 第2步:配置C2950B交换机的VTP 配置C2950B交换机的VTP属性,域名设为Test,模式为Client。C2950B#vlan databaseC2950B(vlan)#vtp domain testChanging VTP domain name from exp to test .C2950B(vlan)#vtp clientSetting device to VTP

10、 CLIENT mode. 第3步:配置和监测两个交换机之间的VLAN Trunking 将交换机A的24口配置成Trunk模式:C2950A(config)#interface fa0/24C2950A(config-if)#switchport mode trunk 将交换机B的24口也配置成Trunk模式:C2950B(config)#interface fa0/24C2950B(config-if)#switchport mode trunk 用show interface fa0/24 switchport查看Fa0/24端口上的交换端口属性,我们关心的是几个与Trunk相关的信息。

11、它们是:运行方式为Trunk、封装格式为802.1Q、Trunk中允许所有VLAN传输等。 C2950B#sh int fa0/24 switchportName: Fa0/24Switchport: EnabledAdministrative Mode: trunkOperational Mode: trunkAdministrative Trunking Encapsulation: dot1qOperational Trunking Encapsulation: dot1qNegotiation of Trunking: OnAccess Mode VLAN: 1 (default)Tr

12、unking Native Mode VLAN: 1 (default)Trunking VLANs Enabled: ALLPruning VLANs Enabled: 2-1001 Protected: false Voice VLAN: none (Inactive)Appliance trust: none 第4步:查看C2950B交换机的VTP和VLAN信息完成两台交换机之间的Trunk配置后,在C2950B上发出命令查看VTP和VLAN信息:C2950B#sh vtp statusVTP Version : 2Configuration Revision : 2Maximum VL

13、ANs supported locally : 250Number of existing VLANs : 9VTP Operating Mode : ClientVTP Domain Name : TestVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x74 0x33 0x77 0x65 0xB1 0x89 0xD3 0xE9 Configuration last modified by 0.0.0.0 at 3-1-93 00:20:23Local updater ID is 0.0.0.0 (no valid interface found)C2950B#sh vlan briefVLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8

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

当前位置:首页 > 幼儿/小学教育 > 小学课件

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