阳光照明灯具:VTP的配置和故障排除

来源:百度文库 编辑:九乡新闻网 时间:2024/10/04 04:38:15

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