03-17-2019 05:33 PM
Hi, I need to know if it is possible to have PC2 and PC5 in the same vlan?.
The switches are not directly connected but connected through the router as shown in the topology.
Someone, please help.
Thank you.
Solved! Go to Solution.
03-17-2019 06:19 PM
Hi @Eli Levi ,
Yes, but these parameters must be met:
-The port of the switch that connects the PCs must be associated with VLAN 10.
-The port that connects the switch to the router must be in trunk mode.
-The both router port must have configured subinterface .10 and be encapsulated with tag 10.
-The networks configured in both subinterfaces must be different, even if they are tagging with the same VLAN.
Regards
03-17-2019 08:02 PM
Hi @Eli Levi ,
Can you make it with ACLs
Try with this:
access-list 10 permit 192.168.1.0.0.0.0.255
access-list 20 permit 192.168.2.0.0.0.0.255
access-list 30 permit 192.168.3.0.0.0.0.255
interface fa1/0.10
ip access-group 10 out
interface fa1/0.20
ip access-group 20 out
interface fa1/0.30
ip access-group 30 out
Remember to mark the correct answers as solved, since that helps other users with similar doubts
Regards
03-17-2019 08:52 PM
Hi,
Yes, it is possible to keep VLAN 10 in both networks but as you are using a router then you can't assign the same subnet on both interfaces.
Option 1:
Keep VLAN 10 in both networks and keep subnet different.
Option2:
Keep A L3 switch between both Networks and Extend VLAN 10 using the Switch only. Means It will treat as Single Network. Then you can keep single subnet and VLAN also. Means Switch will as Core and Router will work for Edge device.
Option3:
Make subinterfaces on the router and VLAN 10 subinterface keep in the Bridge Group. It will allow you to share the same subnet in both networks.
Regards,
Deepak Kumar
03-18-2019 03:08 PM
03-17-2019 05:39 PM
Yes VLAN are Locally Significant for that Brocast Domain / Network.
03-17-2019 05:46 PM
would the end devices be able to communicate in this topology example?
03-17-2019 06:19 PM
Hi @Eli Levi ,
Yes, but these parameters must be met:
-The port of the switch that connects the PCs must be associated with VLAN 10.
-The port that connects the switch to the router must be in trunk mode.
-The both router port must have configured subinterface .10 and be encapsulated with tag 10.
-The networks configured in both subinterfaces must be different, even if they are tagging with the same VLAN.
Regards
03-17-2019 07:22 PM
Hi,
Every end device in the topology can ping every other end device but I want the PC's to be able to ping only if they are in the same VLAN. how can I do that? G0/1 on both switches in trunk mode.
Please help. Thank you.
03-17-2019 08:02 PM
Hi @Eli Levi ,
Can you make it with ACLs
Try with this:
access-list 10 permit 192.168.1.0.0.0.0.255
access-list 20 permit 192.168.2.0.0.0.0.255
access-list 30 permit 192.168.3.0.0.0.0.255
interface fa1/0.10
ip access-group 10 out
interface fa1/0.20
ip access-group 20 out
interface fa1/0.30
ip access-group 30 out
Remember to mark the correct answers as solved, since that helps other users with similar doubts
Regards
03-17-2019 06:19 PM
Hi,
This will depend on your configuration. You can have both devices in the same vlan 10 but the subnet for vlan 10 is different.
Vlan 10 on sw0 could be 192.168.1.0/24 and vlan 10 on sw1 could be 192.168.2.0/24. The router would then route between the two networks. The router in this case is segmenting vlan 10 into two networks.
Thanks
John
03-18-2019 01:13 AM
Would that end device in same vlan communicate each other ? yes, only if they are in different network range.
Is this real schenario or you testing the Lab ?
1. In real network, most of the L2 network extended across network to retain same network and same L2 domain, for that most case L2L vpn.
2. Another option in the same campus extend the same VLAN.
it would be nice to know us for your use case to understand better.
03-17-2019 08:52 PM
Hi,
Yes, it is possible to keep VLAN 10 in both networks but as you are using a router then you can't assign the same subnet on both interfaces.
Option 1:
Keep VLAN 10 in both networks and keep subnet different.
Option2:
Keep A L3 switch between both Networks and Extend VLAN 10 using the Switch only. Means It will treat as Single Network. Then you can keep single subnet and VLAN also. Means Switch will as Core and Router will work for Edge device.
Option3:
Make subinterfaces on the router and VLAN 10 subinterface keep in the Bridge Group. It will allow you to share the same subnet in both networks.
Regards,
Deepak Kumar
03-18-2019 03:08 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