Allocation Of Host Addresses

Lytle, Gary 0 Reputation points
2024-05-18T16:58:14.6733333+00:00

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,505 questions
{count} votes

1 answer

Sort by: Most helpful
  1. TP 97,996 Reputation points
    2024-05-18T17:35:52.8+00:00

    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 192.168.1.0/24 has the following reserved addresses:

    • 192.168.1.0: Network address.
    • 192.168.1.1: Reserved by Azure for the default gateway.
    • 192.168.1.2, 192.168.1.3: Reserved by Azure to map the Azure DNS IP addresses to the virtual network space.
    • 192.168.1.255: Network broadcast address.

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

    Thanks.

    -TP

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.