Skip to content

CCNA course / Keep the network secure ยท Step 1 of 13

Guide: Security fundamentalsSwitch

Guide

Security fundamentals: threats, policies, hardening and firewalls (CCNA and CCNP)

Security controls reduce the chance or impact of compromise across people, devices, networks, and applications. These fundamentals connect security terminology to Cisco infrastructure configuration and firewall behavior.

3 parts ยท 62 practice questions

Security principles: threats, identity, VPNs and wireless security

An asset is something worth protecting. A vulnerability is a weakness, such as an unpatched software flaw. A threat is a possible cause of harm, and a threat actor is a person or group that may cause it. An exploit is a technique or code that takes advantage of a vulnerability. A security control reduces the likelihood or impact of harm; patching is one mitigation. The weakness exists before an attacker exploits it.

WPA2 Personal
shared pre-shared key (PSK)
WPA2 Enterprise
802.1X, commonly backed by RADIUS
WPA3 Personal
Simultaneous Authentication of Equals (SAE)

Physical controls protect places and equipment. Locked rooms, badge-controlled entry, and visitor supervision address unauthorized entry and tailgating into a wiring closet. Device passwords, wireless settings, and protocol controls do not prevent someone following an authorized person through a door. Security awareness should teach staff to verify unexpected urgent requests through a known independent channel and report suspicious messages. A familiar display name is not proof of identity.

Authentication establishes who a user is; authorization decides what that identity may do; accounting records actions for audit. Least privilege grants only the access needed for a task, limiting damage from mistakes or account compromise. Multifactor authentication combines different factor categories: something known, such as a password or PIN; something possessed, such as a hardware key, token, or private key; and something inherent, such as a fingerprint. Two passwords are still one factor category.

Password complexity alone does not make a password safe to reuse. A unique password for each service limits credential stuffing after one service is compromised. Protect password verifiers and use a password manager safely; hashing on a server does not prevent an exposed reused password from being tried elsewhere.

A remote-access VPN connects an individual endpoint to an organization. A site-to-site VPN connects networks through gateways. GRE by itself is a tunnel, not encryption. IPsec ESP can provide packet confidentiality, integrity, data-origin authentication, and anti-replay protection when configured with suitable algorithms and keys. IKE authenticates VPN peers and negotiates security associations and key material. These protections do not guarantee WAN availability or make a compromised endpoint trustworthy.

WPA2 Personal authenticates clients with a shared pre-shared key (PSK). WPA2 Enterprise uses 802.1X authentication, commonly backed by RADIUS, rather than sharing an administrator password. WPA3 Personal uses Simultaneous Authentication of Equals (SAE) instead of WPA2 Personal's PSK-based method. A passphrase-like user experience can look similar, so a WLAN name alone does not prove which method a client negotiated. Transition mode may offer WPA2-PSK and WPA3-SAE together.

References (4)

CCNP infrastructure hardening: management and control planes

An IPv4 ACL is an ordered set of permit and deny rules. Cisco IOS has an implicit deny at the end, equivalent to deny ip any any for an extended IPv4 ACL. Add explicit permits for required traffic before relying on an ACL, or legitimate traffic will also be denied. Time-based ACL entries follow the device's local clock; NTP synchronization keeps clocks aligned so configured time ranges start and stop when intended.

Catalyst 9200 default native VLAN
VLAN 1 on trunk ports
Idle timeout example
10 minutes
SSH version
SSHv2
AAA command accounting
privileged EXEC commands at TACACS+

A device has data, control, and management functions. Transit traffic is forwarded through the device; control-plane traffic is addressed to or processed by the CPU, including routing and management traffic. Control Plane Policing (CoPP) protects CPU resources by rate-limiting traffic that reaches the control plane. In the general IOS XE MQC model, classify traffic in a class-map, set policing actions in a policy-map, then attach it with service-policy under control-plane. IOS XE protocol match options vary by platform; the router CoPP guide lists ARP, IPv6, and PPPoE protocol matches. Catalyst 9200 CoPP is a platform-specific exception: it uses the system-defined system-cpp-policy and classes; user-defined class maps and installing an arbitrary policy map are not supported. Administrators can adjust supported system class policers in packets per second. Use show policy-map system-cpp-policy or show policy-map control-plane to display configured rates. Catalyst 9200 class-level packet and byte counters can remain at zero, so use show platform hardware fed switch <switch-number> qos queue stats internal cpu policer to verify CPU-policer traffic and drop counters.

Infrastructure ACLs (iACLs) filter traffic near network ingress, commonly denying unauthorized packets destined to infrastructure addresses before permitting approved management and routing traffic. Management Plane Protection (MPP) limits which interfaces can receive management services such as SSH or SNMP. CoPP protects the CPU from excessive traffic that reaches it. They are complementary layers: ingress filtering, service reachability restriction, and CPU-facing rate protection.

Restrict SSH and other management services to trusted source addresses. On VTY lines, access-class ACL in filters inbound remote terminal connections; ip access-group is applied to an interface instead. Configure transport input ssh to allow SSH without Telnet. SSH requires an RSA host key, generated with crypto key generate rsa, and ip ssh version 2 explicitly restricts negotiation to SSHv2. Keep an idle timeout on console and VTY lines: exec-timeout 0 0 disables automatic logout, leaving an unattended authenticated session available to anyone who can reach it. Use a bounded value such as 10 minutes where policy permits.

