• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 90
  • Last Modified:

Native Vlans, Tagged & untagged annnd Trunks

Hey Guys,

I have two switches & a server

Switch A (Native VLAN 1)
Switch B (VLAN 30)
Server 1 (VLAN 30)

I want to create a trunk port on Gi0/3 on Switch A to a Trunk port  on Gi1/0/17

Without having to change the native VLAN on Switch A, how can i make the native VLAN traffic get tagged on arrival at Switch B and arrive at server 1 as vlan 30 tagged traffic?

Keeping in mind, on return of the traffic it requires to resume back to the regular native vlan on switch A...

I have attempted to change the ports to trunk native 30 however that didn't do it.
It's no doubt a simple resolution, but i can't seem to figure it out today.
Points to the first person to provide me a nicely detailed (correct) answer!
0
Rob Leaver
Asked:
Rob Leaver
  • 3
  • 2
1 Solution
 
JustInCaseNetwork EngineerCommented:
Without having to change the native VLAN on Switch A
Native VLAN configuration on trunk on Cisco devices is typically per port, not per switch. By default, native is vlan 1.
So just configure proper native vlan on port(s) according to your needs.

interface Gi1/0/17
 switchport mode trunk
 switchport trunk native vlan X
0
 
SIM50Commented:
If you want your native vlan to get tagged as well, you need to enter the following commands on both switches:
vlan dot1q tag native
0
 
JustInCaseNetwork EngineerCommented:
Have in mind also that mixing two different VLANs (two different native VLANs on the same link) is:
 - security risk
 - potentially can cause loop
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
Rob LeaverSr. Network & Server EngineerAuthor Commented:
If you want your native vlan to get tagged as well, you need to enter the following commands on both switches:
vlan dot1q tag native

So if i have Switch A on native Vlan 1
And switch B on vlan 30

if i do vlan dot1q tag native it will tag vlan 1 traffic as 30 ?
0
 
JustInCaseNetwork EngineerCommented:
Than you will not have native vlan on link. All VLANs will be tagged.
0
 
SIM50Commented:
if i do vlan dot1q tag native it will tag vlan 1 traffic as 30 ?

No, you can't tag one vlan with the other vlan tag.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Turn Raw Data into a Real Career

There’s a growing demand for qualified analysts who can make sense of Big Data. With an MS in Data Analytics, you can become the data mining, management, mapping, and munging expert that today’s leading corporations desperately need.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now