Skip to content

What is Static Routing

What is Static Routing
Wajhi K

Static routing is a way of telling a router exactly where to send traffic by typing routes in by hand. A network admin enters each path, such as "send traffic for 10.10.0.0 to the router at 192.168.1.254," and the router follows it every time.

Static routes never change on their own, even if a link goes down. That makes them simple, fast, and very predictable. It also means someone has to update them whenever the network changes.

Small offices, home labs, branch sites, and backup links use static routes every day. Larger networks usually mix them with dynamic routing protocols for the best of both.

What Is a Static Route?

So, what is a static route in plain terms? It's a single, fixed instruction in a router's routing table. It says, "To reach this network, send packets to that next router" or "out this port."

Routers use IP addresses to decide where packets go. Each device also has a hardware address for local delivery, which is the main difference between IP and MAC addresses. Static routes work only with the IP side.

A static route stays in place until someone removes or changes it. It doesn't learn, adapt, or share itself with other routers unless you tell it to.

How Static Routing Works

Every router keeps a list of known networks and the best way to reach each one. Static routes are one way to fill that list. A few simple rules decide which route wins when several could work. These are the building blocks that explain how a router picks its path.

The Routing Table

The routing table is the router's map. Each entry lists a destination network, a subnet mask, and where to send matching packets.

On a Cisco router, you can view it with the show ip route command. Static routes appear with an "S" code. The default route shows as "S*." Connected networks, which are directly plugged into the router, show with a "C."

Next Hop vs Exit Interface

A static route can point to a next-hop IP address, an exit interface, or both. A next-hop address names the neighbor router that should receive the packet.

An exit interface names the port, like GigabitEthernet0/1. Pointing to both is often the best practice on Ethernet links. It skips an extra lookup and avoids problems with proxy ARP on shared networks.

Administrative Distance

Administrative distance, or AD, is a trust score from 0 to 255. Lower numbers always win. When two sources offer a route to the same network, the router picks the one with the lower AD.

Directly connected networks have an AD of 0. Static routes default to 1. OSPF uses 110, and RIP uses 120. That's why a static route normally beats any dynamic route to the same place.

Longest Prefix Match

When several routes match a packet, the router picks the most specific one. This is called the longest prefix match.

For example, a route to 10.10.5.0/24 beats a route to 10.10.0.0/16 for a packet headed to 10.10.5.20. The /24 route covers fewer addresses, so it's more specific. The default route, 0.0.0.0/0, only gets used when nothing else matches.

Types of Static Routes

Not every static route does the same job. Some handle everyday traffic, while others act as backups or catch-alls. Each type solves a specific problem, and most real networks use two or three of them together. Here are the types you'll run into most often on real networks.

Standard Static Route

A standard static route points to one specific network. It's the most common type and the easiest to read.

A branch office router might use one to reach the head office network across a VPN or private link. Each remote network gets its own entry. For a handful of networks, this is quick and clear.

Default Static Route

A default static route catches all traffic that doesn't match any other route. It uses the destination 0.0.0.0 with a mask of 0.0.0.0, often written as 0.0.0.0/0.

Almost every home and small office router uses one to send internet traffic to the internet provider. It's sometimes called the "gateway of last resort." Without it, any traffic for unknown networks would simply get dropped.

Floating Static Route

A floating static route is a backup route with a higher administrative distance. It "floats" out of the routing table until the main route fails.

Say your main internet link runs through OSPF with an AD of 110. You add a static route to a backup LTE link with an AD of 250. While OSPF works, the backup stays hidden. If OSPF loses the route, the floating route drops into place automatically.

Recursive Static Route

A recursive static route points to a next-hop address that isn't directly connected. The router has to look up that next hop in its own table to find the real path.

This adds an extra lookup step. It's useful when the next hop sits a few routers away, such as across a provider network. However, if the route to that next hop disappears, the recursive route breaks too.

Summary Static Route

A summary route combines several networks into one entry. Instead of four routes for 10.1.0.0/24 through 10.1.3.0/24, you can use one route for 10.1.0.0/22.

Summaries keep routing tables short and easy to read. They also cut down on mistakes, since there are fewer lines to type and check.

Static Routing Configuration Examples

Adding a static route takes just one line on most systems. The exact command changes from device to device, but the idea stays the same. These examples cover the most common places you'll set one up, from business routers and home routers to your own laptop.

Cisco IOS Routers

A basic static routing configuration on a Cisco router uses the ip route command. For example, ip route 192.168.2.0 255.255.255.0 10.0.0.2 sends traffic for the 192.168.2.0 network to the router at 10.0.0.2.

A default route looks like ip route 0.0.0.0 0.0.0.0 203.0.113.1. To make a floating route, add the AD at the end, such as 250. Save the settings with copy running-config startup-config, or the route disappears after a reboot.

Home and Small Office Routers

Most home routers have a static route setup page under Advanced, LAN, or Routing settings. You enter the destination network, subnet mask, gateway, and sometimes a metric.

This comes in handy when you add a second router, a lab network, or a VPN box behind your main router. A solid home network with good cabling keeps those extra routes running smoothly.

