Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Device Hardening

Direct answer

Device hardening reduces a network device's attack surface: secure management protocols only, restricted management access, strong local credentials, disabled unused services and ports, logging and time sync.

When to use this

Use it when bringing a new router or switch into production, or when auditing existing devices.

First 30 seconds

1. show control-plane host open-ports — anything listening that should not?

2. show ip ssh — version 2; VTY transport input ssh only.

3. VTY access-class present on all lines.

4. show ip http server status — HTTP off, HTTPS only if needed.

5. NTP synchronised and syslog sent off-box.

Operational verification

unneeded services off → management only over SSH/HTTPS → management restricted by ACL → strong credentials and AAA → unused ports shut → logging and NTP in place

Evidence · next step

1. Verify management interface/VRF and return route.
2. Verify SSH keys/version and VTY transport.
3. Verify ACL and AAA method list.
4. Test from an allowed source in a second session.
5. Confirm logs and recovery access.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandenable secret <secret>
Scope / prerequisiteUse it when bringing a new router or switch into production, or when auditing existing devices.
Reference · 7
What next?3 suggested next steps
Child topics (this level)4
Catalog command links7
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification and output interpretation Verify boundary

Verify the running configuration against the intended baseline, then confirm exposed listeners and management reachability from both authorized and unauthorized source contexts. Check AAA/SSH/session behavior, logging and time synchronization independently. A configuration line showing a service disabled is useful evidence, but the practical control is the resulting reachable surface and policy outcome. Preserve device role and management path context when comparing baselines. Verify the complete management path from a representative authorized source: routing to the management address, permitted transport, negotiated secure protocol, identity result, privilege/authorization and command/session behavior. Device-side session/service state should be correlated with AAA/server logs where remote identity is used. A TCP connection to port 22 or an SSH banner only shows part of the path, but it does not show credential acceptance, authorization, correct privilege or the availability of a safe recovery method.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Core list: SSH v2 only (transport input ssh), VTY ACL, service password-encryption plus enable secret, no ip http server (or HTTPS with ACL), no cdp enable on edge ports, unused ports shut and in an unused VLAN, NTP, syslog, login banners, login block-for.

Key checks
  • show running-config | section line vty — transport input and access-class.
  • show ip ssh — SSH version and enabled.
  • show ip http server status — HTTP/HTTPS server state.
  • show control-plane host open-ports — services listening on the device.
  • show interfaces status | include disabled|notconnect — unused ports.
  • show ntp associations and show logging — time and logs.
ReferenceWhat it is1 section · depth on demand
ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

Device hardening

Hardening reduces the ways a network device can be attacked. Cisco's IOS hardening guide covers it plane by plane: disable unused services, use secure management protocols and AAA, protect passwords, restrict management access, send logs centrally with accurate timestamps, protect the control plane with CoPP, and filter traffic aimed at infrastructure addresses with infrastructure ACLs.

Hardening checklist (hardening guide)

AreaMeasures
ServicesDisable small servers, finger, BOOTP, PAD, unused HTTP/HTTPS, CDP/LLDP on untrusted links
Management accessSSHv2 only, exec timeouts, management ACLs, Management Plane Protection
Credentialsenable secret, type 9 (scrypt) user secrets, login failure lockout
AAATACACS+ with authorisation and accounting, local fallback
LoggingRemote syslog, buffered logs, millisecond timestamps, fixed source interface
Control planeCoPP, routing protocol authentication
Data planeInfrastructure ACLs, disable source routing, ICMP redirects, directed broadcasts
Physicalno service password-recovery where appropriate
R1(config)# service timestamps log datetime msec show-timezone
R1(config)# logging host 10.99.0.20
R1(config)# logging source-interface Loopback0
R1(config)# no logging console
R1(config)# aaa local authentication attempts max-fail 5
R1(config)# line vty 0 15
R1(config-line)# exec-timeout 10 0
R1(config-line)# transport input ssh
R1(config-line)# access-class MGMT-HOSTS in vrf-also
R1(config)# no ip source-route
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# no ip redirects
R1(config-if)# no ip proxy-arp

