IP Static Routing Configuration and Verification Guide

Types and Implementation Options of IP Static Routes

  • Four Primary Types of Static Routes:

    • Standard Static Route: A manually configured route used to reach a specific remote network.
    • Default Static Route: A route that matches all packets regardless of destination IP address when no specific route exists in the routing table.
    • Floating Static Route: A backup route configured with a higher administrative distance than the primary static or dynamic route.
    • Summary Static Route: A single static route that consolidates multiple contiguous networks into one destination entry to minimize routing table size.
  • Three Next-Hop Configuration Options:

    • Next-Hop Static Route: Only the next-hop IP address of the adjacent router is specified.
    • Directly Connected Static Route: Only the router exit interface is specified.
    • Fully Specified Static Route: Both the exit interface and the next-hop IP address are explicitly specified in the command.
  • Interface Media Considerations for Static Routing:

    • Ethernet / FastEthernet Interfaces: Router configurations should always specify the next-hop IP address rather than relying solely on the exit interface. This allows the router to execute Address Resolution Protocol (ARP) requests to obtain the MAC address of the directly connected next-hop interface before packet transmission.
    • Serial Interfaces: Point-to-point serial ports do not require MAC address resolution; therefore, specifying either the exit interface, the next-hop IP address, or both is acceptable.

IPv4 and IPv6 Static Route Syntax

  • IPv4 Configuration Syntax:

    • Commands are entered in global configuration mode (config).
    • Next-Hop Static Route: ip route <destination-network-address> <subnet-mask> <next-hop-ip>
    • Directly Connected Static Route: ip route <destination-network-address> <subnet-mask> <exit-interface>
    • Fully Specified Static Route: ip route <destination-network-address> <subnet-mask> <exit-interface> <next-hop-ip>
    • Addressing Rule: The target address in the static route command must be a network destination address, never an individual host interface address (unless configuring a static host route).
  • IPv6 Configuration Syntax:

    • Next-Hop Static Route: ipv6 route <destination-ipv6-prefix/prefix-length> <next-hop-ipv6-address>
    • Directly Connected Static Route: ipv6 route <destination-ipv6-prefix/prefix-length> <exit-interface>
    • Fully Specified Static Route: ipv6 route <destination-ipv6-prefix/prefix-length> <exit-interface> <next-hop-ipv6-address>
  • IPv6 Link-Local Next-Hop Requirement:

    • IPv6 link-local addresses (e.g., addresses beginning with fe80:: or fe02::) are non-routable addresses and do not automatically resolve in routing tables.
    • When using an IPv6 link-local address as the next-hop address, a fully specified static route must be used.
    • The configuration must explicitly specify both the exit interface type and number along with the next-hop link-local address (e.g., ipv6 route <destination-prefix/length> Serial0/1/0 fe80::2).

Default Static Routes and Bitwise Matching

  • Stub Network Context:

    • A stub network is a network accessed by a single router that has only one outbound path/way out to external networks or the Internet.
  • Gateway of Last Resort Mechanics:

    • A default static route acts as the Gateway of Last Resort for all traffic without a specific route match in the routing table.
    • IPv4 Default Route Syntax: ip route 0.0.0.0 0.0.0.0 <exit-interface | next-hop-ip>
    • IPv6 Default Route Syntax: ipv6 route ::/0 <exit-interface | next-hop-ip>
  • Bitwise Matching Logic:

    • Using a mask of 0.0.0.0 (or /0/0 in CIDR notation) forces a bitwise AND operation on any incoming destination IP address against all zeroes.
    • Performing a bitwise AND between any destination IP address and all zero bits results in a value of 0.0.0.0 (x AND 0=0x \text{ AND } 0 = 0).
    • Consequently, the default route guarantees a match for every packet if no previous, more specific prefix match exists in the routing table.

Floating Static Routes

  • Purpose and Mechanics:
    • Floating static routes serve as backup paths for primary static routes or dynamic routing protocols.
    • A floating route sits idle (