Windows Computers

A Windows static route uses the route add command in an admin Command Prompt. For example, route add 10.10.0.0 mask 255.255.0.0 192.168.1.254 -p adds a permanent route.

The -p flag keeps the route after a restart. Use route print to see your current routing table, and route delete to remove an entry you no longer need.

Linux Systems

On Linux, use ip route add 10.10.0.0/16 via 192.168.1.254. View routes with ip route show.

These commands last only until a reboot. To make routes permanent, add them to your network config files, such as Netplan on Ubuntu or NetworkManager on most desktop systems.

Advantages and Disadvantages of Static Routing

Static routing is simple, but simple has tradeoffs. It shines in small, steady networks and struggles in large, changing ones. Weighing both sides shows when manual routes make sense and when it's time to let a routing protocol take the wheel instead.

Advantages

  • No extra overhead: Static routes use no bandwidth, CPU, or memory for sharing updates between routers.
  • Predictable paths: Traffic always follows the route you set, which makes troubleshooting and security reviews easier.
  • Better security: Routers don't advertise static routes, so attackers can't inject fake routes through a routing protocol.
  • Easy for small networks: A few routes take minutes to set up and rarely need changes on small, stable networks.
  • Works on any router: Every router supports static routes, from cheap home units to large enterprise gear.

Disadvantages

  • No automatic failover: If a link fails, traffic keeps heading down the dead path unless you add a floating backup route.
  • Hard to scale: Large networks would need hundreds of routes, and each one must be typed and checked by hand.
  • Easy to mistype: A single wrong digit in a mask or next hop can black-hole traffic for a whole site.
  • Manual updates: Every network change means logging into routers and editing routes, which takes time and attention.
  • No load balancing by default: Static routes don't share traffic across links unless you set equal-cost routes manually.

Static Routing vs Dynamic Routing

Many people ask what is difference between static and dynamic routing, and the answer comes down to who builds the map. With static routing, a person types every route. With dynamic routing, routers share information and build the map themselves.

Feature

Static Routing

Dynamic Routing

How routes are added

Typed in by an admin

Learned from neighbor routers

Reacts to failures

No, unless a floating route exists

Yes, automatically

Bandwidth and CPU use

None

Some, for updates and calculations

Security

Higher, nothing is advertised

Needs authentication to stay safe

Best network size

Small or stub networks

Medium to very large networks

Setup effort

Low for a few routes

Higher at first, lower long term

Common examples

Default routes, backup links

OSPF, EIGRP, BGP, RIP

Administrative distance

1 by default

90 to 120 for common protocols

The static routing vs dynamic routing decision isn't always one or the other. Most real networks use both, with static default routes at the edge and dynamic protocols in the core.

When to Use Static Routing

Static routes fit best where the network is small, steady, and easy to map. They also work well as safety nets inside bigger networks. These are the most common situations where manual routes are the smart choice over a full routing protocol.

  • Stub networks: Branch offices with one link to headquarters only need a single default route to reach everything else.
  • Internet edge: Most businesses send internet traffic to their provider with one simple default static route.
  • Backup links: Floating static routes keep a spare LTE or cable link ready if the main connection drops.
  • Home labs and test networks: A few manual routes connect lab subnets without setting up a full routing protocol.
  • Security zones: Tightly controlled networks use static routes so traffic only flows down approved paths.

Whatever the setup, the routes still ride on physical links. A clean Ethernet cable run between routers, or a solid Cat6 cable to each switch, keeps every path you configure working as planned.

Map Every Path With Confidence

Static routing gives you full control over where traffic goes, with zero overhead. It suits small networks, internet edges, branch offices, and backup links best. A well-planned static router setup also needs reliable links, so pair it with tips for buying Ethernet cables from TS Cables.

FAQs

Is static routing faster than dynamic routing?

Forwarding speed is the same once routes are in the table. Static routing saves router CPU and bandwidth, since no updates get shared between routers.

What happens if a static route's next hop goes down?

Traffic keeps heading to the dead next hop and gets dropped. A floating static route or dynamic routing protocol can provide automatic failover.

Can static and dynamic routing work together?

Yes, most networks use both. Static routes often handle default and backup paths, while protocols like OSPF manage routes inside the network.

What is the administrative distance of a static route?

A static route has a default administrative distance of 1. Directly connected networks use 0, so they're the only routes trusted more.

Do home routers use static routing?

Yes, every home router uses a default static route to reach the internet provider. Many also let you add custom static routes manually.

Further Reading

Every route depends on the cable carrying it. These TS Cables posts explore Ethernet history, category ratings, shielding, wall plates, and connectors so your network's physical layer stays as tidy as its routing table:

Wajhi K

Wajhi K

A networking and Ethernet cabling expert with extensive knowledge of structured connectivity solutions. He shares practical insights on Ethernet cables, keystone jacks, indoor/outdoor cabling, and plenum- and riser-rated cables, helping readers make informed decisions for reliable network installations.

in Follow
Back to blog

Leave a comment