Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6055657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:17:21+00:00 2026-05-23T08:17:21+00:00

I would like read netmask, network and broadcast address from an IP address. Basically

  • 0

I would like read netmask, network and broadcast address from an IP address. Basically I’m confused with netmask, CIDR, network and Broadcat terms, could anyone please help me to understand these terms.

Thanks,
Thomman

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:17:21+00:00Added an answer on May 23, 2026 at 8:17 am

    There is no intrinsic netmask, network and broadcast address for a given IP address. The three terms, combined with an IP address describe a network.

    The (CIDR) netmask gives the number of bits that all IPs in the network share. For example, /15 means the first 15 bits are fixed. Because an IPv4 address has 32 bits, the next 32-15=17 bits are then variable. Since every number in an IPv4 address corresponds to 8 bits, that means the following addresses are in the network 1.2.0.0/15 (binary: 00000001.00000010.0.0/15):

    1.2.0.1
    1.2.0.2
    1.2.0.255
    1.2.1.2
    1.2.255.255
    1.3.1.1 # in binary: 00000001.00000011.0.0, i.e. the first 15 bits match
    1.3.255.255
    

    but not 1.4.1.1 (00000001.00000100.1.1) or 2.2.1.1 (00000010.10.1.1), since their first 15 bits differ from 00000001.0000001.
    You can also express the netmask of a /x CIDR network in binary form by setting the first x bits. In our case, the first 15:

    11111111.11111110.00000000.00000000 # binary
         255.     254.       0.       0 # decimal
    

    A network address is then the logical AND of any address in the network and the network mask, you set all the variable bits to zero. You can also think of it as the lowest address in the network. In our case: 1.2.0.0.

    A broadcast address is the logical OR with the complement of the netmask. You set all the variable bits to one. You can also think of it as the highest address in the network. In our case: 1.3.255.255.

    This terminology is equivalent for IPv6 addresses, although you’ll usually specify only address and CIDR netmask. Also, a block between two colons now describes 16, not 8 bit. For example, 0001:0002:abcd::/48 contains 0001:0002:abcd::1 and 0001:0002:abcd:12::, but not 0001:0002:abce. You could express the netmask of this network as ffff:ffff:ffff:0 or even 1111111111111111:1111111111111111:1111111111111111::0, but /48 is shorter and easier to read. This network has 48 fixed and 128-48=80 variable bits.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to read/write encrypted XML files using LINQ to XML. Does anyone
I would like to read the xsi:type attribute from the current node in a
I would like to read the value from the e.Item.DataItem into a string but
I would like to read strings into Matlab from an excel file ID =
I would like to read some data from a stream I have using std::getline
In matlab I would like to read from a structured, and rather big, file
I would like to read a string from a TCP stream that is given
I would like to read a EAN-13 bar-code from an image in C. I
I would like to read each line of text from the file outputted from
I would like to read data from a plist, add some elements and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.