1 / 20

CCNA (640-802)

---VTP 协议. CCNA (640-802). VLAN 配置. 添加 VLAN 给 VLAN 命名 删除 VLAN. 这些配置在同一企业网中的交换机上配置基本相同,重复配置浪费时间,也容易出错!. Switch#vlan database switch(vlan)#vlan 2 name abc switch(vlan)#vlan 3 name def. VTP 协议. VLAN Trunk Protocol 从一个控制点,维护整个企业网上 VLAN 的添加、删除和重命名工作. VTP 域. VLAN 2 name abc

Télécharger la présentation

CCNA (640-802)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ---VTP协议 CCNA (640-802)

  2. VLAN配置 • 添加VLAN • 给VLAN命名 • 删除VLAN 这些配置在同一企业网中的交换机上配置基本相同,重复配置浪费时间,也容易出错! Switch#vlan database switch(vlan)#vlan 2 name abc switch(vlan)#vlan 3 name def ..

  3. VTP协议 • VLAN Trunk Protocol • 从一个控制点,维护整个企业网上VLAN的添加、删除和重命名工作 VTP域 VLAN 2 name abc VLAN 3 name def VTP通告

  4. VTP域 • VTP域的组成 相同域名的,通过Trunk相互连接的,一组交换机 域名:abc 使用Trunk连接

  5. VTP的运行模式4-1 • VTP模式有3种 服务器模式(Server) 客户机模式(Client) 透明模式(Transparent)

  6. VTP的运行模式4-2 • Server模式 提供VTP消息:包括VLAN ID和名字信息 学习相同域名的VTP消息 转发相同域名的VTP消息 可以添加、删除和更改VLAN 不同域名: 不学习 不转发 VTP域:test 模式:Server VTP域:abc 模式:Server VTP域:test 模式:Server VLAN 2 name AA VLAN 2 name AA VLAN 2 name AA VLAN 2 name AA

  7. VTP的运行模式4-3 请求VTP消息 学习相同域名的VTP消息 转发相同域名的VTP消息 不可以添加、删除和更改VLAN • Client模式 不同域名: 不学习 不转发 VTP域:test 模式:Server VTP域:test 模式:Client VTP域:test 模式:Client 不生效 VLAN 2 name AA VLAN 2 name AA VLAN 2 name AA VLAN 3 name BB

  8. VTP的运行模式4-4 不提供VTP消息 不学习VTP消息 转发VTP消息 可以添加、删除和更改VLAN,只在本地有效 • Transparent模式 VTP域:test 模式:Server VTP域:test 模式:Transparent VTP域:test 模式:Client 只在本地生效 VLAN 2 name AA VLAN 2 name AA VLAN 3 name BB

  9. VTP通告4-1 • VTP通告 客户机的通告请求-获取VLAN信息 交换机重新启动后 VTP域名变更后 交换机接收到了配置修订号大的汇总通告 服务器的通告响应-发送VLAN信息 汇总通告 -用于通知邻接的Catalyst交换机目前的VTP域名和 配置修订编号;每隔300秒一次,或配置改变的时候发送通告 子集通告 -包含VLAN的详细信息 • VTP通告: • 使用组播发送,地址为01-00-0c-cc-cc-cc • 只通过中继端口传递 • VTP消息通过VLAN 1传送

  10. VTP修剪 • 减少中继链路上的不必要的广播信息 A Trunk Trunk Trunk 丢弃 采用VTP修剪后,只有交换机B通告了它使用VLAN 3的接口后,A才把VLAN 3的广播转发到B,否则不会转发广播 C B D 广播 交换机B上没有VLAN 3的端口,交换机B丢弃这个广播包;浪费中继链路的带宽和交换机的处理资源 VLAN 3 VLAN 4 VLAN 1 VLAN 3

  11. VTP 配置3-1 • 创建VTP 域 switch(config)# vtp domian domain_name • 配置交换机的VTP模式 switch(config)# vtp mode server | client | transparent

  12. VTP配置3-2 • 配置VTP口令 switch(config)# vtp password password • 配置VTP修剪 switch(config)# vtp pruning • VTP版本的配置 switch(config)# vtp version 2

  13. VTP配置3-3 • 查看VTP的配置 switch# show vtp status

  14. VTP模式(VTP Modes) • 创建(Create vlans) • 修改(Modify vlans) • 删除(Delete vlans) • 发送或转发通告(Sends/forwards advertisements) • 同步(Synchronize) • 保存(Saved in NVRAM) Server • 转发通告(Forwards advertisements) • 同步(Synchronize) • 不包存(Not saved in NVRAM) • 创建(Create vlans) • 修改(Modify vlans) • 删除(Delete vlans) • 转发通告(forwards advertisements) • 不同步(does notSynchronize) • 保存(Saved in NVRAM) Client Transparent

  15. VTP怎样工作(How VTP Works) • VTP通告以组播帧发送 • VTP advertisements are sent as multicast frames • VTPserver和client同步到最新的配置版本号 • VTP servers and clients synchronized to latest revision number • VTP通告在变化时,或者每5分钟发送 • VTP advertisement are sent every five minutes or when there is a change

  16. VTP怎样工作(How VTP Works) • VTP通告以组播帧发送 • VTP advertisements are sent as multicast frames • VTPserver和client同步到最新的配置版本号 • VTP servers and clients synchronized to latest revision number • VTP通告在变化时,或者每5分钟发送 • VTP advertisement are sent every five minutes or when there is a change 1.Add new VLAN 2.Rev 3 --> Rev 4 Server 3 3 4.Rev 3 --> Rev 4 5.Sync new vlan info 4.Rev 3 --> Rev 4 5.Sync new vlan info Client Client

  17. 配置Trunk接口 (Enable trunking) 配置VTP域名 (VTP domain name) 指定VTP模式 (VTP mode (server/client/transparent)—VTP server mode is the default) VTP密码(VTP password) 配置VTP(VTP Configuration)

  18. 创建VTP域(Creating a VTP Domain) sw1#vlan database sw1(vlan)#vtp domain cisco VTP domain cisco modified sw1(vlan)#vtp server sw1(vlan)#vtp password cisco sw1(vlan)#exit APPLY completed.

  19. 验证VTP配置(Verifying VTP Configurations) Sw1#show vtp status

More Related