07-25-2023 04:19 PM
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
Solved! Go to Solution.
07-25-2023 07:15 PM
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
07-25-2023 07:37 PM
@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?
07-25-2023 07:42 PM - edited 07-25-2023 07:42 PM
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
07-25-2023 05:59 PM
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