Pcornel
Networking · IP Fundamentals › IPv4 › Addressing

Host address

Cheat sheet · https://pcornel.dk/topic.php?topic=924

Back to the Topic

Answer

A host address is any address in a subnet between the network and broadcast addresses that can be assigned to an interface; a /24 has 254 of them (/31 point-to-point links use both).

Remember

Block size = 256 − the interesting mask octet; subnets start at multiples of it. Network address = all host bits 0, broadcast = all host bits 1, hosts in between. Hosts per subnet = 2^host bits − 2 (a /31 has two usable addresses for point-to-point links, a /32 is one host).

First checks

  • show ip interface brief — addresses on each interface.
  • show ip interface <if> | include Internet address — address with prefix length.
  • show ip route connected — the subnets the router derives from its addresses.
  • show ip route <prefix> longer-prefixes — overlapping or more specific routes.
  • Subnet calculator (e.g. ipcalc <ip>/<len> on Linux) — network, broadcast and host range.

Commands

ping
show ip arp

Verify in this order

prefix → network and broadcast → usable range in between → address inside the range → unique on the subnet

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=924

Confirmation

Confirm action

Continue?