cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2422
Views
2
Helpful
18
Replies

Communication between two VLAN'S

ankitohc
Spotlight
Spotlight

Hello Team,

Can two different VLANs on the same switch communicate without trunking? 

Is it possible?

For an example fa/01 to 10 vlan 10 and fa/11 to 20 vlan 20

 

Ankit

 

18 Replies 18

So, here is a file where you can ping from one PC to another.

This scenario you built is the classic scenario called Router in a stick, very used to practice concept of Vlan, trunk, subinterface and routing between vlans.

Pay attention on how I setup the router. See that the interface does not have Ip address but instead the subinterface have.

Each subinterface is the gateway for each vlan and we use "encapsulation dot1q" which means trunk on the router side.  On the swich side we need to change the interface from access to trunk.

Let me know if you undestood and ask if you dont

@Flavio Miranda  it was really helpful since I was not aware of subinterfaces... Good learning..

Now if we don't do trunking which we have done on the router and want to communicate between the two VLANs?

 

With one switch would not be possible. What you can do is use two switches and connect one switch to interface

GigabitEthernet0/0/0 and connect other switch to GigabitEthernet0/0/1.

 On this case you dont use trunk and you can add the IP address on the interface directly, you dont use subinterface.

 The scenario would change to something like this

FlavioMiranda_0-1690339321421.png

 

ankitohc
Spotlight
Spotlight

ankitohc_2-1690333150134.png

 

 

Review Cisco Networking for a $25 gift card