• Advertisement

what is subnet mask?

pc/android/unix/linux

what is subnet mask?

帖子admin » 周四 7月 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
 
帖子: 3397
注册: 周六 5月 22, 2010 7:54 pm
威望: 0

Re: what is subnet mask

帖子admin » 周四 7月 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
 
帖子: 3397
注册: 周六 5月 22, 2010 7:54 pm
威望: 0


回到 非蘋菓品牌軟硬資訊

在线用户

正在浏览此论坛的用户:没有注册用户 和 2 位游客

cron
Reputation System ©'