background image
188 Chapter 4: Bridges/Switches and LAN Design
Table 4-18 represents the commands covered in this section and gives a brief description of each
command's function.
Sample Configuration for a Single Switch
When VTP is not in use (in other words, when VTP transparent mode is in use), VLAN
configuration consists of three primary tasks:
1
Enabling VTP transparent mode
2
Creating the VLAN numbers and names
3
Configuring each port's assigned VLAN
First, use the vtp global configuration command to configure VTP transparent mode. Use the
vlan global command to define each VLAN number (required) and associated name (optional).
Then assign each port to its associated VLAN using the vlan-membership interface
subcommand. Example 4-8 shows an example, based on Figure 4-28.
Table 4-18
VLAN Command List
Command
Description
delete vtp
Resets all VTP parameters to defaults and resets
the configuration revision number to 1
vtp [server | transparent | client] [domain
domain-name] [trap {enable | disable}]
[password password] [pruning {enable |
disable}]
Defines VTP parameters
vtp trunk pruning-disable vlan-list
Disables pruning for specified VLANs on a
particular trunk interface (interface subcommand)
show vtp
Displays VTP status
trunk [on | off | desirable | auto | nonegotiate]
Configures a trunk interface
show trunk
Displays trunk status
vlan vlan# name vlanname
Defines a VLAN and its name
show vlan
Displays VLAN information
vlan-membership static vlan#
Assigns a port to a VLAN
show vlan-membership
Displays VLAN membership
show spantree vlan#
Displays Spanning Tree information for a VLAN
ch04.fm Page 188 Monday, March 20, 2000 5:02 PM