PDA

View Full Version : Subnet Address


518457
7 Jul 2006, 12:30am
Hi can anybody tell me how to get the subnet address from a given host IP address many thanks

Enverex
7 Jul 2006, 12:40am
It's normally 255.255.255.0 (which means the thing in the last block can only see other things in the last block, i.e. 111.111.111.67 can speak to 111.111.111.34 but not 111.111.113.74 if it was 255.255.0.0 then it moves up a block so 111.111.111.43 can see 111.111.113.74 but not 111.84.134.12).

518457
7 Jul 2006, 12:47am
Hi i have been given an ip address of 171.16.96.69 and the subnet mask of 255.255.255.128 and the question is

what is the subnet address for the given host ip address , how do you work this out many thanks Paul

RyderOCZ
7 Jul 2006, 01:12am
Hi i have been given an ip address of 171.16.96.69 and the subnet mask of 255.255.255.128 and the question is

what is the subnet address for the given host ip address , how do you work this out many thanks PaulThe subnet portion of your IP address if your subnet mask is 255.255.255.128 is 171.16.96.
Those first 3 must match and then the last number can be anywhere from 1 to 128...I think....I have to check my binary/hex...LOL

Park_7677
7 Jul 2006, 01:15am
A processes called ANDing. If it's a 1 & 1 it = 1. If it includes a 0 at all it's a 0.

171.16.96.69 =

10101011 . 00010000 . 00110000 . 01000101

255.255.255.128 =

11111111 . 11111111 . 111111111 . 10000000

So perform the ANDing on those binary numbers:

10101011 . 00010000 . 00110000 . 00000000

171.16.96.0

Esso
7 Jul 2006, 01:28pm
What you need is the subnet calculator (http://www.subnet-calculator.com/subnet.php?net_class=A)