1830167 Members
4854 Online
109999 Solutions
New Discussion

Re: Subnet mask

 
Ragni Singh
Super Advisor

Subnet mask

Hello, what would be the subnet mask of this ip address..

216.239.114.0/24

Thanks and points will be assigned.
5 REPLIES 5
Stuart Browne
Honored Contributor

Re: Subnet mask

The '/24' at the end states that the subnet mask is already set using CIDR. But to expand it, the '/24' equates to '/255.255.255.0'.

So this value means anything from 216.239.114.0-216.239.114.255 .
One long-haired git at your service...
Ajay Agarwal
Frequent Advisor

Re: Subnet mask

Sanjit,

In this case subnet mask is 255.255.255.0.

-Ajay
Thomas Ries
Advisor

Re: Subnet mask


You can use the ipcalc utility to do
various "calculations" related to IP addresses:

$ ipcalc --usage
Usage: ipcalc [-bhmnps?] [-b|--broadcast] [-h|--hostname] [-m|--netmask]
[-n|--network] [-p|--prefix] [-s|--silent] [-?|--help] [--usage]

example netmask:
$ ipcalc -m 216.239.114.0/24
NETMASK=255.255.255.0

accordingly the broadcast address:
$ ipcalc -b 216.239.114.0/24
BROADCAST=216.239.114.255


Regards,
/Thomas
Sivakumar TS
Honored Contributor

Re: Subnet mask


Hi,

use this smart tool...

http://jodies.de/ipcalc

it is web based and works good...

Hope this is useful

Siva.
Nothing is Impossible !
Ivan Ferreira
Honored Contributor

Re: Subnet mask

The subnet mask is a binary value, translated to decimal. The subnet mask is 8 octets, like this:

11111111.11111111.11111111.00000000

When all octects are 1, the value is 255, when all 0 is 0, a simple binary to decimal conversion.

So, when you say /24, you are saying that you have 24 subnet mask bit to 1, that would be translated to 255.255.255.0, if you say /16, that means 2 octets to 1, giving 255.255.0.0, and /8 would be:

11111111.00000000.00000000.00000000

Or 255.0.0.0.

This is very simple, but this can be more complex if you use a subnet mask like 255.255.252.0. It worth to learn what this does.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?