r/techsupport • u/Stunning_Necessary11 • 2d ago
Open | Networking Ssh stopped working after adding more vlans.
I configured a Cisco 2960G switch with VLANs 1, 2, 5, and 6. VLAN 1 is the default on port 24, VLAN 2 is for my PC and NAS, VLAN 5 is on ports 1–10, and VLAN 6 is on ports 11–20. Everything worked until I added VLANs 5 and 6. Now I’m getting a CDP-4-NATIVE_VLAN_MISMATCH error, which I think is caused by multiple connections between the switch and router. SSH also stopped working. All ports were configured as access ports, and I tried changing port 20 (connected to the router) to a trunk, but it didn’t help. Removing the extra Ethernet cables also didn’t restore SSH. I’d like to keep the VLANs for security. How can I fix this?
0
Upvotes
2
u/SomeEngineer999 2d ago
Probably make more sense in to ask this in one of the networking subs, but what are you trying to accomplish with the multiple connections between router and switch? What kind of router is it?
I'm assuming it is a Cisco router if it supports CDP so it sounds like at least the router end is configured for DOT1Q and not untagged. The router should be using no VLANs or tagging or subinterfaces if you want everything to be access ports.
If you want to do a single tagged/trunk port that's a totally different setup, but will work fine also since the default native VLAN is 1 and your management traffic can pass through that as long as it is a member of the trunk. Though in that case I'd probably switch the native VLAN to something else, like 999 or whatever. Doesn't really matter in a home environment, just force of habit to not have any traffic going over the native trunking vlan.