Command Reference Guide
show switchports
Use the show switchports command to display switchport information. Variations of this command
include:
show switchports
show switchports vlans
The output of all show commands can be limited by appending the following modifiers to
the end of the command: | begin <text>, | exclude <text>, and | include <text>. The
include modifier limits output to lines that contain the specified text, the exclude modifier
excludes any lines with the specified text, and the begin modifier displays the first line of
output with the specified text and all lines thereafter.
For specific instructions and examples regarding these modifiers, refer to the introduction
of the
Enable Mode Command Set on page
Syntax Description
vlans
Default Values
No default values are necessary for this command.
Command History
Release 17.5
Usage Examples
The following is sample output from the show switchports command:
>enable
#show switchports
Name: swx 0/1
Switchport: enabled
Administrative Mode: access
Negotiation of Trunking: access
Access Mode VLAN (configured): 1
Trunking Native Mode VLAN: 1
Trunking VLAN Enabled: 1-4094
Trunking VLAN GVRP Fixed: none
Port Expiration: disabled
Port Security: disabled
Protected: false
60000CRG0-35E
Optional. Displays the switchport vlan membership.
Command was introduced.
Copyright © 2012 ADTRAN, Inc.
Enable Mode Command Set
83.
761
Need help?
Do you have a question about the AOS Version R10.1.0 and is the answer not in the manual?
Questions and answers