04-13-2020 12:37 PM
I am new here, first time creating a discussion.
So here is a scenario:
I have a router configured for encapsulation
int g0/0/0.10
encapsulation 10
ip address 192.168.10.1 255.255.255.0
exit
int g0/0/0.20
encapsulation 20
ip addression 192.168.20.1 255.255.255.0
exit
ip g0/0/0
no shut
on the switch
ip default gateway 192.168.10.1
vlan 10 named PC1
vlan 20 named PC2
interface g0/1
description to the router
sw mode trunk
sw trunk native vlan 99
no shut
pc1 ip config
ip192.168.10.2
sub255.255.255.0
gate192.168.10.1
pc2 ip config
ip192.168.20.2
sub255.255.55.0
gate 192.168.20.1
Question:
Should the simulation not be able to work because I have not set in the switch
int g0/1
sw trunk allowed vlan 10,20?
I am using packet tracer 7.2.2.0418
Solved! Go to Solution.
04-13-2020 12:48 PM
Hi,
Welcome to Cisco Community!
Vlan 10 and Vlan 20 traffic will go through the trunk port as all Vlans are allowed by default. By default, you have switchport trunk allowed vlan 1-4094 configured.
The native vlan is for untagged traffic passing through the trunk port.
HTH,
Meheretab
04-13-2020 12:48 PM
Hi,
Welcome to Cisco Community!
Vlan 10 and Vlan 20 traffic will go through the trunk port as all Vlans are allowed by default. By default, you have switchport trunk allowed vlan 1-4094 configured.
The native vlan is for untagged traffic passing through the trunk port.
HTH,
Meheretab
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