Forum start - Register
Name Password Forgot your password?

Forum start > web > waste of time > What is a subnet MASK
Author
Thread
DROCK
Chief Forgettor of Passwords


 

Location: 
Registered: 9/22/2006    Warnings: 0
What is a subnet MASK
A mask used to determine what subnet an IP address belongs to. An IP address has two components, the network address and the host address. For example, consider the IP address 150.215.017.009. Assuming this is part of a Class B network, the first two numbers (150.215) represent the Class B network address, and the second two numbers (017.009) identify a particular host on this network.

Subnetting enables the network administrator to further divide the host part of the address into two or more subnets. In this case, a part of the host address is reserved to identify the particular subnet. This is easier to see if we show the IP address in binary format. The full address is:

10010110.11010111.00010001.00001001

The Class B network part is:

10010110.11010111

and the host address is

00010001.00001001

If this network is divided into 14 subnets, however, then the first 4 bits of the host address (0001) are reserved for identifying the subnet.

The subnet mask is the network address plus the bits reserved for identifying the subnetwork. (By convention, the bits for the network address are all set to 1, though it would also work if the bits were set exactly as in the network address.) In this case, therefore, the subnet mask would be 11111111.11111111.11110000.00000000. It's called a mask because it can be used to identify the subnet to which an IP address belongs by performing a bitwise AND operation on the mask and the IP address. The result is the subnetwork address:
Subnet Mask 255.255.240.000 11111111.11111111.11110000.00000000
IP Address 150.215.017.009 10010110.11010111.00010001.00001001
Subnet Address 150.215.016.000 10010110.11010111.00010000.00000000

The subnet address, therefore, is 150.215.016.000.
__________________
DROCK
1/30/2007 12:46 Link - Ip: Logged - Quote:
tr
Admin
avataren

 

Location: 
Registered: 4/11/2006      Warnings: 0
drock, please give credit to your source. thanks.
__________________
peace and java
1/30/2007 13:01 Link - Ip: Logged - Quote:
cds0528
Researcher
avataren

 

Location: other side of the world
Registered: 6/27/2006      Warnings: 0
hmm... is this something for school?
__________________
"The glass is neither half-empty or half-full, it's twice as big as it needs to be."
1/30/2007 20:50 Link - Ip: Logged - Quote:
tr
Admin
avataren

 

Location: 
Registered: 4/11/2006      Warnings: 0
yeah.
__________________
peace and java
1/30/2007 22:42 Link - Ip: Logged - Quote:
PBMiller
Researcher
avataren

 

Location: North America
Registered: 6/28/2006      Warnings: 0
nice
__________________
if (all == Apple){
world = peace;
}else{
world = M$ && war;
}
2/1/2007 19:54 Link - Ip: Logged - Quote:
Forum start > web > waste of time > What is a subnet MASK

Quick reply
You need to login before you can post.


Powered by ASPBB v0.5.2
© 2004-2006 ASPBB Developers team