10.VTP模式:客户(Client)、服务器(Server)、透明(Transprent)
VTP模式描述
|
服务器
|
客户
|
透明
|
可以添加、修改和删除
VLAN
|
是
|
否
|
是
|
可以产生
VTP
消息
|
是
|
否
|
否
|
可以传播
VTP
消息
|
是
|
是
|
是
|
可以接受
VTP
消息的修改
|
是
|
是
|
否
|
缺省
VTP
模式
|
是
|
否
|
否
|
11.如果为VTP使用客户/服务器配置,可生成3种VTP消息:
通告请求(Advertisement request)
子集通告(Subset advertisement)
汇总通告(Summary advertisement)
通告请求消息是由客户产生的VTP消息,客户在NVRAM中不储存VLAN配置信息----而是它们每次启动时学习该信息。
子集通告是由服务器产生,子集通告包含详细的VLAN配置信息,包括VLAN号、名称、类型及其他信息。
汇总通告由交换机在VTP服务器模式下产生的,汇总通告默认5分种生成一次,或者当服务器交换机上配置更改时发生,只包含汇总的VLAN信息。
当服务器交换机生成VTP通告时,它可以包含下面信息:
VLAN的数目与名称;VLAN使用的MTU尺寸;VLAN使用的帧格式;用于VLAN的SAID(如果它是802.10VLAN需要该值);配置修订编号[(configurtion revision number)编号最高的是最新的];VTP域的名称
12.VTP修剪在中继连接上用于动态移除两台交换机之间的非活动VLAN。它需要所有交换机在服务器模式下。
VTP默认配置值
VTP
组件
|
1900
系列交换机
|
2950
系列交换机
|
域名
|
无
|
无
|
模式
|
服务器
|
服务器
|
口令
|
无
|
无
|
陷阱(
trap
)
|
启用
|
禁用
|
修剪
|
启用
|
禁用
|
13.1900系列交换机的VTP配置
(config)#vtp domain VTP_domain_name
(config)#vtp server | client | transparent
(config)#vtp password enable | disable
(config)#vtp pruning enable | disable
(config)#vtp trap enable | disable
#show vtp
14.2950系列交换机VTP配置
老方法:
#vlan database
(vlan)#vtp doamin VTP_domain_name
(vlan)#vtp server | client | transparent
(vlan)#vtp password VTP_password
(vlan)#vtp pruning
(vlan)#abort (退出不保存) 或(vlan)#exit (退出保存)
#configure terminal
(config)#snmp-server enable traps vtp
12.1版本或以后:
(config)#vtp doamin VTP_domain_name
(config)# vtp mode server | client | transparent
(config)# vtp password VTP_password
(config)# vtp pruning
(config)# snmp-server enable traps vtp
#show vtp status 检查配置
#show vtp counters 查看VTP消息发送与接收相关的VTP统计信息
15.动态中继协议(Dynamic Trunk Protocol DTP)是动态ISL(DISL)的增强版本
DTP模式与操作
DTP
模式
|
产生
DTP
消息
|
帧标记
|
打开(
on
)或中继(
trunk
)
|
是
|
是
|
期望
(desirable)
|
是
|
否
|
自动协商(
Auto-Negotiate
)
|
否
|
否
|
关闭(
off
)
|
否
|
否
|
非协商(
No-Negotiate
)
|
否
|
是
|
形成中继
你的交换机
|
远端交换机
|
打开
|
打开、期望、自动
|
期望
|
打开、期望、自动
|
自动
|
打开、期望
|
非协商
|
非协商
|
16.1900系列交换机中继配置只有两个100BaseTX/FX接口支持中继----所有的10BaseT与AUI端口只能是接入链路连接
(config)#interface fastethernet 0/port_#
(config-if)#trunk on | off | desirable | auto
#show trunk A | B 接口A是fastethernet 0/26 ;接口B是fastethernet 0/27
17.2950系列交换机中继配置
(config)#interface type 0/port_#
(config-if)#switchport mode trunk | dynamic desirable | dynamic auto | nonegotiate
(config-if)#switchport trunk native vlan vlan_# (修改本地VLAN)
#show interfaces type o/port_# switchport | trunk
18.1900系列交换机VLAN配置
(config)#vlan vlan_# [name vlan_name] vlan号范围从1~1000
(config-if)#vlan-membership static vlan_#
#show vlan
#show vlan-membership 查看接口分配给VLAN
#show spantree [vlan_#] 查看每个端口、分配给端口的VLAN以及它是如何分配的
19.2950系列交换机 老方法配置
#vlan database
(vlan)#vlan vlan_# [name vlan_name]
12.1以后版本
(config)#vlan vlan_#
(config-vlan)#name vlan_name
(config-if)#switchport mode access
(config-if)#switchport access vlan vlan_#
#show vlan
#show spanning-tree
本文转自 qwjhq 51CTO博客,原文链接:http://blog.51cto.com/bingdian/14123