Editor’s Note: This article was originally published on September 25, 2021. It was substantially rewritten and updated in October 2026 to correct technical inaccuracies and expand the guidance on switch configuration and deployment.
Network switch configuration determines which VLANs ports belong to, what traffic uplinks carry and who can administer the device.
Configuring a network switch means defining how it connects devices and handles their traffic. An employee’s workstation might connect through an access port assigned to one VLAN, while an uplink carries traffic for several VLANs to another switch. Separate settings control administrative access and how redundant links behave.
Before deployment, verify that these settings match the intended network design and work together as expected. Commands, defaults and feature behavior vary by switch model and software release.
1. Establish the starting configuration before connecting uplinks
Stage the switch away from production. Record its model, software version, installed modules and intended role. Compare the existing configuration with the deployment plan rather than assuming that a spare, refurbished unit or factory-default device is ready to connect.
Resolve inherited settings before deployment: management addresses, local accounts, authentication servers, VLANs, trunks and routing configuration. For Cisco environments using VLAN Trunking Protocol, check the version, mode, domain and VLAN database before joining the switch to the network. A revision number alone is not a complete deployment check.
Use the manufacturer’s reset procedure when you need a clean start. Deleting a configuration file is not a universal reset method. Complete any necessary software changes during staging, with a documented firmware upgrade and recovery plan.
2. Prove that management access is restricted
Identify which administrative hosts should reach the switch and enforce that boundary. A dedicated management VLAN provides logical separation, but its name does not prevent routed access from other networks. Apply access controls at the appropriate management interface or network boundary.
Use SSH for command-line administration and disable unnecessary management services. On Cisco IOS and IOS XE, enabling SSH does not by itself exclude Telnet: VTY transport settings determine which remote terminal protocols are accepted. Check every applicable VTY line.
Test from both an authorized administrative host and a user network that should be denied. A successful administrator login proves that only the permitted path works. Keep a working console or independent recovery path available while changing remote access controls.
3. Test authentication failure before it becomes an outage
Verify that administrators receive the intended privileges, rather than assigning unrestricted access to every account. When using centralized authentication, authorization, and accounting, confirm the switch can reach the servers and that administrative activity is recorded.
During staging, test the approved recovery procedure with the authentication service unavailable. Do not assume that a local account will automatically provide access. Fallback behavior depends on the configured authentication methods and the failure condition; a server rejecting credentials is different from a server not responding.
Document who can retrieve emergency credentials and how use of those credentials is audited. Recovery that depends on an unavailable colleague is not ready for an overnight incident.
4. Verify VLAN membership at both ends of each link
Assign each port a documented purpose: endpoint access, an explicitly designed endpoint trunk, a switch uplink or a routed interface. Check the operational state and the intended configuration.
For trunks, compare allowed VLANs and native VLAN settings at both ends. On Cisco Catalyst platforms covered by the cited guide, trunks allow all VLANs by default. Limit that list to the VLANs the link actually needs.
A physical link can stay up even if one side’s allowed list is missing a VLAN. Native VLAN mismatches can also place untagged traffic into different VLANs at opposite ends. Test a representative endpoint in each required VLAN rather than relying on a ping to the switch’s management address.
Verify segmentation separately. VLAN membership does not establish which traffic routing policies or firewalls permit between those VLANs.
5. Apply loop protection according to the port’s role
Confirm the intended spanning-tree root and expected forwarding paths before adding redundant links. Investigate any unexpected root or blocked uplink before the switch carries production traffic.
Use edge-port behavior, such as Cisco PortFast, where the attached device and topology justify it. Do not apply an endpoint template indiscriminately to inter-switch links.
BPDU guard can disable an edge port that receives a spanning-tree bridge protocol data unit. That protects the topology, but also creates an operational obligation: monitor the event and investigate the connection before restoring service.
BPDU filtering is not a substitute. Cisco warns that interface-level filtering can effectively disable spanning tree on that interface and allow loops. Administratively disable unused ports so an undocumented connection does not immediately become an active network path.
6. Test redundancy with a failure, not a diagram
If the design includes redundant uplinks or a port channel, verify the actual forwarding state and member participation. Two connected cables do not prove that both belong to the intended bundle or that the surviving path has enough capacity.
During an approved test window, remove one intended failure component at a time and observe application connectivity, interface counters and recovery behavior. Define acceptable interruption before testing. Include management access in the check: forwarding may recover while the administrative path remains unavailable.
Account forport-channel limits. A bundle can survive a member failure while leaving too little bandwidth for the workload.
7. Verify persistence, monitoring and restoration
Save or commit the accepted configuration using the platform’s procedure. On Cisco IOS and IOS XE, changing the running configuration does not automatically save those changes to the startup configuration.
Keep a protected backup outside the device. Record the corresponding software version and restoration procedure, including any dependencies a configuration file alone cannot supply.
Confirm that logs reach the collector with usable timestamps and that monitoring detects a deliberately generated test event. Check interface errors and discards against a recorded baseline. A configured logging destination is not proof that anyone receives the messages.
Where feasible, restart the switch during staging and repeat the acceptance checks. This tests the saved configuration and boot behavior before production depends on them.
Make the next change easier to verify
Keep the acceptance results with the configuration: permitted management sources, required VLAN paths, expected spanning-tree state and observed failover behavior. Those records give the next engineer something concrete to compare after a replacement, upgrade or unexplained outage. A deployment checklist becomes substantially more useful when it preserves evidence of what passed.
Sources
- Cisco: IOS XE software integrity assurance and administrative controls
- Cisco: SSH configuration and access restrictions
- Cisco: Authentication methods and fallback behavior
- Cisco: Managing the VLAN database on Catalyst switches
- Cisco Catalyst 9300: VLAN trunk configuration
- Cisco Catalyst 9300: PortFast, BPDU guard and BPDU filtering
About NetworkTigers

NetworkTigers is the leader in the secondary market for Grade A, seller-refurbished networking equipment. Founded in January 1996 as Andover Consulting Group, the company originally built and re-architected data centers for Fortune 500 firms. Today, NetworkTigers provides consulting and network equipment to global government agencies, Fortune 2000 companies, and healthcare companies. Visit www.networktigers.com
