Simplistic guide to the subnet mask setting to help diagnose network problems
Auteur Gareth Green | Dernière modification 30/11/2022 par Gareth Green en cours de rédaction ⧼frevu-button-review-label⧽
Simplistic guide to the subnet mask setting to help diagnose network problems
Simple_Guide_to_Subnet_Mask_Screenshot_2022-11-30_161732.jpg
A subnet mask defines the range of IP addresses that can be used within a network or subnet.
In most applications, the subnet 192.168.aaa.bbb is used with a subnet of 255.255.255.0
Where aaa is the same number throughout the factory and bbb is a unique number for each device. This is ok up to a maximum of 255 devices on a network.
In larger factories, the subnet is sometimes changed to 10.000.aaa.bbb and the subnet will be different to 255.255.255.0
Where both aaa and bbb can vary.
Subnet Mask in simple terms - same (255) and different (000).
For the 192.168.... range, subnet mask is always 255.255.255.0, so all ip addresses with the first 3 octets the same will talk to each other
192 .168 .001 .101
192 .168 .001 .102
Same Same Same Diff
255 .255 .255 .000
For the 10.0.....range, the 3rd octet could vary, so the subnet mask needs to allow for this. With a subnet mask of 255.255.000.000, all Ip addresses with ip address 10.0.aaa.bbb can talk to 10.0.xxx.yyy
010 .000 .004 .001
010 .000 .008 .054
Same Same Diff Diff
255 .255 .000 .000
The actual numbers in the subnet mask prevent cross talk between subnets and devices
IP1 192. 168. 001. 016
IP2 192. 168. 001. 010
SubnetMask 255. 255. 255. 000
Same Same Same Diff
Can communicate
IP1 192. 168. 011. 016
IP2 192. 168. 001. 010
SubnetMask 255. 255. 255. 000
Same Same Diff Diff
Cannot communicate
IP1 010. 000. 008. 011
IP2 010. 000. 001. 010
SubnetMask 255. 255. 255. 000
Same Same Diff Diff
Cannot communicate
IP1 010. 000. 008. 011
IP2 010. 000. 001. 010
SubnetMask 255. 255. 000. 000
Same Same Diff Diff
Can communicate
If you want to understand more about subnets and subnet mask, check out https://www.freecodecamp.org/news/subnet-mask-definition/
en
none
0
Draft
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #