Cisco Systems

 


Modules:  1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  CS  |  All  |
Module 8: Virtual LANs
 
  Command Command Description Command Syntax
8.2.3 vlan database Use the vlan database privileged EXEC command to enter VLAN configuration mode from the command-line interface (CLI). From the CLI, you can add, delete, and modify VLAN configurations and globally propagate these changes by using the VLAN Trunking Protocol (VTP). vlan database
  vlan vlan_number Use the vlan VLAN configuration command to configure VLAN characteristics. Use the no form of this command to delete a VLAN and its configured characteristics. nvlan vlan-id [name vlan-name] [media {ethernet | fddi | fdi-net | tokenring | tr-net}]
[state {suspend | active}] [said said-value] [mtu mtu-size] [ring ring-number]
[bridge bridge-number | type {srb | srt}] [parent parent-vlan-id]
[stp type {ieee | ibm | auto}] [are are-number] [ste ste-number]
[backupcrf {enable | disable}] [tb-vlan1 tb-vlan1-id] [tb-vlan2 tb-vlan2-id]
  switchport access vlan vlan_number Use the switchport access interface configuration command to configure a port as a static-access or dynamic-access port. If the mode is set to access, the port operates as a member of the configured VLAN. If set to dynamic, the port starts discovery of its VLAN assignment based on the incoming packets it receives. Use the no form of this command to reset the access mode to the default VLAN for the switch. switchport access vlan {vlan-id | dynamic}
  show vlan Use the show vlan command to display VLAN information. Each Ethernet switch port and Ethernet repeater group belong to only one VLAN. Trunk, FDDI/CDDI, and ATM ports can exist on multiple VLANs. show vlan typer
  vlan 2 name VLAN2 Use the vlan VLAN configuration command to configure VLAN characteristics. Use the no form of this command to delete a VLAN and its configured characteristics. vlan vlan-id [name vlan-name] [media {ethernet | fddi | fdi-net | tokenring | tr-net}]
[state {suspend | active}] [said said-value] [mtu mtu-size] [ring ring-number]
[bridge bridge-number | type {srb | srt}] [parent parent-vlan-id]
[stp type {ieee | ibm | auto}] [are are-number] [ste ste-number]
[backupcrf {enable | disable}] [tb-vlan1 tb-vlan1-id] [tb-vlan2 tb-vlan2-id]
  switchport mode access Use the switchport mode interface configuration command to configure the VLAN membership mode of a port. Use the no form of this command to reset the mode to the appropriate default for the device. switchport mode {access | trunk}
  vlan static On a Catalyst 1900, this command is used to statically assign ports to an interface. vlan static
  show vlan-membership On a Catalyst 1900, this command is used to show port assignments to VLANs. show vlan-membership
  show vlan id This command shows information specific to the VLAN chosen. show vlan id id_number
8.2.4 show vlan Use the show vlan privileged Exec command to display the settings of VLAN configuration parameters. show vlan [vlan]
  show vlan brief Gives a short synopsis of the VLANs created including VLAN number, VLAN name, VLAN status, and the ports assigned show vlan brief
8.2.6 switchport access vlan 300 Use the switchport access interface configuration command to configure a port as a static-access or dynamic-access port. If the mode is set to access, the port operates as a member of the configured VLAN. If set to dynamic, the port starts discovery of its VLAN assignment based on the incoming packets it receives. Use the no form of this command to reset the access mode to the default VLAN for the switch. switchport access vlan {vlan-id | dynamic}
8.3.4 debug sw-vlan packets This command is used to display general information about VLAN packets that the router received but is not configured to support. debug sw-vlan packets
  show sw-vlan VLAN packets that the router is configured to route or switch are counted and indicated using this command. show sw-vlan
8.3.5 show interface Use the show interface privileged EXEC command to display the administrative and operational status of a switching (nonrouting) port. show interface [interface-id | vlan number] [flow-control | pruning | status | switchport [allowed-vlan | prune-elig | native-vlan]]
  show int status Verify that the duplex and speed are set properly between the switch and the router. show int status
  show vtp status Use the show vtp privileged EXEC command to display general information about the VLAN Trunk Protocol (VTP) management domain, status, and counters. show vtp {counters | status} | [{begin | exclude | include} expression]
  no vtp password password Use the vtp password VLAN configuration command to configure the VLAN Trunking Protocol (VTP) administrative domain password. Use the no form of this command to remove the password. no vtp password password-value
Close Window
All contents copyright © 2003 Cisco Systems, Inc. All rights reserved.