Home > other >  Whether IP belong to a network segment
Whether IP belong to a network segment

Time:11-28

How to judge whether the IP belong to a network segment?
For example:
Whether 192.168.1.100 belongs to 192.168.1.2 instead/24

CodePudding user response:

IP and mask on and after the operation, to see if the network number is the same

CodePudding user response:

reference 1st floor weixin_40290083 response:
IP and mask on and after the operation, to see if the network number same


192.168.1.100 and 255.255.255.0 192.168.1.2 instead and 255.255.255.0 and compared to the same network number?

CodePudding user response:

refer to the second floor cuojue306 response:
Quote: refer to 1st floor weixin_40290083 response:

IP and mask on and after the operation, to see if the network number is the same as


192.168.1.100 and 255.255.255.0 192.168.1.2 instead and 255.255.255.0 and compared to the same network number?



Yes, both are 192.168.1.0 network segment of

CodePudding user response:

192.168.1.100 belongs to the 192.168.1.0/24 segment, not of 192.168.1.2 instead of/24, 192.168.1.2 instead of/24 is not a correct term, as stated above, "IP and mask and run after" the result, is a network segment,

CodePudding user response:

Such as no, in addition to the network segment and other parameters
  • Related