02-02-2017 04:29 PM - edited 03-05-2019 07:58 AM
Hi,
We have a small site with a single L2 3850 switch connecting to an CE router. Currently there is two vlans (2 & 3) on the switch and the interface g1/0/1 connecting to the CE router is only an access port for vlan 2 traffic. We now need to carry traffic from both vlans (2 &3) and I need to create a 802.1Q trunk between the CE router and the 3850 switch.
Is it just a matter of change the int g1/0/1 from an access port to trunk port on the switch side? of course the CE would need to do the same as well.
Please advise.
Thanks,
Jack
02-02-2017 05:25 PM
Hi,
Is it just a matter of change the int g1/0/1 from an access port to trunk port on the switch side? of course the CE would need to do the same as well.
Yes, that is correct. In addition to changing it to trunk, it is also good practice to add the specific vlans you want to the trunk port.
Example:
switchport mode trunk
switchport trunk allowed vlan 2,3
HTH
02-02-2017 07:29 PM
02-02-2017 05:28 PM
Jack,
The switch port would be configured with dot1q encapsulation and then set to trunk mode. The router would need sub interfaces for each vlan with the appropriate encapsulation applied. You should also consider the native vlan.
Switch:
int gi1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
Router:
int gi1.2 (you didn't specify the router interface, use what is appropriate for your environment here)
encapsulation dot1q 2
int gi1.3 (same as the previous sub interface)
encapsulation dot1q 3
HTH,
Jeremy
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide