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: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 04:20 PM - edited 07-25-2023 04:34 PM
Sure yes
Only
Ip routing <<- this make l2 sw l3 sw ( you need assing ip for vlan svi in sw' the svi IP must be in same subnet of pc)
What you need to add
07-25-2023 04:31 PM
Hi @ankitohc
In a layer3 switch is possible but you need to create interface vlan for each vlan. For exampl
Int vlan 10
Ip address 192.168.10.1 255.255.255.0
Int vlan 20
Ip add 192.168.20.1 255.255.255.0
ip routing
Then, you need to assign ip address and gateway to PC. The gateway must be the ip address for the interface vlan.
If your switch have no layer3 cabability, you are going to need a router.
07-25-2023 04:39 PM
Okay so it's possible but that is not a standard practice that we follow in day-to-day operations activities?
07-25-2023 04:46 PM
Actually it is. Most companies now a days have layer3 switch.
07-25-2023 04:50 PM
But we usually set the router IP address as the default gateway, not the switch, right?
07-25-2023 04:51 PM
That why I mention it depend
If you have sw and router or fw then gw is router or fw
No need inter vlan in sw
07-25-2023 04:53 PM
If you have three layer data center
The access layer no need inter vlan
The distribute or core layer need inter vlan.
So you need to know how config inter vlan and use it when you network need it
07-25-2023 04:55 PM - edited 07-25-2023 04:56 PM
In the scenario I describded, there will be no router. The layer3 switch do both function.
But, if you are studying for CCNA certification, for example, is is very usuall they do this using a router and a switch. For leaning purpose, they prefer keep router doing routing and switch doing switching. Thats why you may see the router as the gateway.
07-25-2023 04:46 PM
It depends
07-25-2023 05:57 PM
07-25-2023 06:02 PM
Many issue in your network' first vlan10 and vlan20 have same subnet.
What is ip between sw and router?
And lastly I am sorry I can not help you in pkt' may be other can help you.
Thanks
MHM
07-25-2023 06:19 PM
its okay I will figure it out myself... thank you for your help
07-25-2023 06:51 PM
@ankitohc you using the same network 192.168.1.0 255.255.255.0 . This is a problem.
You need to assign different networks for each vlan example
Vlan 10 - 192.168.10.0
Vlan 20 - 192.168.20.0
Then, you put the port between switch and router as trunk
On the router, you need to configure subinterface and each subinterface will represent one vlan.
You can send this PacketTracer file and I can show you. You just need to zip the file first.
07-25-2023 07:02 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