打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
VTP的配置和故障排除

VTP的配置和故障排除  

2009-12-13 13:20:17|  分类: CCNA学习指南(中 |  标签: |字号 订阅

 

配置VTP

S1配置:
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp domain Lammle
Changing VTP domain name from NULL to Lammle
Switch(config)#vtp password todd
Setting device VLAN database password to todd
Switch(config)#do show vtp password
VTP Password: todd
Switch(config)#do show vtp status
VTP Version                     : 2             
Configuration Revision          : 0
Maximum VLANs supported locally : 255
Number of existing VLANs        : 5
VTP Operating Mode              : Server
VTP Domain Name                 : Lammle
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x16 0xFD 0x4D 0x2B 0x1C 0xB9 0x39 0xD7
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
Switch(config)#interface FastEthernet0/1
Switch(config-if)#switchport mode trunk
Core配置:
Switch>ena
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain Lammle
Changing VTP domain name from NULL to Lammle
Switch(config)#vtp password todd
Setting device VLAN database password to todd
Switch(config)#do show vtp status
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 255
Number of existing VLANs        : 5
VTP Operating Mode              : Client
VTP Domain Name                 : Lammle
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x16 0xFD 0x4D 0x2B 0x1C 0xB9 0x39 0xD7
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Switch(config-if)#int range f0/1 - 2
Switch(config-if-range)#switchport mode trunk

S2配置:
Switch>ena
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain Lammle
Changing VTP domain name from NULL to Lammle
Switch(config)#vtp password todd
Setting device VLAN database password to todd
Switch(config)#do show  vtp status
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 255
Number of existing VLANs        : 5
VTP Operating Mode              : Client
VTP Domain Name                 : Lammle
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x16 0xFD 0x4D 0x2B 0x1C 0xB9 0x39 0xD7
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
witch(config-if)#int f0/2
Switch(config-if)#switchport mode trunk


S1上划分VLAN:
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#name Sales
Switch(config-vlan)#vlan 3
Switch(config-vlan)#name Marketing
Switch(config-vlan)#vlan 4
Switch(config-vlan)#name Accounting

Core上查看:
Switch#show vlan bri

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/3, Fa0/4, Fa0/5, Fa0/6
                                                Fa0/7, Fa0/8, Fa0/9, Fa0/10
                                                Fa0/11, Fa0/12, Fa0/13, Fa0/14
                                                Fa0/15, Fa0/16, Fa0/17, Fa0/18
                                                Fa0/19, Fa0/20, Fa0/21, Fa0/22
                                                Fa0/23, Fa0/24
2    Sales                            active   
3    Marketing                        active   
4    Accounting                       active   
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active   


S2上查看:
Switch#show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/3, Fa0/4, Fa0/5
                                                Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24
2    Sales                            active   
3    Marketing                        active   
4    Accounting                       active   
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active  

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Cisco學習筆記
思科三层交换3560配置VTP | 168yeah博客
思科模拟器常用命令总结(续)
以太网通道与vtp详解及应用实例
VLAN总结及配置示例
交换机命令
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服