Example: marketing

VLAN Commands - Cisco

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. Cisco 2960-X Series Switch Command Reference, Cisco IOS Release (2)EX. OL-30123-01 1. VLAN Commands client vlan client vlan To configure a WLAN interface or an interface group, use the client vlan command.

Cisco 2960-X Series Switch Command Reference, Cisco IOS Release 15.0(2)EX OL-30123-01 17 VLAN Commands show vlan. Field Description Name Name,ifconfigured,oftheVLAN. Status StatusoftheVLAN(activeorsuspend). Ports PortsthatbelongtotheVLAN. Type MediatypeoftheVLAN.

Tags:

  Cisco, 9206, Cisco 2960

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of VLAN Commands - Cisco

1 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. Cisco 2960-X Series Switch Command Reference, Cisco IOS Release (2)EX. OL-30123-01 1. VLAN Commands client vlan client vlan To configure a WLAN interface or an interface group, use the client vlan command.

2 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 Modification Cisco IOS (2)EX 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.

3 End with CNTL/Z. Switch(config)# wlan wlan1. Switch(config-wlan)# no client vlan Switch(config-wlan)# end Cisco 2960-X Series Switch Command Reference, Cisco IOS Release (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 Modification Cisco IOS (2)EX 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.

4 Cisco 2960-X Series Switch Command Reference, Cisco IOS Release (2)EX. OL-30123-01 3. VLAN Commands clear vtp counters 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 Modification Cisco IOS (2)EX 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 (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.

5 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 Displays VLAN error debug messages. mvid Displays mapped VLAN ID allocations and free debug messages. rpc Displays remote procedure call (RPC) debug messages. Command Default Debugging is disabled. Command Modes Privileged EXEC. Command History Release Modification Cisco IOS (2)EX 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.

6 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 Cisco 2960-X Series Switch Command Reference, Cisco IOS Release (2)EX. OL-30123-01 5. VLAN Commands debug sw-vlan 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}.

7 Syntax Description badpmcookies Displays debug messages for VLAN manager incidents of bad port manager cookies. cfg-vlan Displays VLAN configuration debug messages. bootup Displays messages when the switch is booting up. cli Displays messages when the command-line interface (CLI) is in VLAN. configuration mode. events Displays debug messages for VLAN manager events. ifs Displays debug messages for the VLAN manager IOS file system (IFS). See debug sw-vlan ifs, on page 8 for more information. mapping Displays debug messages for VLAN mapping. notification Displays debug messages for VLAN manager notifications. See debug sw-vlan notification, on page 9 for more information. packets Displays debug messages for packet handling and encapsulation processes. redundancy Displays debug messages for VTP VLAN redundancy. registries Displays debug messages for VLAN manager registries.

8 Vtp 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 (2)EX. 6 OL-30123-01. VLAN Commands debug sw-vlan Command History Release Modification Cisco IOS (2)EX 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.

9 Examples This example shows how to display debug messages for VLAN manager events: Switch# debug sw-vlan events Cisco 2960-X Series Switch Command Reference, Cisco IOS Release (2)EX. OL-30123-01 7. VLAN Commands debug sw-vlan ifs 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 Displays VLAN manager IFS file-read operation debug messages. open write Displays VLAN manager IFS file-write operation debug messages. read Displays file-read operation debug messages for the specified error test (1, 2, 3, or 4).

10 Write Displays file-write operation debug messages. Command Default Debugging is disabled. Command Modes Privileged EXEC. Command History Release Modification Cisco IOS (2)EX 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.


Related search queries