Hei,
Suppose we have 192.168.0.0/24 and we subnet it as 192.168.0.0/25. Is it a normal thing to configure hosts with IP addresses in both /24 and /25 address spaces ? We consider /24 and /25 to be in different VLAN.
Thanks
Hei,
Suppose we have 192.168.0.0/24 and we subnet it as 192.168.0.0/25. Is it a normal thing to configure hosts with IP addresses in both /24 and /25 address spaces ? We consider /24 and /25 to be in different VLAN.
Thanks
Is it a normal thing to configure hosts with IP addresses in both /24 and /25 address spaces ?
No. Having overlapping subnets disrupts communication. If you subnet 192.168.0.0/24 in two, you get 192.168.0.0/25 and 192.168.0.128/25.
When running 192.168.0.0/24 and 192.168.0.0/25 in the same broadcast domain/VLAN, hosts from the /24 prefix can send to the /25 nodes fine, but the /25 nodes cannot send to IP adresses 192.168.0.127 through .255 (which they'd try to use a gateway for).
IP addresses need to be unique at all times, regardless of prefix length. Duplicate addresses make routing ambiguous and break your network. You can only get around that by using NAT. However, NAT is an ugly kludge because it breaks IP's end-to-end paradigm.
We consider /24 and /25 to be in different VLAN.
The hosts from 192.168.0.0/25 would use a gateway to reach 192.168.0.128-254/24, but the reverse and everything else would break.
This Q&A should be able to tell you all about subnetting.
You are creating problems for yourself. IP addresses are always unique - regardless of the subnet mask.
If you have 192.168.0.0/24 on VLAN 1, and 192.168.0.0/25 on VLAN 2, then all traffic in the range 192.168.0.0 - .127 will be routed to VLAN 2. If you have hosts on VLAN 1 in that range, they will be unreachable.
Hosts in VLAN 1 will never be able to talk to hosts in VLAN 2 because they assume the destination is on the same VLAN.