STP (Spanning Tree Protocol)

Spanning Tree Protocol (STP) prevents frame loops by putting interfaces on a switch into a forwarding or blocking states.

Command Description
(config)# spanning-tree vlan 1 root {primary, secondary} Device the primary/secondary root bridge.
(config)# spanning-tree portfast bpduguard default To Enable bpdu guard for all portfast enable interfaces
(config)# spanning-tree portfast default To Enable portfast for all non-trunk interfaces
(config-if)# spanning-tree bpduguard enable To Enable gpduguard on this interface
(config-if)# spanning-tree portfast To Enable portfast on this interface
(config-if)# spanning-tree guard root To Enable root guard on this interface

Troubleshoot STP:

Command
# show spanning-tree [vlan 1]
# show spanning-tree summary
# show running-config interface g1/1
# show spanning-tree interface g1/1 portfast

Etherchannel:

EtherChannel is a port link aggregation technology that groups multiple physical port links into one logical link. Used to provide high-speed connectivity and redundancy. Up to eight links can be aggregated into one logical link.

Command Description
(config)# interface range g1/1 – 2 To configure g1/1 and g1/2 at the same time
(config-if-range)# channel-group 1 mode {auto, desirable} To Add both interfaces to EtherChannel 1 (PAgP)
(config-if-range)# channel-group 1 mode {active, passive} To Add both interfaces to EtherChannel 1 (LACP)
(config-if-range)# channel-group 1 mode on To Add both interfaces to EtherChannel 1 (Static)
(config)# interface port-channel 1 To Configure virtual interface for EtherChannel 1
(config-if)# switchport mode trunk To Put EtherChannel 1 in trunk mode
(config-if)# switchport trunk allowed vlan 10,20,30 To Add tagged VLANs 10,20,30 on EtherChannel 1

Troubleshoot Etherchannel:

Command Description
# show interface port-channel 1 Combined bandwidth and members as extra info.
# show etherchannel summary To Show EtherChannel protocols and members as a list
# show etherchannel port-channel 1 To Show per member state and stats

CCNA Cheatsheet

A CCNA certification proves you have the competencies needed to navigate an ever-changing IT landscape. CCNA exams cover network fundamentals, IP services, security fundamentals, automation, and programmability. Designed for agility and versatility, CCNA proves you have the skills needed to manage and optimize today’s most advanced networks. CCNA training courses and exams are the foundation for advancing your career in any direction. A Cisco certification is living proof of the standards and rigor your organization recognizes and trusts to meet and exceed market demands. Here is a cheat sheet for CCNA Examination.

Similar Reads

Network Fundamentals:

Networking Devices Used in CCNA:...

IP Addressing:

Classes of IP Addresses:...

Port Security:

Switches learn MAC addresses as frames are forwarded through switch ports. Port security allows you to limit the number of MAC addresses that can be learned on a port, configure static MAC addresses, and set penalties if that port is used by unauthorized users. Users can restrict, shutdown, or protect port security commands....

Configure VLANs:

Virtual LAN (VLAN) is a concept that allows devices to be logically partitioned at layer 2 (data link layer). Layer 3 devices typically share a broadcast domain, but the concept of VLANs can be used to divide the broadcast domain with switches....

STP (Spanning Tree Protocol):

Spanning Tree Protocol (STP) prevents frame loops by putting interfaces on a switch into a forwarding or blocking states....

Configure a Serial:

The speed of the Layer 1 connection is determined by the CSU/DSU. DTE (Data Terminal Equipment)  and DCE (Data Communications Equipment) cables are used in labs without an external CSU/DSU....