04-22-2016 01:47 AM - edited 03-08-2019 05:27 AM
I am having 2 VLAN
VLAN1 - IP range 192.168.1.1 to 192.168.1.99 subnet 255.255.255.0 i.e. I have 100 host in VLAN1
VLAN2 - IP range 192.168.1.100 to 192.168.1.199 subnet 255.255.255.0 i.e. I have another 100 host in VLAN2
Now I want to communicate in between the above 2 VLAN, for that I can place router with multiple sub interface equal to number of VLAN's i.e. in our case 2. The issue is that same subnet IP cannot be assigned to different sub-interface over the router.
As a solution to this I see many tutorials using complete different set of IP having differing by subnet. But then what is point to subnet, since we already have altered the subnet. That can be done any way even without VLAN.
What is the solution keeping same subnet IP's. Do share some tutorial or configured .cpt file.
04-22-2016 02:02 AM
Hi
The only way to have same ip ranges on same device is one would have to be isolated with something like a vrf in its own routing table so theres not a conflict in routing , or above split the subnet between vlan 1 and 2 --255.255.255.128 that way you can have 126 hosts 192.168.0.1 -126
04-22-2016 05:01 AM
Ok assuming I used your 2nd idea, Now suppose I have to migrate 1 host from VLAN1 to VLAN2 now do I need to change my IP to other subnet prepared for VLAN2 ?
04-22-2016 05:38 AM
04-22-2016 02:02 AM
VLANS are used to separate broadcast domains. VLAN 1 and 2 are all the the same broadcast domain.
If you change the same mask this will work. ie 255.255.255.128
04-22-2016 04:59 AM
I observed that even when we use 255.255.255.0 mask just by using VLAN I can separate broadcast domains.
One more thing, what if I take IP range this way
VLAN1 - IP range 10.0.0.0 subnet 255.0.0.0
VLAN2 - IP range 12.0.0.0 subnet 255.0.0.0
04-22-2016 05:39 AM
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