Layer 2 Switching Commands 799show interfaces switchportUse the show interfaces switchport command to display the completeswitchport VLAN configuration for all possible switch mode configurations:access, dot1q-tunnel, general, trunk, and (private VLAN) host or (privateVLAN) promiscuous.Syntaxshow interfaces switchport {{gigabitethernet unit/slot/port | port-channelport-channel-number | tengigabitethernet unit/slot/port|fortygigabitethernet unit/slot/port}}Default ConfigurationIf no interface parameter is given, all interfaces are shown.Command ModePrivileged Exec mode, Interface Configuration mode and all ConfigurationsubmodesUser GuidelinesEach of the switchport modes can be configured independently for a port orport channel. The configurations are retained even when the port isconfigured in a different mode.It is recommended that the private VLAN host ports be configured asspanning-tree portfast.ExamplesThe following example displays switchport configuration individually forgi1/0/1.switch-top(config-if-Gi1/0/1)#show interfaces switchport gi1/0/1Port: Gi1/0/1VLAN Membership Mode: Trunk ModeAccess Mode VLAN: 1 (default)General Mode PVID: 1 (default)General Mode Ingress Filtering: EnabledGeneral Mode Acceptable Frame Type: Admit AllGeneral Mode Dynamically Added VLANs: