What is Static Routing?
Static Routing is a manually configured routing method where a network administrator explicitly specifies the path destination network traffic must take to reach a target IP subnet. Unlike dynamic routing protocols (such as OSPF, EIGRP, or BGP) that dynamically discover paths, static routes remain fixed in the routing table unless modified or removed manually. Static routing is resource-efficient, predictable, and highly secure.
Types of Static Routes
- Standard Static Route: Point-to-point path configured for a specific remote destination network prefix and subnet mask.
- Default Static Route (0.0.0.0/0): A "gateway of last resort" used to forward any IP packet whose destination does not match any specific entry in the routing table.
- Summary Static Route: Consolidates multiple contiguous subnets into a single static route entry to decrease routing table overhead.
- Floating Static Route: Used as a backup path for primary dynamic routes by configuring a higher Administrative Distance (AD) (e.g., AD = 130).
Static Route States & Administrative Distance
- Connected Interface (AD 0): Directly attached subnets directly configured on local router interfaces.
- Static Route via Next-Hop IP (AD 1): Validated and inserted into the Routing Table when the next-hop IP is reachable.
- Inactive / Down State: The static route is withdrawn from the Routing Table if the outgoing exit interface goes down or next-hop is unreachable.
Static Route Parameters & Syntax
- Destination Network & Subnet Mask: Defines the remote destination subnet target (e.g.,
10.0.0.0 255.255.255.0).
- Next-Hop IP Address: Specifies the IP address of the adjacent router interface that forwards the traffic onward.
- Exit Interface: Directs traffic out of a specified local physical/logical interface (e.g., GigabitEthernet0/1).
- Administrative Distance (AD Metric): Optional parameter (1–255) defining route trustworthiness. Default static route AD is 1.
Static Routing Security & Best Practices
- Unicast Reverse Path Forwarding (uRPF): Validates packet source IP addresses against local routing tables to mitigate IP spoofing.
- Null0 Interface Routing: Configures static discard routes (e.g.,
ip route 192.168.0.0 255.255.0.0 Null0) to prevent routing loops during summarization.
- Prefix Filtering & Route Dampening: Restricts unauthorized static route redistribution into dynamic protocols like OSPF/BGP.
Where to Use Static Routing?
- Stub Network Topology: Small networks or branch offices with only a single uplink connection to an ISP or headquarters.
- Default Gateway Connectivity: Directing all non-local user Internet traffic to an ISP edge gateway.
- Dial-on-Demand & VPN Tunnels: Routing traffic over static IPSec site-to-site VPN tunnels for site connectivity.