Hardening topics in this reference

TopicFocus
Disable unused servicesReduce attack surface
Secure management protocolsSSH, HTTPS, SNMPv3, SCP
Console, SSH, Telnet, HTTP/HTTPSEach access path
Password policy, AAAWho may log in, how
CoPPProtect the CPU

Keeping devices hardened

Put the baseline in templates, audit devices against it regularly, and review it after each new advisory or software release.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

Device hardening reduces the attack surface of routers and switches: disable unused services, secure management access, protect the control plane, and keep software current.

Hardening itemExample
Secure managementSSHv2 only, transport input ssh, VTY ACL
AuthenticationAAA with TACACS+/RADIUS, local fallback with type 9 secrets
Unused services offno ip http server, no cdp run on edges
Control planeCoPP
Logging/timeSyslog, NTP with authentication
SoftwareCurrent release, PSIRT review

Cisco publishes hardening guides per platform; use them as the baseline checklist.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and technical mechanics

Hardening is a collection of control reductions rather than one feature. The effective attack surface includes enabled services, management listeners, local/remote identities, privilege mechanisms, discovery/control features, legacy protocols and physical/console paths. A secure baseline therefore starts by knowing what the device must do and removing or constraining what it does not need. Configuration state should be read together with runtime listeners and management-plane reachability because a disabled command path and an unreachable service are different facts. Management-plane security protects how administrators reach and control the device. The effective path includes the listening service, transport protection, identity source, VTY/line selection, AAA policy, privilege/authorization and any management ACL or VRF. Each layer can be healthy while another blocks access. Cryptographic transport protects confidentiality/integrity in transit, while authentication and authorization decide who may connect and what they may do after connection; those are related but distinct controls.

Limits and common misconceptions

Hardening is risk reduction, not evidence of security. A device can satisfy a baseline and still contain software vulnerabilities, weak upstream controls or compromised credentials. Conversely, an intentionally enabled service is not automatically insecure when appropriately constrained. Keep configuration baseline, software lifecycle, identity, network exposure and monitoring as distinct controls rather than using a single hardening score as a security verdict. Management security is not equivalent to data-plane security. An SSH service can be hardened while transit traffic remains exposed, and a correctly applied management ACL can block an administrator without indicating a routing failure. Disabling Telnet or HTTP is useful hygiene but is not a complete hardening model. Separate service exposure, crypto, identity, authorization, source restriction and recovery access as evidence layers. Preserve enough context for ChatGPT to reason about a live access issue without embedding an interactive remediation tree in Pcornel.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Build a documented baseline: secure privileged secrets, AAA with recovery, SSH/HTTPS as required, management ACL/VRF, logging/time sync, disabled unused services and explicit SNMP policy. Prefer deterministic templates over one-off hardening. Do not blindly remove protocols that are operational dependencies; first identify why they exist. Store secrets outside documentation and use the Round-trip content model for intent, not production credentials. Prefer encrypted management protocols, limit reachable management interfaces, restrict source networks with explicit policy, and integrate AAA without removing a validated recovery path. Device-hardening changes should be staged so disabling legacy services does not also remove the only available access mechanism. Keep keys, local secrets and AAA server configuration out of shared examples. Management source interfaces/VRFs should be stable and documented because they influence return routing, ACL matching and AAA server policy.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Security → Device Hardening. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
management planesecure device managementSSH VTY
Embedded reference data

Quick lookup tables

Device Management / SSH / Management Plane evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show ip sshremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?admin source → management path/ACL → SSH/HTTPS transport → AAA → privilege → logging → recovery pathapplication success

Device Hardening · technical reference

Compact network access/security mechanics, policy and evidence boundaries for fast lookup.

LayerReference intent
ServicesDisable or constrain what is not required
IdentityStrong AAA + recovery
Management pathEncrypted and source-restricted
EvidenceRuntime exposure + logs, not config text alone
Confirmation

Confirm action

Continue?