Whats the meaning of 10.0.0.1/24 address of my computer (ip addr
- command)?
1/24 and not 0/8
10.0.0 range and not 192.168.10
Answer
Thought I would expand on this with a few examples
/8 = 255.0.0.0
/16 = 255.255.0.0
/24 = 255.255.255.0
/32 = 255.255.255.255
192.168.1.0/24 = 192.168.1.0-192.168.1.255
192.168.1.5/24 is still in the same network as above we would have to go to 192.168.2.0 to be on a different network.
192.168.1.1/16 = 192.168.1.0-192.168.255.255
When you have a network you lose two IP addresses one for broadcast and one for the network. The first IP is reserved to refer to the network while the last ip of the range is reserved for the broadcast address.
Comments
Post a Comment