Cisco CCNA (200-301) flashcards
226 free flashcards. Tap a card to flip it.
Cisco Discovery Protocol (CDP)
Flip cardCDP is a Cisco proprietary Layer 2 protocol used to discover information about directly connected Cisco devices, such as device type, IOS version, capabilities, and interface information.
- Runs on all Cisco devices by default.
- Operates at Layer 2 (data link layer).
- Useful for network mapping and troubleshooting.
- Provides device ID, platform, capabilities, and IOS version.
Memory trick: CDP is a detective, finding clues about its direct neighbors.
LACP vs PAgP Modes
Flip cardLACP (Link Aggregation Control Protocol) and PAgP (Port Aggregation Protocol) are two distinct protocols for EtherChannel negotiation, each with its own active and passive/desirable modes.
- LACP uses 'active' and 'passive'.
- PAgP uses 'desirable' and 'auto'.
- LACP and PAgP are NOT interoperable.
Memory trick: Always Connect Links Properly or Perish Gracefully.
show spanning-tree vlan
Flip cardThe 'show spanning-tree vlan <VLAN_ID>' command is used on Cisco switches to display detailed Spanning Tree Protocol information for a particular VLAN.
- Shows STP mode (PVST+, Rapid PVST+, MST).
- Displays root bridge ID and local bridge ID.
- Provides port roles, states, costs, and priorities for the VLAN.
Memory trick: S.T.P. V. - Spanning Tree Protocol, Verify!
Cisco Router DHCP Client
Flip cardConfiguring a router interface to automatically obtain IP configuration from a DHCP server.
- Uses the `ip address dhcp` command under the interface.
- Receives IP address, subnet mask, default gateway, and DNS servers.
- Simplifies IP address management on client-facing interfaces.
Memory trick: To get your IP 'address' from 'DHCP', just tell it to do so.
Router Function (Layer 3)
Flip cardA router is a network device that operates at Layer 3 (Network Layer) of the OSI model, primarily responsible for forwarding IP packets between different IP networks (subnets).
- Connects different broadcast domains and IP subnets.
- Uses IP addresses to make forwarding decisions.
- Maintains a routing table to determine the best path for packets.
- Prevents broadcast storms from propagating across networks.
Memory trick: Routers Route between Networks, Switches Switch within.
Cisco VTY Transport Input
Flip cardThe 'transport input' command on Cisco VTY lines dictates which protocols (Telnet, SSH, or both) are permitted for remote access.
- Located under 'line vty' configuration mode.
- 'transport input telnet' allows only Telnet.
- 'transport input ssh' allows only SSH.
- 'transport input all' allows both Telnet and SSH.
Memory trick: Transport input: All means all, SSH for just SSH.
Cisco IOS Show Commands
Flip cardIOS `show` commands are used to display the current state, configuration, and operational parameters of a Cisco device for verification and troubleshooting.
- `show running-config` displays the current active configuration.
- `show ip interface brief` provides a quick overview of interface status and IP addresses.
- `show vlan brief` lists all configured VLANs and their assigned ports.
Memory trick: Show me the switchport's secrets!
DHCP DNS Update Verification
Flip cardTo verify if a Cisco IOS DHCP server is configured to perform DNS updates for clients, use the 'show ip dhcp pool' command.
- DHCP servers can dynamically update DNS records for clients.
- This feature helps ensure DNS consistency for dynamically assigned IPs.
- The 'show ip dhcp pool' command reveals the 'dns-update' configuration.
Memory trick: DHCP Pool shows if DNS is a Go!
Subnet Masking (CIDR /25)
Flip cardSubnet masking divides a larger IP network into smaller, more manageable subnets, defining which portion of an IP address identifies the network and which identifies the host.
- A /25 mask corresponds to 255.255.255.128.
- A /25 mask creates two subnets from a Class C /24 network.
- Devices in different subnets require a router to communicate.
Memory trick: Same house, same conversation. Different houses need a door (router).
VLAN Configuration Steps
Flip cardThe sequence of commands and actions required to create and implement Virtual Local Area Networks (VLANs) on Cisco switches.
- VLANs logically segment a network at Layer 2.
- Ports must be assigned to VLANs to allow end devices to join.
- Inter-VLAN routing requires a Layer 3 device (router or Layer 3 switch).
Memory trick: Create, Name, Assign, Route!
Cisco IOS Kron Scheduler
Flip cardA feature in Cisco IOS that allows for the scheduling of commands or command sequences to be executed at specific times or intervals.
- Uses 'kron policy-list' to define commands.
- Uses 'kron occurrence' to schedule execution times.
- Useful for automated tasks like backups or reboots.
Memory trick: For 'KRON' tasks, think 'chronological' – it's all about scheduling commands by time!
DHCP Server
Flip cardA DHCP server automatically assigns IP addresses, subnet masks, default gateways, and DNS server information to client devices on a network, simplifying network administration.
- Dynamically assigns IP addresses from a pool.
- Reduces manual configuration and errors.
- Crucial for host onboarding in most networks.
Memory trick: For 'Dynamic' IP, let 'DHCP' do the 'Host Configuration' work!
DHCP Option 150
Flip cardA DHCP option used by Cisco IP phones to obtain the IP address of a TFTP server where their configuration files are stored.
- Specific to Cisco IP phones.
- Provides TFTP server IP address.
- Configured within a DHCP pool using 'option 150 ip [address]'.
Memory trick: To check what the DHCP server is 'saying' (options), you must 'read its mind' (running config).
Global LLDP Enable
Flip cardTo enable Link Layer Discovery Protocol (LLDP) globally on a Cisco IOS device, the 'lldp run' command is used in global configuration mode.
- LLDP is an open standard discovery protocol.
- Used to discover neighbors, including non-Cisco devices.
- Enabled with 'lldp run' globally.
Memory trick: Let's Locate Diverse Peers (LLDP).
IPv4 Type of Service (ToS)
Flip cardA field in the IPv4 header (8 bits) originally intended to specify QoS parameters, now primarily used as the Differentiated Services Code Point (DSCP) field.
- Used to classify packets for different QoS treatments (e.g., priority, delay, throughput).
- The first 6 bits are typically used for DSCP, allowing for 64 different classifications.
- Routers and switches use the DSCP value to make forwarding decisions based on QoS policies.
Memory trick: ToS is for Traffic, TTL for Time, ID for Fragments, Protocol for Next.
LACP Active Mode
Flip cardLACP 'active' mode actively initiates negotiation with the other device to form an EtherChannel. It sends LACP PDUs automatically.
- Actively seeks to form a channel.
- Will form a channel with 'active' or 'passive' remote modes.
- Required if both sides must actively negotiate.
Memory trick: A.P.O. - Active, Passive, On (and off for EtherChannel)
Cisco Syslog Configuration
Flip cardConfiguring a Cisco device to send system messages to a remote syslog server and control local logging.
- `logging host <IP>`: directs syslog messages to a server.
- `logging trap <level>`: sets minimum severity for syslog server messages.
- `logging console <level>`: sets minimum severity for console messages.
- Severity levels: 0-7 (emergencies to debugging).
Memory trick: Log to a Host, Trap for Server, Console for Me.
Cisco IOS Routing Table
Flip cardThe routing table is a database on a router that stores information about network destinations and how to reach them, including next-hop addresses and associated metrics.
- Contains directly connected, static, and dynamic routes.
- Used by the router to make forwarding decisions.
- Accessible via 'show ip route' command.
Memory trick: To see the 'route' to success, you must 'show' the 'IP' map.
Cisco IOS Interface Status
Flip cardCisco IOS interface status codes provide quick insight into the operational state of a network interface, indicating physical and logical connectivity.
- 'Up, Up': Interface is active and functional.
- 'Down, Down': Physical or data link layer issue (e.g., cable, no signal).
- 'Administratively Down, Down': Interface manually disabled via 'shutdown' command.
Memory trick: Traffic light for interfaces: Red means admin stopped it, Yellow means a physical problem, Green means go.
Cisco IOS Interface Status (up down)
Flip cardIn Cisco IOS `show ip interface brief`, an 'up down' status for an interface indicates that the interface is administratively enabled but the line protocol (Layer 2) is down, often due to a Layer 1 (physical) issue.
- First status ('up') refers to administrative state.
- Second status ('down') refers to line protocol state.
- Common causes for 'up down' include disconnected cable, faulty cable, or speed/duplex mismatch.
Memory trick: Up/Down is like a traffic light: Green to drive, Red means stop, but maybe the road is broken.
NTP Master Command
Flip cardThe 'ntp master [stratum]' command configures a router to act as an authoritative NTP server, using the specified stratum if it cannot synchronize with an external source, or its synchronized source's stratum plus one if it can.
- Makes router an authoritative NTP server.
- Stratum value (1-15) indicates accuracy/distance from primary source.
- Router's stratum becomes (source stratum + 1) if synchronized, else uses configured master stratum.
Memory trick: An NTP Master acts as a time 'godfather' for its local network, but only if it trusts a higher-up 'don' (corporate server).
Cisco IOS SNMP Read-Only Community
Flip cardConfiguring a read-only SNMP community string on a Cisco device allows network management systems to retrieve device information without permission to modify its configuration.
- Community string acts as a password.
- 'ro' specifies read-only access.
- 'rw' specifies read-write access (less secure for monitoring).
Memory trick: Community string is like a password, 'ro' is for 'Read Only'.
Cisco IOS Command Modes
Flip cardCisco IOS uses a hierarchical structure of command modes, each with specific command sets, to manage and configure network devices.
- User EXEC Mode (`>`) provides basic monitoring commands.
- Privileged EXEC Mode (`#`) allows more powerful monitoring and access to configuration modes.
- Global Configuration Mode (`(config)#`) is for device-wide settings.
- Specific configuration modes (e.g., interface, router) are entered from Global Configuration Mode.
Memory trick: User to Privileged, then Global to Specific.
TFTP Protocol and Port
Flip cardTrivial File Transfer Protocol (TFTP) is a simple protocol for transferring files, known for its use of UDP and default port.
- Uses UDP for transport, making it connectionless and unreliable.
- Default port number is 69.
- Often used for booting diskless workstations or transferring configuration files in network devices.
- Lacks security features like authentication or encryption.
Memory trick: TFTP is UDP 69, simple and quick, no TCP for this trick.
View Active NAT Translations
Flip cardOn a Cisco router, the 'show ip nat translations' command displays active NAT translation entries. Adding 'verbose' provides more detailed information for troubleshooting.
- Essential for verifying NAT operation.
- Shows private-to-public IP/port mappings.
- 'verbose' option adds timers, protocol, and other details.
- Helps identify resource usage and potential issues.
Memory trick: Show NAT translations, verbose for details!
WLC Interfaces
Flip cardCisco Wireless LAN Controllers utilize several logical interfaces for different functions, including management, AP communication, and client services.
- Management Interface: Primary for WLC management and AP control plane.
- AP-Manager Interface: Handles AP data plane (CAPWAP data).
- Virtual Interface: Used for client roaming, DHCP proxy, and web authentication.
- Service Port: Out-of-band management port.
Memory trick: Manage APs, Virtual Clients, Service Out.
Static Route Next-Hop Resolution (Multi-Access)
Flip cardWhen a static route on a multi-access network (e.g., Ethernet) specifies only an exit interface, the router must resolve the next-hop IP address via ARP on that interface to forward traffic.
- Applies to multi-access interfaces (e.g., Ethernet, not point-to-point serial).
- Without an explicit next-hop IP, the router assumes the next-hop is directly reachable on the specified interface.
- Requires ARP resolution for the destination network on the exit interface.
Memory trick: Static routes need a path; multi-access needs a neighbor's IP to leap.
IPv6 Routing Table Codes
Flip cardCisco IOS uses single-letter codes in routing table entries to indicate how a route was learned or its type, similar to IPv4 routing tables.
- `S` for Static route.
- `C` for Connected route.
- `L` for Local route (interface's own address).
- `O` for OSPF route.
Memory trick: Codes tell the story, of route's origin and glory.
OSPF MTU Mismatch
Flip cardAn MTU mismatch on a link between OSPF neighbors can prevent the successful exchange of Database Description (DBD) packets, causing neighbors to get stuck in the EXSTART or EXCHANGE states.
- MTU: Maximum Transmission Unit (largest packet size).
- OSPF uses MTU in DBD packets.
- Mismatch prevents master/slave negotiation and database synchronization.
- Can be resolved by setting matching MTU values or ignoring MTU checks (not recommended).
Memory trick: DBD exchange needs matching MTU, or EXSTART/EXCHANGE will be stuck like glue.
HSRP Preemption
Flip cardHSRP preemption allows a router with a higher priority to take over the Active role from a lower-priority Active router, even if the lower-priority router is already active.
- Enabled with 'standby <group-number> preempt' command.
- Ensures the highest priority router is always Active.
- Critical for returning to a preferred primary gateway after recovery.
Memory trick: Preemption means the KING always takes the crown back if he's able.
OSPF Passive Interface
Flip cardA passive OSPF interface suppresses the sending and receiving of OSPF Hello packets, preventing neighbor adjacencies, but still advertises its connected network into the OSPF domain.
- Prevents OSPF Hellos on the interface.
- No OSPF neighbor relationships formed on passive interface.
- Connected network is still advertised into OSPF.
Memory trick: Passive means silent neighbor, but still tells everyone about its home.
Show IP Route Command
Flip cardThe `show ip route` command displays the IPv4 routing table, detailing all known routes, their administrative distances, metrics, next-hop IP addresses, and exit interfaces.
- Primary command for routing table verification.
- Shows how routes were learned (e.g., C for connected, S for static, O for OSPF).
- Includes administrative distance and metric for each route.
- Displays next-hop IP and/or exit interface.
Memory trick: To see the routes, `show ip route` shouts.
Longest Prefix Match Rule
Flip cardWhen a router receives a packet, it compares the destination IP address with all routes in its routing table and selects the route with the longest (most specific) matching prefix.
- Takes precedence over Administrative Distance and metric.
- A /26 prefix is more specific than a /24 prefix.
- Ensures traffic is sent to the most precise known destination.
- Fundamental principle of IP routing.
Memory trick: Longest Prefix is the first choice, then AD shouts its voice, then Metric's rejoice.
OSPF E2 Route Metric
Flip cardFor OSPF External Type 2 (E2) routes, the metric displayed in the routing table (after the administrative distance) is the external cost advertised by the ASBR, which remains constant.
- E2 routes are external routes.
- The metric is the external cost from the ASBR.
- Internal cost to ASBR is not added for E2 routes.
Memory trick: OSPF's journey: Internal cost accumulates, E1 adds, E2 keeps it fixed.
OSPF Timer Matching
Flip cardOSPF Hello and Dead intervals must match between directly connected neighbors for adjacency to form and be maintained.
- Hello interval: frequency of sending Hello packets.
- Dead interval: time to wait for a Hello before declaring a neighbor down.
- Default Dead interval is 4 times the Hello interval.
- Mismatch prevents neighbor state from reaching FULL.
Memory trick: To be OSPF friends, timers must match from ends to ends.
Static Route Administrative Distance
Flip cardBy default, static routes have an administrative distance of 1, indicating a high level of trustworthiness compared to dynamic routing protocols.
- Administrative distance (AD) is used to select the best path when multiple routing protocols provide routes to the same destination.
- Lower AD is preferred.
- AD 1 is the default for static routes.
- AD 0 is for directly connected routes.
Memory trick: AD is the judge, lower number wins the knowledge.
OSPF Routing Table Metric
Flip cardOSPF routes in the routing table display `[Administrative Distance/Cost]`, where the cost is the OSPF metric calculated based on interface bandwidths.
- Administrative Distance (AD) is 110 for OSPF internal routes.
- The cost is an accumulated value from the source to the destination.
- Lower cost is preferred for path selection.
Memory trick: AD then Metric, a route's specific numeric trick.
IPv6 Static Route with Link-Local Next-Hop
Flip cardWhen configuring an IPv6 static route using a link-local address as the next-hop, both the next-hop link-local address AND the local exit interface must be specified.
- Link-local addresses are unique only on a single link.
- Router needs the exit interface to know which link to send traffic out.
- Syntax: `ipv6 route [prefix/len] [interface] [link-local-address]`.
- Prevents ambiguity in next-hop resolution.
Memory trick: Link-local needs its Link, to know where to think.
Cisco IOS XE RESTCONF Enablement
Flip cardTo use RESTCONF on a Cisco IOS XE device, the feature must be explicitly enabled in the configuration, typically via the 'restconf' command in global configuration mode.
- Enables interaction with device using RESTful API over HTTP/HTTPS.
- Requires `restconf` command in global config mode.
- Often uses default HTTPS port 443, but can be configured.
- Provides programmatic access to YANG data models.
Memory trick: RESTCONF needs to be 'REST-ing' on the device, not just 'present'.
WLC DHCP Relay for Local Mode APs
Flip cardWhen an AP is in Local mode, the WLC acts as the DHCP relay for its clients. If the DHCP server is on a different VLAN, an IP helper address must be configured on the WLC's SVI for the client's VLAN to forward DHCP requests.
- Local mode APs tunnel client traffic to the WLC via CAPWAP.
- The WLC processes client DHCP requests (decapsulates and forwards).
- IP helper addresses are crucial on the WLC for cross-VLAN DHCP communication.
Memory trick: WLC's Helper Hand: Directing DHCP to the Right Door.
802.1Q Trunk Configuration
Flip cardTo configure a switch port as an 802.1Q trunk, you use the 'switchport mode trunk' command, which enables the port to carry traffic for multiple VLANs.
- 802.1Q is the industry standard for VLAN tagging on trunk links.
- Trunk ports carry traffic for multiple VLANs, access ports carry traffic for a single VLAN.
- On modern Cisco switches, 802.1Q is the default and often only supported trunk encapsulation type.
Memory trick: Trunk Mode: Tagging Traffic for Transport
RSTP Alternate Port (Alt) and Link Type (P2p)
Flip cardIn Rapid PVST+, an Alternate (Alt) port is a blocking port that provides a redundant path to the root bridge. A Point-to-point (P2p) link type indicates a full-duplex connection to another switch, enabling rapid transition to forwarding.
- Alternate (Alt) port: A non-designated port that is blocking and has a valid path to the root bridge.
- P2p link type: Indicates a full-duplex, point-to-point connection, allowing for rapid state transitions (e.g., from blocking to forwarding in 2-3 seconds).
- Shared link type: Indicates a half-duplex or shared segment (e.g., hub), which uses traditional STP timers.
Memory trick: Alternate Blocks, Point-to-Point Powers Past.
Ansible `ios_vlan` Module
Flip cardThe `ios_vlan` Ansible module is used to manage VLAN configurations on Cisco IOS and IOS XE devices, ensuring idempotent creation, modification, or deletion of VLANs.
- Part of `cisco.ios` collection.
- Manages VLAN properties like ID, name, state.
- Supports `state: present` for creation/ensuring existence.
- Supports `state: absent` for deletion.
Memory trick: For 'VLANs on IOS', 'ios_vlan present' is the idempotent solution.
LACP Active/Passive Interaction
Flip cardAn EtherChannel using LACP will form successfully when one side is configured in 'active' mode and the other in 'passive' mode, as 'active' initiates negotiations and 'passive' responds.
- LACP Active: Actively sends LACP PDUs and tries to negotiate an EtherChannel.
- LACP Passive: Responds to LACP PDUs but does not initiate them.
- A successful LACP EtherChannel requires at least one side to be in 'active' mode.
Memory trick: Active Asks, Passive Partners: Channel Connects.
EtherChannel Summary Command
Flip cardThe 'show etherchannel summary' command is used to quickly verify the operational status, protocol, and member interfaces of all configured EtherChannels on a Cisco switch.
- Displays group number, protocol (LACP, PAgP, or On), and port-channel interface.
- Shows individual member ports and their flags (P for bundled, S for suspended, I for standalone).
- Indicates the overall status of the Port-Channel interface (e.g., U for up, D for down).
Memory trick: EtherChannel Summary: See the whole story, quickly.
DTP Negotiation with Desirable and Auto
Flip cardWhen a Dynamic Desirable port connects to a Dynamic Auto port, the Desirable port actively initiates trunking, and the Auto port responds, successfully forming a trunk link.
- Dynamic Desirable: Actively attempts to convert the link into a trunk link.
- Dynamic Auto: Makes the port willing to convert the link to a trunk link if the neighboring port is set to trunk or desirable mode.
- Trunking occurs when at least one side is Desirable, or both sides are Trunk.
Memory trick: Desirable Drives, Auto Agrees: A Trunk Together.