VLAN Commands - Cisco
[Pages:54]VLAN Commands
? client vlan, page 2 ? clear vmps statistics, page 3 ? clear vtp counters, page 4 ? debug platform vlan, page 5 ? debug sw-vlan, page 6 ? debug sw-vlan ifs, page 8 ? debug sw-vlan notification, page 9 ? debug sw-vlan vtp, page 11 ? interface vlan, page 13 ? show platform vlan, page 15 ? show vlan, page 16 ? show vmps, page 19 ? show vtp, page 21 ? switchport priority extend, page 28 ? switchport trunk, page 30 ? switchport voice vlan, page 33 ? vlan, page 36 ? vmps reconfirm (global configuration), page 42 ? vmps reconfirm (privileged EXEC), page 43 ? vmps retry, page 44 ? vmps server, page 45 ? vtp (global configuration), page 47 ? vtp (interface configuration), page 52 ? vtp primary, page 53
OL-30123-01
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 1
client vlan
VLAN Commands
client vlan
To configure a WLAN interface or an interface group, use the client vlan command. To disable the WLAN interface, use the no form of this command.
client vlan interface-id-name-or-group-name no client vlan
Syntax Description interface-id-name-or-group-name
Interface ID, name, or VLAN group name. The interface ID can also be in digits too.
Command Default The default interface is configured.
Command Modes WLAN configuration
Command History
Release Cisco IOS 15.0(2)EX
Modification This command was introduced.
Usage Guidelines
You must disable the WLAN before using this command. See Related Commands section for more information on how to disable a WLAN.
Examples
This example shows how to enable a client VLAN on a WLAN:
Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# wlan wlan1 Switch(config-wlan)# client vlan client-vlan1 Switch(config-wlan)# end
This example shows how to disable a client VLAN on a WLAN:
Switch# configure terminal Enter configuration commands, one per line. Switch(config)# wlan wlan1 Switch(config-wlan)# no client vlan Switch(config-wlan)# end
End with CNTL/Z.
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 2
OL-30123-01
VLAN Commands
clear vmps statistics
clear vmps statistics
To clear the VLAN Membership Policy Server (VMPS) statistics maintained by the VLAN Query Protocol (VQP) client, use the clear vmps statistics command in privileged EXEC mode.
clear vmps statistics
Syntax Description This command has no arguments or keywords.
Command Default None
Command Modes Privileged EXEC
Command History
Release Cisco IOS 15.0(2)EX
Modification This command was introduced.
Examples
This example shows how to clear VLAN Membership Policy Server (VMPS) statistics:
Switch# clear vmps statistics
You can verify that information was deleted by entering the show vmps statistics privileged EXEC command.
OL-30123-01
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 3
clear vtp counters
VLAN Commands
clear vtp counters
To clear the VLAN Trunking Protocol (VTP) and pruning counters, use the clear vtp counters command in privileged EXEC mode.
clear vtp counters
Syntax Description This command has no arguments or keywords.
Command Default None
Command Modes Privileged EXEC
Command History
Release Cisco IOS 15.0(2)EX
Modification This command was introduced.
Examples
This example shows how to clear the VTP counters:
Switch# clear vtp counters
You can verify that information was deleted by entering the show vtp counters privileged EXEC command.
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 4
OL-30123-01
VLAN Commands
debug platform vlan
debug platform vlan
To enable debugging of the VLAN manager software, use the debug platform vlan command in privileged EXEC mode. To disable debugging, use the no form of this command.
debug platform vlan {error| mvid| rpc} no debug platform vlan {error| mvid| rpc}
Syntax Description
error mvid rpc
Displays VLAN error debug messages. Displays mapped VLAN ID allocations and free debug messages. Displays remote procedure call (RPC) debug messages.
Command Default Debugging is disabled.
Command Modes Privileged EXEC
Command History
Release Cisco IOS 15.0(2)EX
Modification This command was introduced.
Usage Guidelines
The undebug platform vlan command is the same as the no debug platform vlan command.
When you enable debugging on a switch stack, it is enabled only on the stack master. To enable debugging on a stack member, start a session from the stack master using the session switch-number EXEC command, and then enter the debug command at the command-line prompt of the stack member. You also can use the remote command stack-member-number LINE EXEC command on the stack master switch to enable debugging on a member switch without first starting a session.
Examples
This example shows how to display VLAN error debug messages:
Switch# debug platform vlan error
OL-30123-01
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 5
debug sw-vlan
VLAN Commands
debug sw-vlan
To enable debugging of VLAN manager activities, use the debug sw-vlan command in privileged EXEC mode. To disable debugging, use the no form of this command.
debug sw-vlan {badpmcookies| cfg-vlan {bootup| cli}| events| ifs| mapping| notification| packets| redundancy| registries| vtp} no debug sw-vlan {badpmcookies| cfg-vlan {bootup| cli}| events| ifs| mapping| notification| packets| redundancy| registries| vtp}
Syntax Description badpmcookies
cfg-vlan bootup cli
events ifs
mapping notification
packets redundancy registries vtp
Displays debug messages for VLAN manager incidents of bad port manager cookies.
Displays VLAN configuration debug messages.
Displays messages when the switch is booting up.
Displays messages when the command-line interface (CLI) is in VLAN configuration mode.
Displays debug messages for VLAN manager events.
Displays debug messages for the VLAN manager IOS file system (IFS). See debug sw-vlan ifs, on page 8 for more information.
Displays debug messages for VLAN mapping.
Displays debug messages for VLAN manager notifications. See debug sw-vlan notification, on page 9 for more information.
Displays debug messages for packet handling and encapsulation processes.
Displays debug messages for VTP VLAN redundancy.
Displays debug messages for VLAN manager registries.
Displays debug messages for the VLAN Trunking Protocol (VTP) code. See debug sw-vlan vtp, on page 11 for more information.
Command Default Debugging is disabled. Command Modes Privileged EXEC
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 6
OL-30123-01
VLAN Commands
debug sw-vlan
Command History
Release Cisco IOS 15.0(2)EX
Modification This command was introduced.
Usage Guidelines
The undebug sw-vlan command is the same as the no debug sw-vlan command.
When you enable debugging on a switch stack, it is enabled only on the stack master. To debug a specific stack member, you can start a CLI session from the stack master by using the session switch-number privileged EXEC command. You also can use the remote command stack-member-number LINE EXEC command on the stack master to enable debugging on a member switch without first starting a session.
Examples
This example shows how to display debug messages for VLAN manager events:
Switch# debug sw-vlan events
OL-30123-01
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 7
debug sw-vlan ifs
VLAN Commands
debug sw-vlan ifs
To enable debugging of the VLAN manager IOS file system (IFS) error tests, use the debug sw-vlan ifs command in privileged EXEC mode. To disable debugging, use the no form of this command.
debug sw-vlan ifs {open {read| write}| read {1| 2| 3| 4}| write} no debug sw-vlan ifs {open {read| write}| read {1| 2| 3| 4}| write}
Syntax Description
open read open write read
write
Displays VLAN manager IFS file-read operation debug messages. Displays VLAN manager IFS file-write operation debug messages. Displays file-read operation debug messages for the specified error test (1, 2, 3, or 4). Displays file-write operation debug messages.
Command Default Debugging is disabled.
Command Modes Privileged EXEC
Command History
Release Cisco IOS 15.0(2)EX
Modification This command was introduced.
Usage Guidelines
The undebug sw-vlan ifs command is the same as the no debug sw-vlan ifs command.
When selecting the file read operation, Operation 1 reads the file header, which contains the header verification word and the file version number. Operation 2 reads the main body of the file, which contains most of the domain and VLAN information. Operation 3 reads type length version (TLV) descriptor structures. Operation 4 reads TLV data.
When you enable debugging on a switch stack, it is enabled only on the stack master. To debug a specific stack member, you can start a CLI session from the stack master by using the session switch-number privileged EXEC command. You also can use the remote command stack-member-number LINE EXEC command on the stack master to enable debugging on a member switch without first starting a session.
Examples
This example shows how to display file-write operation debug messages:
Switch# debug sw-vlan ifs write
Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX 8
OL-30123-01
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- using the command line interface
- vlan configuration guide cisco ios release 15 2 2 e catalyst 2960 x
- catalyst 2960 x switch vlan configuration guide cisco ios release 15 0
- vlan configuration cisco
- configuring switch ports and vlan interfaces for the cisco asa 5505
- configuring vlans cisco
- how to configure a cisco layer 3 switch intervlan routing
- cisco commands cheat sheet netwrix
- configuring voice vlan cisco
- configuring vlans vtp and vmps
Related searches
- cisco switch vlan setup
- vlan cisco switch
- configure voice vlan cisco switch
- cisco switch vlan commands
- cisco show vlan command
- cisco vlan setup commands
- configure vlan on cisco switch
- cisco vlan tutorial
- show vlan commands cisco
- cisco vlan configuration commands
- cisco switch vlan configuration commands
- cisco vlan configuration example