Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2006, Shenzhen Polytechnic, All rights reserved. 1 Trunk and VTP 深圳职业技术学院计算机系网络专业.

Similar presentations


Presentation on theme: "© 2006, Shenzhen Polytechnic, All rights reserved. 1 Trunk and VTP 深圳职业技术学院计算机系网络专业."— Presentation transcript:

1 © 2006, Shenzhen Polytechnic, All rights reserved. 1 Trunk and VTP 深圳职业技术学院计算机系网络专业

2 © 2006, Shenzhen Polytechnic. All rights reserved. 2 教学目标( Objectives ) 1. Trunk 概念( Trunking Concepts ) 2. Trunk 操作( Trunking Operation ) 3. VTP 模式( VTP Modes ) 4. VTP 怎样工作( How VTP Works ) 5. 配置 VTP ( Configuring and Verifying VTP ) 6. 配置和验证 Trunk ( Configuring and Verifying Trunk )

3 © 2006, Shenzhen Polytechnic. All rights reserved. 3 Trunk 的历史( History of Trunking )

4 © 2006, Shenzhen Polytechnic. All rights reserved. 4 Trunk 概念( Trunking Concepts )

5 © 2006, Shenzhen Polytechnic. All rights reserved. 5 Trunk 概念( Trunking Concepts ) 1.Trunk 是两个交换机之间网络信息传递的物理和逻辑的连接 A trunk is a physical and logical connection between two switches across which network traffic travels. 2. 一个 Trunk 就是支持传递多个 VLAN 信息的点到点的链路 A trunk is a point-to-point link that supports several VLANs. 3.Trunk 的目的是保留端口。 The purpose of a trunk is to conserve ports. 4.Trunk 将在一个物理链路上绑定多个虚链路,从而在两台交换 机之间允许在单一物理链路上传输多个 VLAN 的信息 Trunking will bundle multiple virtual links over one physical link by allowing the traffic for several VLANs to travel over a single cable between the switches.

6 © 2006, Shenzhen Polytechnic. All rights reserved. 6 Trunk 操作( Trunking Operation ) 1.Trunk 机制有两种,帧过滤和帧标记,帧标记被 IEEE 标准化 Currently two types of trunking mechanisms exist, frame filtering and frame tagging. Frame tagging has been adopted as the standard trunking mechanism by IEEE. 2. 帧标记在帧中插入标识符,这样可以更容易管理 Trunking protocols that use a frame tagging mechanism assign an identifier to the frames to make their management easier. 3. 在以太网中,帧标记有两种方案 Tagging schemes for Ethernet segments : ISL – Cisco 私有( Cisco proprietary Inter-Switch Link protocol ) 802.1Q – IEEE 标准( IEEE standard )

7 © 2006, Shenzhen Polytechnic. All rights reserved. 7 VLANs and Trunking Trunk 提供了在一个网络内的交换机之间高效的通信

8 © 2006, Shenzhen Polytechnic. All rights reserved. 8 VLAN Trunk 协议 ( VLAN Trunking Protocol ) 1.VTP 是一个通告 VLAN 信息的信息系统 A messaging system that advertises VLAN configuration information 2.VTP 维护整个管理域 VLAN 信息的一致性 Maintains VLAN configuration consistency throughout a common administrative domain 3.VTP 仅在 Trunk 端口上发送通告 VTP sends advertisements on trunk ports only 1. 有新 VLAN 加入( “new vlan added” ) 3. 同步到最新的 VLAN 信息( Sync to the latest vlan information ) 2 VTP Domain “szpt”

9 © 2006, Shenzhen Polytechnic. All rights reserved. 9 VTP 模式( VTP Modes ) Server Client Transparent 转发通告( Forwards advertisements ) 同步( Synchronize ) 不包存( Not saved in NVRAM ) 创建( Create vlans ) 修改( Modify vlans ) 删除( Delete vlans ) 发送或转发通告( Sends/forwards advertisements ) 同步( Synchronize ) 保存( Saved in NVRAM ) 创建( Create vlans ) 修改( Modify vlans ) 删除( Delete vlans ) 转发通告( forwards advertisements ) 不同步( does not Synchronize ) 保存( Saved in NVRAM )

10 © 2006, Shenzhen Polytechnic. All rights reserved. 10 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

11 © 2006, Shenzhen Polytechnic. All rights reserved. 11 VTP 怎样工作( How VTP Works ) 1.Add new VLAN 2.Rev 3 --> Rev 4 Server Client 4.Rev 3 --> Rev 4 5.Sync new vlan info 33 4.Rev 3 --> Rev 4 5.Sync new vlan info 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

12 © 2006, Shenzhen Polytechnic. All rights reserved. 12 配置 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 )

13 © 2006, Shenzhen Polytechnic. All rights reserved. 13 创建 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.

14 © 2006, Shenzhen Polytechnic. All rights reserved. 14 验证 VTP 配置( Verifying VTP Configurations ) Sw1#show vtp status

15 © 2006, Shenzhen Polytechnic. All rights reserved. 15 定义 Trunk ( Defining a Trunk ) sw2(config)#int f0/12 sw2(config-if)#switchport mode trunk sw2(config-if)#switchport trunk encapsulation dot1q

16 © 2006, Shenzhen Polytechnic. All rights reserved. 16 验证 Trunk ( Verifying a Trunk ) sw2#show interfaces trunk Port Mode Encapsulation Status Native vlan Fa0/12 on 802.1q trunking 1 Port Vlans allowed on trunk Fa0/12 1-4094 Port Vlans allowed and active in management domain Fa0/12 2,3 Port Vlans in spanning tree forwarding state and not pruned Fa0/12 2,3

17 © 2006, Shenzhen Polytechnic. All rights reserved. 17 思考题( Questions ) 1. Trunk 有怎样的特征? 2. 使用 Trunk 有什么好处? 3. Trunk 有哪两种机制? 4. 帧标记有哪两种方案? 5. 什么是 VTP ? 6. VTP 有几种模式?每种模式的特征是什么? 7. VTP 是怎样工作的 ?


Download ppt "© 2006, Shenzhen Polytechnic, All rights reserved. 1 Trunk and VTP 深圳职业技术学院计算机系网络专业."

Similar presentations


Ads by Google