network and host bits
The two halves of an IP address split by its prefix length: the network bits name the subnet and the host bits name one interface within it.
In more detail
Two addresses with the same network bits are on the same subnet and can reach each other directly. If the network bits differ, packets must go through a router. Calculate this boundary before deciding whether a peer should be reachable directly.
Related terms
- prefix length — The number after the slash in an address such as 192.0.2.42/24, saying how many leading bits identify the network.
- subnet — A range of IP addresses sharing the same network prefix, such as 192.0.2.0/24, whose members can reach each other without a router.
- default gateway — The router a host sends packets to when the destination is outside its own subnet and no more specific route exists.
Taught in
- IP Addresses, Netmasks And Subnets — Linux Fundamentals & Systems Administration