Title: ICND2 / Show Commands

Q: What command produced the following output?:
Port Name Status Vlan Duplex Speed Type
Fa0/11 connected 3 a-full 100 10/100BaseTX
A: show interfaces fa0/11 status

Q: What command would you issue on a switch in order to see a list of all interfaces, their VLAN ID, duplex, speed, and status?
A: Switch#show interfaces status

Q: What command would you issue to see which VLANs are in spanning-tree forwarding state?
A: Switch#show interfaces trunk
Port        Mode         Encapsulation  Status        Native vlan
Gig0/1      on           802.1q         trunking      1
Port        Vlans allowed on trunk
Gig0/1      1-1005
Port        Vlans allowed and active in management domain
Gig0/1      1
Port        Vlans in spanning tree forwarding state and not pruned
Gig0/1      none

Q: What command produced the following output?:
                                        Root    Hello Max Fwd
Vlan                   Root ID          Cost    Time  Age Dly  Root Port
---------------- -------------------- --------- ----- --- ---  ------------
VLAN0001         24577 000e.d7e9.3380        19    2   20  15  Fa0/21
A: SWITCH1#show spanning-tree root

Q: How would you set the spanning-tree port path cost back to the default value for an interface?
A: SWITCH(config-if)#no spanning-tree cost

Q: How would you see spanning tree information for a particular interface?
A: SWITCH1#show spanning-tree interface fa0/22

Q: How would you see spanning-tree information for a particular VLAN?
A: Switch#show spanning-tree vlan 1
VLAN0001
  Spanning tree enabled protocol ieee <---------------- 802.1d
  Root ID    Priority    32769
             Address     0001.9618.6A2C
             Cost        4
             Port        25(GigabitEthernet0/1)
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     0090.0C3E.939C
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20
Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi0/1            Root FWD 4         128.25   P2p

Q: How would you see the portfast information about a particular interface?
A: Switch#show spanning-tree interface fa0/1 portfast
VLAN0001         enabled
Switch#show spanning-tree interface fa0/2 portfast
no spanning tree info available for FastEthernet0/2

Q: How would you make the switch provide informational messages about changes in the STP topology?
A: SWITCH1#debug spanning-tree events

Q: How would you be able to see what protocol your EtherChannel is running?
A: SWITCH1#show etherchannel port-channel
                Channel-group listing:
                ----------------------
Group: 1
----------
                Port-channels in the group:
                ---------------------------
Port-channel: Po1
------------
Age of the Port-channel   = 00d:00h:01m:59s
Logical slot/port   = 2/1       Number of ports = 0
GC                  = 0x00000000      HotStandBy port = null
Port state          = Port-channel
Protocol            =   PAGP
Port Security       = Disabled

Q: How would you be able to see the state of your port-channel/channel-group?
A: SWITCH1#show etherchannel summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port
Number of channel-groups in use: 1
Number of aggregators:           1
Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------------------------
1      Po1(SD)           -      Fa0/1(D) Fa0/2(D) Fa0/3(D) Fa0/4(D) Fa0/5(D) Fa0/6(D) Fa0/7(D) Fa0/8(D)

Q: How would you be able to see which interfaces are a member of your channel-group?
A: SWITCH1#show etherchannel summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port
Number of channel-groups in use: 1
Number of aggregators:           1
Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------------------------
1      Po1(SD)           -      Fa0/1(D) Fa0/2(D) Fa0/3(D) Fa0/4(D) Fa0/5(D) Fa0/6(D) Fa0/7(D) Fa0/8(D)

Q: How would you be able to see if your channel-group is up or down?
A: SWITCH1#show etherchannel summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port
Number of channel-groups in use: 1
Number of aggregators:           1
Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------------------------
1      Po1(SD)           -      Fa0/1(D) Fa0/2(D) Fa0/3(D) Fa0/4(D) Fa0/5(D) Fa0/6(D) Fa0/7(D) Fa0/8(D)

Q: How would you see the running config for a single interface?
A: SW1#show run int fa0/1