Step 1 Before you can create a VLAN, the switch must be in VTP server mode or VTP transparent mode. If the switch is a VTP server, you must define a VTP domain name before you can add any VLANs. This has to be defined regardless of the number of switches in the network (one or many), or whether or not you will be using VTP to propagate VLANs to other switches in the network. For details on VTP, please refer to the Understanding and Configuring VLAN Trunk Protocol (VTP) document.
The default VTP configuration on the switch is as follows:
CatosSwitch> (enable) show vtp domain
Domain Name Domain Index VTP Version Local Mode Password
-------------------------------- ------------ ----------- ----------- ----------
1 2 server -
Vlan-count Max-vlan-storage Config Revision Notifications
---------- ---------------- --------------- -------------
5 1023 0 disabled
Last Updater V2 Mode Pruning PruneEligible on Vlans
--------------- -------- -------- -------------------------
0.0.0.0 disabled disabled 2-1000
Use the set vtp command to set the domain name and mode.
CatosSwitch> (enable) set vtp domain ?
Domain name
CatosSwitch> (enable) set vtp domain cisco ?
mode Set VTP mode
passwd Set VTP password
pruning Set VTP pruning
v2 Set VTP version 2
CatosSwitch> (enable) set vtp domain cisco mode ?
client VTP client mode
server VTP server mode
transparent VTP transparent mode
CatosSwitch> (enable) set vtp domain cisco mode server
VTP domain cisco modified
Step 2 Verify VTP configuration by using the show vtp domain command.
CatosSwitch> (enable) show vtp domain
Domain Name Domain Index VTP Version Local Mode Password
-------------------------------- ------------ ----------- ----------- ----------
cisco 1 2 server -
Vlan-count Max-vlan-storage Config Revision Notifications
---------- ---------------- --------------- -------------
5 1023 1 disabled
Last Updater V2 Mode Pruning PruneEligible on Vlans
--------------- -------- -------- -------------------------
0.0.0.0 disabled disabled 2-1000
If you have the output of a show vtp domain command from your Cisco device, you can use Output Interpreter to display potential issues and fixes. To use Output Interpreter , you must be a registered user, be logged in, and have JavaScript enabled.
Step 3 Once the VTP domain has been set and verified, you can begin to create VLANs on the switch. By default, there is only a single VLAN for all ports, and this VLAN is called the default. VLAN1 cannot be renamed or deleted.
You can use the show vlan command to display the parameters for all configured VLANs in the administrative domain, as shown below:
CatosSwitch> (enable) show vlan
VLAN Name Status IfIndex Mod/Ports, V
[1] [2] [3] [4] 下一页