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
|
Whats the meaning of 10.0.0.1/24 address of my computer (
| ||||
feedback
|
|
Thought I would expand on this with a few examples
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. | |||||
feedback
|
|
In addition to Tim's answer: The /24 instead of /8 means that the first 3 octets of the ip address are used to specify the network. This is just a setting you can change if you want to. It's not super common to use the 10. private range with a /24 mask but there's no reason you can't do it. /8 is using only the first octet to specify the network portion, which is what a 10. network explicitly meant back in the pre-CIDR days, and that's why you still see it more often with a /8 than with a 24. As for the last octet being a 0 not a 1, that's because a 10.0.0.0 would in this case be the network address, with 10.0.0.1 being your computers ip. | |||
|
feedback
|
|
RFC 1918 reserves 3 ranges for private IP addresses. Your DHCP server/router is configured to assign this range. 10.0.0.0 - 10.255.255.255/8 172.16.0.0 - 172.31.255.255/12 192.168.0.0 - 192.168.255.255/16 | |||||||||||
feedback
|