Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Disable Unused Device Services

Direct answer

Disabling unused services reduces the attack surface: turn off the HTTP server, CDP or LLDP on untrusted ports, small servers, finger and other services the device does not need.

When to use this

Use it when hardening a device by turning off services it does not need.

First 30 seconds

1. Disable unused services (HTTP, finger, small servers, CDP on edges, IP source routing).

2. Reduce attack surface.

3. Check open ports.

4. Follow hardening guides.

5. Audit with scripts.

Operational verification

service inventory → disable unused → verify ports

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 · IOS/IOS XE
Key commandshow control-plane host open-ports
Scope / prerequisiteUse it when hardening a device by turning off services it does not need.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

2 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 Finding enabled services Verify boundary
show control-plane host open-ports
show ip http server status
show cdp neighbors ; show lldp neighbors
show running-config | include service|ip http|ip bootp|ip finger

Compare the open ports with what management really needs (SSH, SNMP, NTP, syslog) and disable the rest.

Step 2 Common mistakes Narrow the fault
  • Leaving ip http server, CDP on internet-facing interfaces, or unused services enabled.
  • Disabling CDP/LLDP everywhere and losing troubleshooting data internally.
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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • SSHv2 protects the session; VTY policy still controls who may connect and how users authenticate
  • Use a dedicated management VRF/interface where supported and restrict sources with ACL/firewall policy
  • Disable Telnet and unused HTTP services
  • Prefer named administrators, AAA, least privilege, timeouts and audit logging
  • Preserve an out-of-band recovery path before changing remote access.
Key checks
  • show running-config | include service|ip http|cdp — services enabled
  • show control-plane host open-ports — listening ports
ReferenceWhy it matters1 section · depth on demand

When to use it

Use this branch to design and verify console, SSH and HTTPS access without exposing unnecessary services.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Disabling unused services

Every running service is part of a device's attack surface. Cisco's IOS hardening guide lists services to disable when they aren't needed, including small servers, finger, the BOOTP server, PAD, configuration auto-loading, the HTTP and HTTPS servers, and CDP or LLDP on untrusted interfaces.

Services from the hardening guide

CommandDisables
no service tcp-small-servers / no service udp-small-serversEcho, discard, chargen (default on only before 12.0)
no ip fingerFinger service
no ip bootp serverBOOTP server (ip dhcp bootp ignore keeps DHCP)
no service dhcpDHCP server and relay, if not needed
no mop enabledMOP on interfaces
no ip domain-lookupName lookups for mistyped commands
no service padX.25 PAD
no ip http server / no ip http secure-serverWeb servers, if the GUI isn't used
no service configLoading configuration from the network at boot
no cdp enable / no lldp transmit / no lldp receiveDiscovery protocols on untrusted interfaces
R1(config)# no ip http server
R1(config)# no service pad
R1(config)# no ip bootp server
R1(config)# no ip finger
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# description ISP-A
R1(config-if)# no cdp enable
R1(config-if)# no lldp transmit
R1(config-if)# no lldp receive
R1# show control-plane host open-ports
R1# show cdp interface GigabitEthernet0/0/0

Other services worth reviewing

ServiceConsideration
Smart Install (vstack) on older switchesDisable unless used (no vstack)
TelnetDisable on VTY lines
SNMP v1/v2cReplace with SNMPv3
IP source routing, directed broadcasts, proxy ARPUsually disable on edge interfaces

Doing it safely

Check what depends on a service before removing it (CDP for IP phones, HTTP for a controller GUI or web authentication, DHCP relay for clients). Put the result in a configuration template and audit devices against it.

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

Every service running on a device is something that must be patched, monitored and defended. Services that nobody uses add risk without adding value, so the hardening rule is simple: if it is not needed, turn it off. Some defaults that are harmless inside a trusted network should also be disabled on interfaces facing untrusted networks.

Disable unused services to shrink the attack surface:

no ip http server
no ip http secure-server          ! if web UI is unused
no service pad
no ip bootp server
no service tcp-small-servers
no service udp-small-servers
no ip source-route
no cdp run                        ! or per interface: no cdp enable (edge ports)
no lldp run
no ip domain lookup               ! avoid DNS lookups on typos
service password-encryption       ! cosmetic only, still use secrets

Per interface on untrusted edges: no ip redirects, no ip unreachables, no ip proxy-arp. Check what is listening with show control-plane host open-ports.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration example

no ip http server
no ip http secure-server          ! unless HTTPS management is required
no service pad
no ip source-route
no ip bootp server
no service tcp-small-servers
no service udp-small-servers
interface GigabitEthernet0/0
 no cdp enable                    ! on untrusted or internet-facing ports
 no lldp transmit
 no lldp receive

Documented example, not captured output. Check what is listening with show control-plane host open-ports.

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 → Disable unused services. 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%
Confirmation

Confirm action

Continue?