Network diagram of Router1 with directly connected static routes to 192.168.10.0/24 and 192.168.30.0/24 via FastEthernet interfaces, showing configuration commands and routing table.

How to Configure Directly Connected Static Route

Another way to configure a static route is to use the exit interface to specify the next-hop address. Before the CEF, this method was used to avoid the recursive lookup problem. But now the CEF resolves the recursive lookup problem. In Figure 1, the same topology that we already discussed in the previous lesson is shown. In this lesson, we should configure directly connected static routes on Router1 using exit interfaces. So using the IP route command, we have configured a static route using the exit interface for network 192.168.10.0/24 and network 192.168.30.0/24. You can see the full command in the second part of the figure below.

The routing table for Router1 is shown in the third part of the figure below. When someone sends a packet to the 192.168.10.0/24 network, Router1 looks for a match in the routing table and finds that it can forward the packet out of its Fast Ethernet 0/0 interface. The process required no further lookups. So, now you can compare the routing table using an IP address of the next-hop and the routing table using an exit interface of the router.

Diagram illustrates Directly Connected Static Route configuration
How to Configure Directly Connected Static Route 3

The routing table with a directly connected static route with an exit interface resolves the exit interface in a single search, instead of two searches. Therefore, it resolves the recursive routing problem without using CEF.

The routing table entry indicates “directly connected”, but the administrative distance of the static route is still 1. Only a directly connected interface can have an administrative distance of 0.

For point-to-point routers, we can use static routes that point to the exit interface or to the next-hop address. But the use of static routes using an exit interface on point-to-point networks is very common, which makes the CEF mechanism unnecessary.

For multipoint/broadcast interfaces, it is more appropriate to use static routes that point to a next-hop address. The following is the video to configure a static route using a directly connected static route.

Conclusion – Directly Connected Static Routes

Mastering directly connected static routes offers network professionals a powerful tool to enhance routing efficiency, eliminate recursive lookups, and maintain precise control over traffic paths. By leveraging the ‘ip route’ command with exit interfaces, as demonstrated in the Router1 configuration, administrators can optimize packet forwarding, especially in point-to-point networks, while simplifying troubleshooting and reducing overhead. While modern advancements like Cisco Express Forwarding have mitigated some historical challenges, the strategic use of these routes remains invaluable for small-scale or specific topologies. With a clear understanding of their advantages, configuration steps, and differences from truly connected interfaces, you can design robust, reliable networks tailored to your needs.

Avatar of Asad Ijaz

Asad Ijaz

NetworkUstad's lead networking architect with CCIE certification. Specializes in CCNA exam preparation and enterprise network design. Authored 2,800+ technical guides on Cisco systems, BGP routing, and network security protocols since 2018. Picture this: I'm not just someone who writes about tech; I'm a certified expert in the field. I proudly hold the titles of Cisco Certified Network Professional (CCNP) and Cisco Certified Network Associate (CCNA). So, when I talk about networking, I'm not just whistling in the dark; I know my stuff! My website is like a treasure trove of knowledge. You'll find a plethora of articles and tutorials covering a wide range of topics related to networking and cybersecurity. It's not just a website; it's a learning hub for anyone who's eager to dive into the world of bits, bytes, and secure connections. And here's a fun fact: I'm not a lone wolf in this journey. I'm a proud member and Editor of Team NetworkUstad. Together, we're on a mission to empower people with the knowledge they need to navigate the digital landscape safely and effectively. So, if you're ready to embark on a tech-savvy adventure, stick around with me, Asad Ijaz Khattak. We're going to unravel the mysteries of technology, one article at a time!"