A complete hardening checklist for Cisco Catalyst access switches. Every command explained — and automatically applied when you generate a config with netconfgen.
Generate a hardened config →Access switches are the first line of defense in your network — every endpoint, workstation, IP phone, and access point connects here before anything else. The default IOS-XE configuration that ships from Cisco is designed for compatibility, not security: Telnet is enabled, passwords are stored in cleartext, and there is no brute-force protection on the management plane.
One misconfigured access switch can expose the entire network segment to ARP spoofing, rogue DHCP servers, STP manipulation, and unauthorized management access. Hardening is not optional — it is the minimum baseline every production switch should meet before it leaves the staging rack.
! Security hardening — IOS-XE ip ssh version 2 ip ssh time-out 60 ip ssh authentication-retries 3 no ip domain-lookup service password-encryption login block-for 120 attempts 3 within 60 login on-failure log ! spanning-tree mode rapid-pvst spanning-tree portfast bpduguard default spanning-tree loopguard default ! ip dhcp snooping ip dhcp snooping vlan 10,20,99 ip arp inspection vlan 10,20,99 ! vlan 999 name BLACKHOLE ! interface range GigabitEthernet1/0/1-48 storm-control broadcast level 20.00 storm-control action shutdown ip dhcp snooping limit rate 15 no ip proxy-arp
no ip domain-lookup is easy to forget. BLACKHOLE VLAN 999 is easy to skip under deadline pressure. netconfgen never forgets — every command in the checklist is applied automatically.ip dhcp snooping trust. netconfgen scopes snooping to your configured VLANs
and marks the uplink as trusted automatically.
All these commands applied automatically. Free to try.
Generate my hardened config →