Directly Connected Static Route

How to Configure Directly Connected Static Route

Another way to configure a static route is the option of using the exit interface to specify the next-hop address. Before the CEF, this method is used to avoid the recursive lookup problem. But now the CEF resolve the recursive lookup problem.

In Figure 1, the same topology that we already discussed in the previous lesson. In this lesson, we should configure directly connected static routes on Router1 using exit interfaces.

So using the IP route command we have configured static route using 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 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 routing table using an exit interface of the router.

Directly Connected Static Route

The routing table with configuring 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 make CEF mechanism unnecessary.

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

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!"