As I understand it IP 192.168.20.4/24 can only describe a host (24) on net 192.168.20.[1-254].
Now when describing a net; can 192.168.20.4/24 be a valid network ID, or should such a network ID always end with 0, as in 192.168.20.0/24, where 0 indicates that it is the network ID itself for net 192.168.20.[1-254]. So adding network:
sudo ip route add 192.168.20.4/24 dev eth0
is not allowed (which it also seems not to be).
I guess what I really want to know is, if something else than 0 is allowed when describing a network? When I look at routing table:
default via 172.18.0.1 dev eth0
169.254.0.0/16 dev eth0 scope link metric 1000
172.18.0.0/24 dev eth0 proto kernel scope link src 172.18.0.150
192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.150
It kinda seems it could say (.7):
192.168.10.7/24 dev eth0 proto kernel scope link src 192.168.10.150
But that can never be right, correct? Instead it would have to say then (/32):
192.168.10.7/32 dev eth0 proto kernel scope link src 192.168.10.150
To describe the net consisting of only 1 single host(?). Have i understood things correctly?