That all depends on the subnet mask. Generally, you can follow this...
Class A - 255.0.0.0 - first octet is between 1-126
Class B - 255.255.0.0 - first octet is between 128-191
Class C - 255.255.255.0 - first octect is between 192-223
The above subnet masks are true if you aren't using a custom subnet mask, which you most likely aren't.
The broadcast address for the above masks is very simple to determine. Just take all the 0's and make them 255, and the 255's are replaced by your network ID. For example...
thanks a lot for all your help. My IP is 143.47.76.181. My subnet mask is 255.255.252.0. I was told that the reason for the .252 was because of the x.x.76.x format of the ip address. How do I work out then what the network and broadcast is? Will Linux be able to work this out for itself or do I need to alter it???
thanks again your information is very clear and easy to understand it can be hard to find this information.
P.S. can anyone recomend any good books that could help me I have also to set the machine up as an anomyous ftp server.
Your Network number would be 143.47.76.0
Your Broadcast Address would be 143.47.79.255
To calculate this, first convert your ip address and subnet mask into binary.
To get the network number, you would do a Binary AND of the IP address and Subnet mask.
ip address: 10001111.00101111.01001100.10110101
snet mask: 11111111.11111111.11111100.00000000
_________________________________________________AND
ntwrk addr: 10001111.00101111.01001100.00000000
To get the Broadcast Address you would do and XOR of the inverted subnet mask with the network address.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.