Cisco CCNA-VTP配置实验与步骤

    作者:课课家教育更新于: 2016-06-23 14:22:47

    软考,您想通过吗?一次通过才是硬道理

      VTP是一种建构于局域网交换技术的网络管理的技术,它有三种工作模式:VTP Server、VTP Client 和 VTP Transparent。

      1.服务器模式(Server)

      提供VTP消息,包括VLAN ID和名字信息;学习相同域名的VTP消息;转发相同域名的VTP消息;可以添加、删除和更改VLAN VLAN信息写入NVRAM。该模式下不能使用扩展。

      2.客户机模式(Client)

      请求VTP消息;学习相同域名的VTP消息;转发相同域名的VTP消息;不可以添加、删除和更改VLAN VLAN信息不会写入NVRAM。该模式下不能使用增强型软件映像提供的VID,即只能使用2-1001这一段的值。1,1002-1005均为系统默认VID。要使用1006-4096作VID的值,只能关闭VTP或采用透明模式。

      3.透明模式(Transparent)

      不提供VTP消息;不学习VTP消息;转发VTP消息;可以添加、删除和更改VLAN,只在本地有效VLAN信息写入NVRAM。

         一、实验目的:掌握VLAN及VTP的配置

    Cisco CCNA-VTP配置实验与步骤_Cisco_VTP配置_课课家

      二、实验要求

      创建VTP域命令为Cisco,密码为password

      Switch A 配置成Server模式,创建VLAN 10和VLAN 20名为aabb,并开启VTP修剪功能。

      Switch B 配置成Client模式,并将端口1—10加入VLAN 10,将端口11—20划分到VLAN 20。

      Switch C 配置成Transparent模式。

    VTP配置

      三、实验步骤

      步骤1:因为VTP信息之在trunk接口上发送,所以先将交换机相连的接口配置成trunk接口

      Switch A(config)#int f0/0

      如果交换机支持多种VTP封装的话,则需要先指定封装。

      Switch A(config-if)#switch port trunk encaPSulation dot1q //2950上无此命令

      Switch A(config-if)#switch port mode trunk

      Switch A(config)#int f0/1

      Switch A(config-if)#switch port trunk encapsulation dot1q

      Switch A(config-if)#switch port mode trunk

      Switch B(config)#int f0/0

      Switch B(config-if)#switch port trunk encapsulation dot1q

      Switch B(config-if)#switch port mode trunk

      Switch C(config)#int f0/0

      Switch C(config-if)#switch port trunk encapsulation ot1q

      Switch C(config-if)#switch port mode trunk

      步骤2:在Switch A上做VTP的配置并创建vlan

      Switch A(config)#vtp mode server

      Switch A(config)#vtp domainstsd

      Switch A(config)#vtp password cisco

      Switch A(config)#vtp pruning

      Switch A#vlan 10 name aa

      Switch A#vlan 20 name bb

      步骤3:在Switch B上做配置

      Switch B(config)#vtp mode client

      Switch B(config)#vtp domainstsd

      Switch B(config)#vtp password cisco

      步骤4:在Switch C上做配置

      Switch C(config)#vtp mode transparent

      步骤5:在Switch B上查看vlan信息,检查是否可以看到创建的vlan 10和vlan 20

      可以尝试在Switch B上面创建vlan,观察client模式的交换机是否能够创建vlan。在transpartent上面创建vlan,并查看vlan信息的保存位置。

      VTP配置实验实现了服务器模式交换机上的VLAN信息通过中继端口通告给客户机模式的交换机,在透明模式的交换机上创建独立的VLAN。

CCNA 更多推荐

课课家教育

未登录