I'm asking you today for helping me out with demistifying a question I have regarding the native vlan and a trunk link between a regular L2 switch and a router.
Let me explain quickly the scenario here:
We have a seperate network whose switch is a regular HP2824 hooked up with a SM fiber uplink coming from another building (the corporate network/internet). The trunk port 20 of this switch is hooked up to a regular router in our engineering network (isolated). This router serves us to route between multiple vlans/subnets we have for different sectors in the factory.
There is that trunk port going to the HP switch which confuses me a bit. I'm a cisco guy so i speak access/trunk links, not tag/untag. I'm getting used to it more everyday. On the HP switch, port 20 is untag vlan 8. vlan1 is not used on the HP side. So i'm assuming the native vlan of that port is 8.
On the router side, the link is considered an edge port (not configured as trunk) and its pvid is 69. In the factory, when you hook something in the vlan 69, you can pass through the corporate side and get internet access/ip phone, etc. Which makes sense. On switches that have computers needing an internet access, you must tag/allow vlan 69 to passthrough and untag the said port in 69 for their NIC.
I am wondering how the traffic is handled between the switch and the router? There is obviously a native vlan mismatch which leads to double-tagging/hopping. How in the 802.something world is this working? Router knows the destination network so it discards the vlan tag (which there isn't any) and routes traffic to next hop?
I'm wanting to change that router port to a trunk (because that's how to nature of things works in networking isn't? trunking two equipments together), leaving the native vlan 69 but i'm wondering what would happen on the other side with that port 20 leaving untag on vlan 8 ?? Should I tag port20 with vlan 8 accordingly?
(Need to mention there is no traffic restriction or acls on the network)
Thanks for reading me and taking the time to help!
Happy holidays!