cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2420
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

 

1 Accepted Solution

Accepted Solutions

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

 

View solution in original post

18 Replies 18

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 

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.

Okay so it's possible but that is not a standard practice that we follow in day-to-day operations activities?

 

Actually it is. Most companies now a days have layer3 switch. 

 

But we usually set the router IP address as the default gateway, not the switch, right?

 

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 

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 

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.

It depends 

ankitohc
Spotlight
Spotlight

ankitohc_0-1690332919491.png

How to communicate with PC0 to PC3? 

PC0 is on VLAN 10 and PC3 is on VLAN 20

 

ankitohc_1-1690333029973.png

 

 

 

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

its okay I will figure it out myself... thank you for your help

 

@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.

Please see attached pkt file in zip file..

 

Review Cisco Networking for a $25 gift card