Allocation Of Host Addresses

Lytle, Gary 0 Reputation points

Hello, i am doing a school project and have a question. I created two subnets and i am trying to figure out how the bits are allocated. I use a formula (2^8)-2 and come up with an answer of 254 IPv4 host addresses, yet displayed are 251. Was wondering if anyone had answers as to where the 3 addresses are allocated.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,228 questions
{count} votes

1 answer

Sort by: Most helpful
  1. TP 81,401 Reputation points

    Hi Gary,

    Besides IPs reserved for network and broadcast, Azure also reserves an IP for default gateway and two IP addresses for DNS in each subnet. See excerpt from Azure Virtual Network FAQ below:

    Are there any restrictions on using IP addresses within these subnets?

    Yes. Azure reserves the first four addresses and the last address, for a total of five IP addresses within each subnet. For example, the IP address range of has the following reserved addresses:

    • Network address.
    • Reserved by Azure for the default gateway.
    •, Reserved by Azure to map the Azure DNS IP addresses to the virtual network space.
    • Network broadcast address.

    Please click Accept Answer and upvote if the above was helpful.



    0 comments No comments