Switching tables to keep at hand

These are the tables the exam asks about and the ones you check when a trunk or a port-channel will not come up. Each one is written for Cisco IOS.

Which ports become a trunk (DTP)

This end ↓ / other end →Dynamic autoDynamic desirableTrunkAccess
Dynamic autoAccessTrunkTrunkAccess
Dynamic desirableTrunkTrunkTrunkAccess
TrunkTrunkTrunkTrunkMismatch: limited connectivity
AccessAccessAccessMismatch: limited connectivityAccess

EtherChannel modes

ProtocolModeForms a channel with
LACP (IEEE 802.3ad, now 802.1AX)activeactive or passive
LACPpassiveactive only
PAgP (Cisco)desirabledesirable or auto
PAgPautodesirable only
Noneonon only: no negotiation, so a mistake can loop the network

Every member must match: speed and duplex, access or trunk mode, the access VLAN or the allowed list and native VLAN. Do not mix Fast Ethernet and Gigabit ports. Shutting the ports while you add them to the channel avoids half-built bundles.

interface range GigabitEthernet0/1 - 2
 shutdown
 channel-group 1 mode active
 no shutdown
interface Port-channel1
 switchport mode trunk
 switchport trunk allowed vlan 10,20
LACP detailValue
Timer (lacp rate)normal sends a LACPDU every 30 s (the default); fast every second
System prioritylacp system-priority, default 32768; the lower value decides which ports are active
Port prioritylacp port-priority, default 32768; lower is preferred when there are more ports than can be active
PortsUp to 16 in a channel: 8 active and 8 hot standby
Load sharingport-channel load-balance src-dst-ip (global); each flow stays on one link, so one flow never goes faster than one link
Checksshow etherchannel summary, show lacp neighbor, show etherchannel load-balance

Spanning tree: costs and priorities

Link speedShort cost (802.1D-1998, IOS default)Long cost (802.1t, spanning-tree pathcost method long)
10 Mbps1002,000,000
100 Mbps19200,000
1 Gbps420,000
10 Gbps22,000
100 Gbpsnot defined200

Three ways to route between VLANs

DesignHowWatch out
Router on a stickOne trunk to a router; a subinterface per VLAN with encapsulation dot1Q 10 before its addressEvery routed packet crosses the one trunk twice
SVIs on a Layer 3 switchip routing, then interface vlan 10 with an address and no shutdownAn SVI is up only while the VLAN exists and has an active port
Routed portsno switchport on a physical port, then an addressUsed for links to routers or between Layer 3 switches
interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
interface GigabitEthernet0/0
 no shutdown