cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
667
Views
0
Helpful
1
Replies

On ROAS, should the trunk port on a switch be able to transfer vlan traffic on a port that has only native vlan defined?

pint0041
Level 1
Level 1

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

 

1 Accepted Solution

Accepted Solutions

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

HTH,
Meheretab

View solution in original post

1 Reply 1

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

HTH,
Meheretab
Review Cisco Networking for a $25 gift card