background image
LAN Switch Configuration 199
Several items are particularly important in these configurations. The vtp global command
in Example 4-13 shows Switch1 as the server, with domain Hartsfield. No password is used
in this case. Switch2 is not configured with the domain name but will learn it with the first
advertisement. Missing from Example 4-14 is the definition of the VLANs, which is not only
unnecessary but also is not allowed when in VTP client mode. And, because pruning was
enabled in the vtp command on Switch1, VTP prunes VLAN3 from Switch2 because Switch2
has no ports in VLAN3. VLAN3 broadcasts received by Switch1 are not forwarded to Switch2.
To verify a recent configuration change, or to just view the VTP configuration information, use
the show vtp privileged EXEC command, as demonstrated in Example 4-15. Also displayed is
the IP address of the device that last modified the configuration and a time stamp of the time the
modification was made. VTP has two versions: VTP Version 1 supports only Ethernet; VTP
Version 2 supports Ethernet and Token Ring.
Example 4-14
Switch2 Complete Configuration as VTP Client
Switch2# configure terminal
Switch2(config)#ip address 10.5.5.12 255.255.255.0
Switch2(config)#ip default-gateway 10.5.5.3
Switch2(config)# vtp client
switch2(config)# interface e 0/5
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface e 0/6
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface e 0/7
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface e 0/8
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface e 0/9
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface e 0/10
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface e 0/11
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface e 0/12
switch2(config-if)# vlan-membership static 2
switch2(config-if)# interface fa 0/27
switch2(config-if)# trunk on
switch2(config-if)# vlan-membership static 1
switch2(config-if)# vlan-membership static 2
Example 4-15
show vtp Output
Switch1# show vtp
VTP version: 1
Configuration revision: 4
Maximum VLANs supported locally: 1005
Number of existing VLANs: 3
VTP domain name:Hartsfield
VTP password:
VTP operating mode: Server
VTP pruning mode: Enabled
VTP traps generation: Enabled
Configuration last modified by: 10.5.5.3 at 00-00-0000 00:00:00
ch04.fm Page 199 Monday, March 20, 2000 5:02 PM