实验时间
20090522    14时~  15   
实验人
子旭
 
实验名称
VTP配置
所属章节
ATEN 1
实验目的
使其整个内部网络能够互相学习VTP协议
实验要求:
1.       保证4台交换机能够学习到VTP协议
2.       SW3交换机设置为透明模式且能够让其他交换机学习到VTP协议
3.       SW3设置与其他交换属于不同的域并且其他交换机能够学习
VTP协议;
实验拓扑
详细CSICO VTP协议配置及实验_协议
实验步骤
S1配置:
Router>enable      进入特权模式
Router#config terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname s1       命名为S1
s1(config)#exit    退出
s1#vlan database   进入配置VLAN模式
s1(vlan)#vtp domain zixu  vtp域名为zixu
s1(vlan)#vtp server  vtp模式为server
s1(vlan)#vtp password zixu   密码为zixu
s1(vlan)#vtp v2-mode     vtp版本号为2
s1(vlan)#vtp pruning     配置修建
s1(vlan)#exit 
s1#config terminal        全局模式                          ^
s1(config)#interface f0/0   进入指定的端口号
s1(config-if)#switchport mode trunk  将0/0配置中继链路(trunk)
s1(config-if)#no shut  激活模式
s1(config)#interface f0/14
s1(config-if)#switchport mode trunk
s1(config-if)#no shut
s1(config-if)#exit
s1(config)#interface f0/15
s1(config-if)#switchport mode trunk
s1(config-if)#no shut
s1(config-if)#exit
s1(config)#exit
s1#vlan database
s1(vlan)#vlan 2   创建VLAN
s1(vlan)#vlan 3
s1(vlan)#vlan 4
s1(vlan)#exit
 
S2配置:
Router>enable
Router#config terminal
Router(config)#hostname s2
s2(config)#exit
s2#vlan database
s2(vlan)#vtp domain zixu  指定域名
s2(vlan)#vtp client   配置为客户机
s2(vlan)#vtp password zixu  制定密码zixu
s2(vlan)#vtp v2-mode  配置一致的版本V2
s2(vlan)#exit
s2#config terminal
s2(config)#interface f0/0
s2(config-if)#switchport mode trunk
s2(config-if)#no shut
s2(config-if)#exit
s2(config)#interface f0/14
s2(config-if)#switchport mode trunk
s2(config-if)#no shut
s2(config)#interface f0/15
s2(config-if)#switchport mode trunk
s2(config-if)#no shut
s2(config-if)#exit
s2(config)#interface f0/14
s2(config-if)#switchport mode trunk
s2(config-if)#no shut
s2(config-if)#exit
s2(config)#exit
s2#show vlan-switch
 
S3配置:
Router>enable
Router#config terminal
Router(config)#hostname s3
s3(config)#exit
s3#vlan database
s3(vlan)#vtp domain zixu
s3(vlan)#vtp client
s3(vlan)#vtp password zixu
s3(vlan)#vtp v2-mode
s3(vlan)#exit
s3#config t
s3#config terminal
s3(config)#interface f0/14
s3(config-if)#switchport mode trunk
s3(config-if)#no shut
s3(config-if)#exit
s3(config)#interface f0/15
s3(config-if)#switchport mode trunk
s3(config-if)#no shut
s3(config-if)#no shutdown
s3(config-if)#exit
s3(config)#exit
s3#show vlan-switch
 
S4配置:
Router>enable
Router#config terminal
Router(config)#hostname s4
s4(config)#exit
s4#vlan database
s4(vlan)#vtp domain zixu
s4(vlan)#vtp client
s4(vlan)#vtp password zixu
s4(vlan)#vtp v2-mode
s4(vlan)#exit
s4#config terminal
s4(config)#interface f0/14
s4(config-if)#switchport mode trunk
s4(config-if)#no shut
s4(config-if)#exit
s4(config)#in
s4(config)#interface f0/15
s4(config-if)#switchport mode trunk
s4(config-if)#no shut
s4(config-if)#exit
s4(config)#exit
s4#show vlan-switch
 
实验要求2
只需在S3交换机上做以下配置,其中在SW1交换机中创建vlan ,在其他交换机中能否学习到;
s3#
s3#vlan database
s3(vlan)#vtp transparent  透明模式
s3(vlan)#exit
s3#show vlan-switch   查看vlan信息
 
实验要求3
只需在S3交换机上做以下配置,其中在SW1交换机中创建vlan ,在其他交换机中能否学习到;
s3#
s3#vlan database
s3(vlan)#vtp domain qien  配置域名为qien
s3(vlan)#exit
s3#show vlan-switch
 
实验结果分析
通过以上三个要求及实验步骤完全可以实现学习VTP协议及配置
实验结论
Vtp协议分为三种模式:serverclienttransparent
Server功能:可以创建、删除及修改vlan信息,可以学习及转发
Client功能:不可以创建、删除及修改vlan信息,可以学习及转发
Transparent功能:可以创建、删除及修改vlan信息(本地生效),可以转发,不学习其他VTP协议
VTP协议中有2种版本:v1v2
V2支持不同域可以转发其他交换机的信息
查询结果:
详细CSICO VTP协议配置及实验_VTP_02详细CSICO VTP协议配置及实验_交换_03详细CSICO VTP协议配置及实验_交换_04详细CSICO VTP协议配置及实验_交换_05
截出的四张图分别为S1 S2 S3 S4的查询结果
S2为不同的域名  V2版本;
以上实验通过小凡模拟工具实现!
 
欢迎对于网络感兴趣的朋友们加入本Q群:
         56458991 网络技术联盟群(1)已满
         8139100  网络技术联盟群(2)已满
         88077315 网络技术联盟(3) 
         62606585 网络技术联盟(4)