Suppose we have and we subnet it as 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.


  • As long as they're isolated from each other I think it's not a problem - otherwise you could have address conflicts.
    – manish ma
    Apr 17, 2023 at 12:55
  • 1
    An IP address is a 32-bit number. It does not matter how you subnet it, the number will be the same number, so you will have multiple addresses that are the same, and you cannot do that unless you NAT between the networks.
    – Ron Maupin
    Apr 17, 2023 at 13:09
  • Unless you're talking about proxy-arp (and you shouldn't!), the minute you subnet to /25 (etc.), the /24 no longer exists as a LAN.
    – Ricky
    Apr 17, 2023 at 21:32

2 Answers 2


You are creating problems for yourself. IP addresses are always unique - regardless of the subnet mask.

If you have on VLAN 1, and on VLAN 2, then all traffic in the range - .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.


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 in two, you get and

When running and 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 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 would use a gateway to reach, but the reverse and everything else would break.

This Q&A should be able to tell you all about subnetting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.