Information
The Cisco switch should be configured to have Internet Control Message Protocol (ICMP) mask reply messages disabled on all external interfaces.
The ICMP supports IP traffic by relaying information about paths, routes, and network conditions. Switches automatically send ICMP messages under a wide variety of conditions. Mask Reply ICMP messages are commonly used by attackers for network mapping and diagnosis.
Solution
Disable ip mask-reply on all external interfaces as shown below:
SW1(config)#int g0/1
SW1(config-if)#no ip mask-reply