Disabling Unneeded Services and Interfaces

Router(config)#interface serial 0/0/0

Moves to interface configuration mode

Router(config-if)#shutdown

Logically disables the interface

Router(config-if)#exit

Returns to global configuration mode

Router(config)#no ip bootp server

Does not permit the router to act as a BOOTP server for other network devices

Router(config)#no cdp run

Do not advertise CDP information globally between Cisco devices.

Router(config)#interface gigabitethernet 0/1

Moves to interface configuration mode

Router(config-if)#no cdp enable

Instructs the router to not advertise CDP information between Cisco devices at the interface level

Router(config-if)#exit

Returns to global configuration mode

Router(config)#no service config

Disables the config service

NOTE: The config service allows for the autoloading of configuration files from a network server.

Router(config)#no ftp-server enable

Globally disables the router FTP service

Router(config)#no tftp-server file-sys:imagename

Disables the TFTP service to serve the IOS image at the listed location

Router(config)#no ntp server ip-address

Disables both NTP server and client capabilities

Router(config)#no service pad

Disables X.25 packet assembler/disassembler (PAD) service

Router(config)#no service tcp-small-servers

Disables minor TCP services—echo, discard, chargen, and daytime— available from hosts on the network

Router(config)#no service udp-small-servers

Disables minor UDP services—echo, discard, chargen, and daytime— available from hosts on the network

Router(config-if)#no mop enabled

Disables the Digital Equipment Corporation (DEC) Maintenance Operations Protocol

NOTE: The BOOTP, CDP, and PAD services are enabled by default. Configuration auto-loading, FTP, TFTP, and NTP services are disabled by default. TCP and UDP minor services are enabled by default prior to Cisco IOS Release 11.3 and disabled by default in Cisco IOS Release 11.3 and later. The MOP service is enabled on most Ethernet interfaces.

Was this article helpful?

0 0

Post a comment