• Advertisement

what is subnet mask?

pc/android/unix/linux

what is subnet mask?

Postby admin » Thu Jul 17, 2014 4:20 pm

A subnet mask refers to the practice of subnetting, which is, from my understanding of it, a way of dividing one network into smaller logical networks. A subnet mask is used to tell the network devices (whether it be the computer or any routers, modems, etc.) what addresses are local (belongs to this network), and what addresses are remote (belongs to that network).

So, if a computer's IP address is 192.168.1.104, and its subnet mask is 255.255.255.0, then the computer (and every other device attached to the same network) will assume that every IP on that computer's local network will be in the format 192.168.1.xxx, with xxx being the only part that would vary. Likewise, if the subnet mask is 255.255.0.0, then the computer will assume that every IP address in its local network will be in the format of 192.168.xxx.*xxx*.

Subnetting a network is not really useful in a home network. It is mainly used on larger networks (with 255+ computers) to reduce unnecessary network activity.
  • 0

Share/分享:
懶得有理_____難得有你
think unique,be special
admin
Site Admin
Site Admin
 
Posts: 3402
Joined: Sat May 22, 2010 7:54 pm
Reputation: 0

Re: what is subnet mask

Postby admin » Thu Jul 17, 2014 4:20 pm

In more technical terms, the subnet mask helps machines identify the network number associated with a given IP address. The 255 represents all 1's for that byte of the address and when you perform a bit-wise AND between the address and the mask, you get the network number back. What's left is the machine number

So

IP Address 192.168.1.1
Subnet mask 255.255.255.0
Network Number 192.168.1.0
Host Number 1
Address Range 192.168.1.1 to 192.168.1.255
Alternately,

IP Address 192.168.1.0
Subnet mask 255.255.254.0
Network Number 192.168.0.0
Host Number 1
Address Range 192.168.0.1 to 192.168.1.255
  • 0

懶得有理_____難得有你
think unique,be special
admin
Site Admin
Site Admin
 
Posts: 3402
Joined: Sat May 22, 2010 7:54 pm
Reputation: 0


Return to 非蘋菓品牌軟硬資訊

Who is online

Users browsing this forum: No registered users and 3 guests

cron
Reputation System ©'