Pcornel
Networking · IP Fundamentals › IPv4 › Addressing

Network address

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

Back to the Topic

Answer

The network address is the first address of a subnet (all host bits 0, for example 192.168.1.0/24); it identifies the subnet in routing tables and is not assigned to a host.

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). IOS rejects a route or interface address that is really a network address of a different mask ("Bad mask").

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

ip route 10.1.1.70 255.255.255.192 ...
ip prefix-list X permit 10.1.1.70/26
show ip route connected

Verify in this order

address and prefix → host bits set to 0 → network address → used in routes, ACLs and summaries

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=923

Confirmation

Confirm action

Continue?