The mask (e.g., 255.255.255.0 or /24 ) defines which part of the IP is the "street" (Network ID) and which is the "house" (Host ID).
Non-directly connected networks. Routers need static routes . netpractice 42 tutorial