Use context-sensitive help at the exact cursor position
`?` after a space lists the next valid argument. `?` without a space completes the current word. This is the fastest reliable way to discover syntax on the actual image.
Less obvious CLI behavior, exam memory aids, operational shortcuts, and safe-change practices.
`?` after a space lists the next valid argument. `?` without a space completes the current word. This is the fastest reliable way to discover syntax on the actual image.
`show ip int br` works when every abbreviation is unique. Full commands are safer in runbooks, scripts, and change records.
Tab prevents spelling errors and confirms that the entered abbreviation resolves to one command.
`do show ip interface brief` lets you verify state without leaving configuration mode.
`exit` moves up one level. `end` leaves all configuration submodes.
`| include`, `| exclude`, `| begin`, and `| section` can turn a large configuration or show command into focused evidence.
`terminal length 0` is useful for capture. Reconnect or restore a normal length afterward.
Record the connected device, remote port, circuit ID, room, purpose, or ticket. Good descriptions shorten outages.
The command gives a compact map of port state and documented purpose.
The first status is physical or administrative state. The line protocol is the Layer 2 operational state.
The VLAN must exist and normally needs at least one active Layer 2 member or trunk path carrying that VLAN.
Use `switchport mode access` with `switchport access vlan`. This prevents dynamic trunk behavior.
`switchport trunk allowed vlan 10,20` replaces the current list. Use `add` or `remove` for incremental changes.
A mismatch can produce warnings, traffic leaks, or confusing untagged behavior.
The destination determines forwarding. The source updates the MAC address table.
Flooding is not the same as routing. A router boundary stops the Layer 2 broadcast domain.
PortFast skips normal transition delay on an edge port. The port still participates in STP and can process BPDUs.
A PortFast edge port receiving a BPDU is no longer behaving like a simple host port. BPDU Guard error-disables it.
Root Guard prevents a downstream switch from becoming root. BPDU Guard protects edge ports from any received BPDU.
After bundling, apply trunk or routed settings consistently to the port-channel. Avoid conflicting member configuration.
Load balancing hashes fields. EtherChannel increases aggregate capacity, but one flow usually does not use all links.
A /24 route wins over a /16 route even when the /16 has a lower administrative distance.
AD is a local trust value used when different sources offer the same prefix.
The next hop or exit interface must be resolvable. Check the routing table, not only running-config.
The backup remains absent while a better route to the same prefix exists.
Neighbors do not need matching process IDs. They do need compatible interface, area, timer, authentication, and network settings.
A loopback or explicit router ID prevents unexpected changes after interface or reload events.
This advertises connected LAN prefixes without sending OSPF hellos toward user networks.
The source and destination IP normally remain end to end. The router rebuilds Layer 2 for each link.
ARP resolves the local IPv4 next hop. For a remote destination, that next hop is usually the default gateway.
The same link-local address can appear on different links. Commands can require an outgoing interface or zone identifier.
Neighbor Discovery and other functions use multicast.
Inbound traffic enters the device through the interface. Outbound traffic leaves the device through the interface.
Clear counters only when safe, generate one controlled test, then identify which ACE increments.
The ACL used by a NAT rule matches addresses for translation. It does not block traffic unless also applied as an access group.
A perfect translation rule still fails when the packet does not cross the intended inside-to-outside boundary.
`ip helper-address` receives the client's broadcast and unicasts it toward the server.
Trust uplinks and server-facing paths deliberately. Normal client ports remain untrusted.
Enabling Dynamic ARP Inspection without a valid source of truth can block legitimate hosts.
Use local or centralized authentication, source ACLs, timeouts, and stable management source interfaces.
Traditional reversible obfuscation protects casual viewing only. Use secret-based credentials and external AAA where appropriate.
Verify the new session works before closing the original session.
`reload in 10` can restore the saved known-good startup configuration if management access is lost. Cancel after verification.
Saving a broken running configuration defeats the timed-reload safety method.
A local pre-change file supports comparison and recovery without depending on network file services.
Old commands can remain. Use a supported configuration replace method when a true replacement is required.
It is often safer than manually removing many old interface commands, but it is disruptive and removes all interface-specific configuration.
Accurate NTP, timezone, milliseconds, and source interfaces make multi-device event correlation possible.
Outbound checksums and segment sizes can look wrong before the NIC completes checksum or segmentation offload.
A missing command can be a simulator limitation rather than incorrect Cisco syntax.
Model, image, license, software release, and boot mode determine available features and defaults.
ARP, MAC, NAT, DHCP, adjacency, and counters often contain the best evidence of the fault.
ICMP reachability does not prove DNS, TCP ports, TLS, credentials, or the application service.
ACLs or host firewalls can block ICMP while the required application port still works.
Many apparent forward-path failures are missing reverse routes, reverse ACL permits, or stateful-policy issues.
A router's default source address may differ from the production interface or loopback used by the application.
A route in a routing protocol database does not guarantee installation in the routing table or forwarding table.
Configure one functional block, verify it, and then continue. This makes rollback and fault isolation practical.
Data -> TCP segment / UDP datagram -> IP packet -> Ethernet frame -> Bits
1. Longest matching prefix 2. Lowest administrative distance 3. Best metric 4. Equal-cost path handling
Discover Offer Request Acknowledge
Lowest bridge ID wins Bridge ID: bridge priority extended system ID MAC address
Top to bottom First match stops processing No match -> implicit deny
0 Emergency 1 Alert 2 Critical 3 Error 4 Warning 5 Notification 6 Informational 7 Debugging
show interfaces status show interfaces <port> show interfaces <port> switchport show vlan brief show spanning-tree interface <port> detail show mac address-table interface <port>
show interfaces trunk show interfaces <port> switchport show etherchannel summary show lacp neighbor show spanning-tree interface port-channel <id>
show ip interface brief show ip route show ip route <destination> show ip cef <destination> show ip arp ping <destination> source <source> traceroute <destination>
show ip ospf neighbor show ip ospf interface brief show ip ospf interface <interface> show ip ospf database show ip route ospf show ip protocols
show clock show users copy running-config startup-config copy running-config flash:prechange.cfg reload in 10 ! Make and verify the change reload cancel copy running-config startup-config