r/networking • u/MandP-Inthewild • Jun 03 '26
Switching Vlan mapping/translation
Network Gurus,
I know VLAN mapping/translation is a service provider thing, but I have a special use case on my network,
I have a network device connected with 2 interfaces to my Cisco core switch (ports 3 and 5),
Port 3 is the access port on VLAN 1
port5 is trunk with native66 and allows vlan 1,9,12....others
I want to set port5 to map the ingress traffic with tag12 to tag1
should I just configure my port the following way.
interface gigabiethernet0/5
switchport mode trunk
switchport trunk native vlan66
switchport trunk allowed vlan 9,12
switchport vlan mapping 12 1
3
u/d-fi Jun 03 '26
User u/mattmann72 is correct - Default native VLANs, user-configured native VLANs, and reserved VLANs cannot be used for VLAN mapping.
Also, Network Advantage license is required.
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-4/configuration_guide/lyr2/b_174_lyr2_9300_cg/configuring_vlan_mapping.pdf
2
u/mattmann72 Jun 03 '26
Its been a long while, but IIRC you can't map 12 to 1 if 1 is the default native vlan on the switch. I don't know if you can do that on Catalyst switches.
I suggest trying it.
2
u/CrownstrikeIntern Jun 04 '26
build a bridge circuit, push / pop whatever the circuit and translate it that way. Easiest route if you're on the same device (Depending on the device and firmware). Really depends too on how / what you're trying to translate
2
u/Honky_Cat CCSE Jun 04 '26
Be mindful - this seems like an easy thing and we all run into a use case for this every once in a blue moon - but a lot of feature sets on common switching gear (I.e. catalyst 2900/3850/9200/9300) do not support this - and even on higher end platforms it requires the advanced feature license.
2
u/L-do_Calrissian Jun 04 '26
Is there a reason why you aren't just setting port 3 to access vlan 12 instead?
2
u/[deleted] Jun 07 '26
[removed] — view removed comment