AAA separates authentication, authorization, and accounting. The method list aaa authentication login default group tacacs+ local tries TACACS+ first and uses the local username database when the server is unavailable. The local fallback does not mean all AAA services have fallen back. Command accounting such as aaa accounting commands 15 default start-stop group tacacs+ records privileged EXEC commands at the TACACS+ server. Inspect VTY settings with show running-config | section line vty. Keep a tested fallback path before changing remote authentication, to avoid locking out administrators.

Use enable secret for privileged access. The legacy service password-encryption command only applies reversible Type 7 obfuscation to otherwise plaintext passwords in configuration output; it is not strong cryptography and does not encrypt transit traffic. Use stronger secret hashing and protected credentials where supported. SNMPv1 and v2c rely on community strings; SNMPv3 supports authentication and optional packet privacy encryption. Prefer a strong SNMPv3 authPriv configuration and restrict sources and views.

Reduce exposed services and unused Layer 2 access. Administratively shut unused switch ports and place them in a designated unused VLAN until provisioned. On Catalyst 9200, VLAN 1 is the default native VLAN on trunk ports; the default access VLAN depends on platform or interface hardware. Cisco recommends removing VLAN 1 from a trunk's allowed list to reduce spanning-tree loop or storm risk. This stops ordinary VLAN 1 data traffic, but CDP, PAgP, LACP, DTP, and VTP management traffic continues on VLAN 1. CDP and LLDP advertisements can reveal device and management details to local-link observers; disable discovery on untrusted interfaces when it is not needed. Disable the IOS HTTP server when web management is not required; use HTTPS only when required and hardened.

login block-for <seconds> attempts <tries> within <seconds> applies a temporary quiet period after the configured number of failed login attempts within the observation window. login delay slows successive attempts, and login on-failure log records failures. These reduce brute-force speed and improve visibility; they do not replace strong authentication or source restrictions.

Restrict management services to trusted source addresses with service ACLs, such as access-class on VTY lines and ACLs for SNMP or HTTP(S). Management Plane Protection can additionally restrict which interfaces accept management traffic. A dedicated out-of-band management interface or VRF separates administrative reachability from production forwarding. It can preserve a recovery path during data-plane congestion, failure, or attack, provided the separate management path and credentials remain available. For an iACL at an external ingress, deny spoofed sources that claim to be from the organization's internal prefixes, loopbacks, or known unallocated ranges before permitting legitimate management traffic.

IOS XE
policy-map system-cpp-policy
 class system-cpp-police-protocol-snooping
  police rate <packets-per-second>
line vty 0 15
 access-class VTY-ALLOW in
 transport input ssh
 exec-timeout 10 0
References (4)

CCNP firewalls: state, zones and application visibility

A traditional Layer 4 filter matches addresses, protocols, and TCP or UDP ports. On Catalyst 9200 IOS XE, Application Visibility and Control (AVC) uses deep packet inspection with the NBAR2 engine to classify applications. Cisco documents AVC-based application visibility, flow records, and QoS policies on this platform; this does not make AVC a Next-Generation Firewall or establish firewall-style application allow and block policies.

Inter-zone default
denied until a directional zone pair and policy
inspect
tracks supported sessions and permits return traffic
pass
permits matching traffic in one direction
class-default
drops by default in an inspect policy

Catalyst 9200 IOS XE can integrate with Cisco Umbrella. The switch acts as a DNS forwarder, intercepts client DNS traffic, and forwards queries to Umbrella, where administrator policy can allow or deny traffic to a fully qualified domain name. This enforcement does not apply when a host uses an IP address directly instead of DNS, and does not apply when the client uses a web proxy that bypasses the switch's DNS path.

Cisco IOS Zone-Based Policy Firewall (ZBFW) assigns interfaces to security zones and applies policy to traffic crossing between zones. Inter-zone traffic is denied by default until a directional zone pair and policy are configured. A zone pair identifies source and destination zones; attach the inspection policy under that pair with service-policy type inspect. Within a policy-map type inspect, inspect tracks supported sessions and permits matching return traffic dynamically. pass permits matching traffic in one direction without state tracking; drop discards it. Unmatched traffic belongs to class-default, which drops by default in an inspect policy.

The predefined self zone represents traffic directed to the router or generated by it, including management sessions; it does not represent transit traffic. Cisco IOS XE documents self as the exception to ZBFW's default deny-all behavior: traffic to router interfaces is allowed until explicitly denied. Traffic between interfaces in the same user-defined zone also passes freely by default, while traffic between different zones requires a zone pair and policy. Apply a policy in the direction of the traffic it should govern.

IOS XE
zone security INSIDE
zone security OUTSIDE
zone-pair security IN-TO-OUT source INSIDE destination OUTSIDE
 service-policy type inspect IN-TO-OUT-POLICY
policy-map type inspect IN-TO-OUT-POLICY
 class type inspect ALLOWED-TRAFFIC
  inspect
 class class-default
  drop
References (3)

Check your understanding

Security fundamentals: threats, policies, hardening and firewalls (CCNA and CCNP)

All 3 sections ยท no timer

Unlimited retries

Questions from every section are combined into one assessment. Answer them all correctly to complete the article.

Your completion saves in this browser. Sign in to sync it to your account.