Frequently Asked Questions

« Previous
How I do send mail from multiple e-mail addresses in Thunderbird?
Next «
How do I get deduplication to work in Linux?

101. Some Cisco switch commands

Show VLAN and port configuration:

  • show vlan
  • show vlan brief
BMC-D11-0-A47-1>show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Te1/0/2
2    Management                       active
3    Backbone                         active
4    Backbone-2                       active
50   WLAN                             active
660  FarmBio                active    Gi1/0/13, Gi1/0/14, Gi1/0/15, Gi1/0/16, Gi1/0/17, Gi1/0/18
                                      Gi1/0/19
- - -

Show all ports and which VLAN they have and if they are connected:

  • show interface
  • show interface status
BMC-D11-0-A47-1>show interface status

Port      Name             Status       Vlan       Duplex  Speed Type
Gi1/0/1                    connected    933        a-full a-1000 10/100/1000BaseTX
Gi1/0/2                    connected    664        a-full a-1000 10/100/1000BaseTX
Gi1/0/3                    notconnect   664          auto   auto 10/100/1000BaseTX
Gi1/0/4                    connected    935        a-full  a-100 10/100/1000BaseTX
- - -

Show possible disabled ports:

  • show interface status err-disabled

List all mac-addresses:

  • show mac address-table
  • show mac address-table address 3c07.541d.c8ab

Show DHCP-helper and other info about the VLAN

  • show ip interface vlan 904

Show error-disabled recovery timeout

C7:3-5>show errdisable recovery
ErrDisable Reason            Timer Status
-----------------            --------------
arp-inspection               Disabled
bpduguard                    Disabled
channel-misconfig (STP)      Disabled
dhcp-rate-limit              Disabled
dtp-flap                     Disabled
gbic-invalid                 Disabled
inline-power                 Disabled
link-flap                    Enabled
mac-limit                    Disabled
loopback                     Disabled
pagp-flap                    Disabled
port-mode-failure            Disabled
pppoe-ia-rate-limit          Disabled
psecure-violation            Disabled
security-violation           Disabled
sfp-config-mismatch          Disabled
small-frame                  Disabled
storm-control                Disabled
udld                         Disabled
vmps                         Disabled

Timer interval: 40 seconds

Interfaces that will be enabled at the next timeout:

C7:3-5> _

Show members in a stack.
fal01-C7-03-301B-1#show switch stack-ports
  Switch #    Port 1       Port 2
  --------    ------       ------
    1           Ok           Ok
    2           Ok           Ok
    3           Ok           Ok
    4          Down          Ok
    6           Ok          Down
    7           Ok           Ok

fal01-C7-03-301B-1#sh switch
Switch/Stack Mac Address : 2852.61bb.e200
                                           H/W   Current
Switch#  Role   Mac Address     Priority Version  State
----------------------------------------------------------
*1       Master 2852.61bb.e200     13     4       Ready
 2       Member 0038.df8f.6480     1      4       Ready
 3       Member 2852.61bb.0480     1      4       Ready
 4       Member 0038.df87.7100     1      4       Ready
 5       Member 0000.0000.0000     0      0       Removed
 6       Member 2c0b.e973.6b80     1      4       Ready
 7       Member 0038.dfa4.6180     1      4       Ready 

fal01-C7-03-301B-1# _

This entry cisco.fusklapp was last modified 2017-12-13

This documentation is covered by GNU Free Documentation License.