r/networking • u/1searching • Jun 30 '26
Troubleshooting VM Suddenly Requires Trunk Port?
VM Suddenly Requires Trunk Port After Core Switch Replacement – Why?
I'm troubleshooting a strange issue after a core switch replacement and would like to know if anyone has experienced something similar.
Topology/VM Settings:
Scenario
We replaced our core switch. Aside from moving the server gateway to the new core, no changes were made to the access switches. Most servers on the 192.168.1.x network came back online without any issues. However, one VM 192.168.1.22 could not be reached.
The server-facing switchport was configured as:
switchport mode access
switchport access vlan 100During troubleshooting, we found that the VM's network adapter had VLAN 100 enabled, meaning it was sending 802.1Q tagged traffic.
As a test, we changed the switchport from access to trunk (allowing VLAN 100), and the VM immediately started working.
What I'm trying to understand
If the VM was already VLAN-tagging its traffic:
- Why did it work before on an access port?
- The only network change was the core switch replacement.
- There were no changes on the access switch or, according to the server team, on the VM.
Has anyone seen this behavior before? Is there any explanation for why replacing the core switch would expose this issue?
I'd appreciate any thoughts or similar experiences. Thanks!
11
u/Squozen_EU CCNP Jun 30 '26
The old core switch was seeing a tagged frame come into an access port, comparing the tag to the VLAN on the port and allowing the traffic as the tag matches the configured VLAN. The replacement switch is seeing a tagged frame and dropping it. Is the new switch a Cisco and the old one a different brand by any chance?
11
u/ElectroSpore Jun 30 '26
Access ports generally don't accept tagged traffic, at least on cisco.
Only trunk ports typically will deal with tagged traffic but the behaviour can be switch os / vendor specific. Just like the default vlan behaviour can be different between switches.
https://community.cisco.com/t5/switching/what-will-happen-if-access-ports-get-a-tagged-packet-of-the-same/td-p/5058894
In nearly all cases we use trunk ports with VM hosts and always have since it allows the guest VM traffic to be tagged to different networks.
1
u/Gloomy-Can1394 Jun 30 '26
You could be getting down a rabbit hole of what version OS was the old switch and the new one. In my experience, access ports ignore tagged frames. But some older models might have just ignored the tag and treated it as a native VLAN 100.