IP connectivityBeginner43 min read

What Is Connected route in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security

This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.

On This Page

Quick Definition

A connected route is a route that a router learns automatically when you plug a cable into one of its ports and configure an IP address on that port. The router knows that network is directly reachable through that specific interface. No additional configuration or routing protocol is needed for the router to know about this network. The route exists as long as the interface is up and has an IP address configured.

Common Commands & Configuration

show ip route connected

Displays only the connected routes in the routing table. Used to quickly verify which directly attached networks are present.

In CCNA and Network+, this command is commonly used to confirm that interfaces are up and correctly configured. Missing connected routes often indicate an interface or Layer 1 issue.

interface GigabitEthernet0/0 ip address 192.168.1.1 255.255.255.0 no shutdown

Configures an IP address on an interface and brings it up, which installs a connected route for 192.168.1.0/24.

CCNA and security exams test that you know the no shutdown command is required for connected routes to appear. Forgetting it is a common mistake.

show ip route | include connected

Filters the routing table output to show only lines containing 'connected'. Useful for quick parsing in large tables.

This pipe-to-include command is tested for efficiency in Cisco IOS simulations. Knowing how to filter output saves time in exams.

ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0

Creates a static default route pointing to an interface. The connected route for the interface's subnet must exist for the route to be valid.

In the AZ-104 and AWS SAA exams, static routes often depend on the existence of a connected route. If the interface goes down, the static route is also removed.

redistribute connected subnet

In EIGRP or OSPF, this redistributes connected routes into the routing protocol. Only works if the connected routes exist.

This is a CCNA and Network+ topic. Exam questions often ask about missing redistributed routes due to a down interface on the redistributing router.

show ip route 192.168.1.0

Shows detailed routing information for a specific subnet. If a connected route exists, it will be marked with 'C' and a next hop of 'directly connected'.

Used in troubleshooting to verify that a specific connected route is present. Common in security-plus scenarios for verifying local network reachability.

route print -4 | findstr 10.

On Windows, filters IPv4 routing table for entries starting with 10. This shows connected routes for local network interfaces.

The Security+ and Network+ exams may require understanding Windows routing table output. Connected routes have a metric of 256 and a gateway of the own IP.

Connected route appears directly in 46exam-style practice questions in Courseiva's question bank — one of the most-tested concepts on Cisco CCNA. Practise them →

Must Know for Exams

Connected routes appear in multiple certification exams, including CompTIA Network+, Cisco CCNA, AWS SAA, Azure AZ-104, and Google ACE. The level of depth varies, but the concept is universally important for IP connectivity. In the CompTIA Network+ exam (N10-008), you are expected to understand the basics of routing tables, including the different types of routes. Questions may ask you to identify a connected route in a routing table or to explain why a router has a route to a network without any dynamic routing protocol. For Network+, you should know that a connected route has an administrative distance of 0 and is automatically added when an interface is configured with an IP address.

In the Cisco CCNA exam (200-301), connected routes are a core topic. You will need to troubleshoot scenarios where a connected route is missing. You will also need to understand the output of show ip route, identify connected routes by the C code, and differentiate them from local routes (L code). The CCNA also covers how routing protocols like OSPF and EIGRP use connected routes in their network statements. Exam questions may show you a routing table and ask which route will be used to reach a specific destination. You must know that a connected route is always preferred over a static or dynamic route for the same destination.

In the AWS SAA (Solutions Architect Associate) exam, connected routes are relevant in the context of Virtual Private Clouds (VPCs). AWS VPCs have route tables associated with subnets. A route table can have a local route, which is AWS's term for a connected route. The local route allows traffic to flow within the VPC. It is automatically added when you create a VPC and cannot be deleted. Questions may ask you about route table entries and why a local route exists. You need to understand that this is analogous to a connected route on a physical router. Similarly, for Azure AZ-104, Azure virtual networks have system routes that include a route for the virtual network itself, which is a connected route concept.

For the Google ACE (Associate Cloud Engineer) exam, VPC networks also have automatically created routes for the network's IP ranges. These are essentially connected routes. Understanding that these routes are automatically generated and have the highest priority helps you answer questions about custom route creation and traffic flow. For Security+ and A+, the concept is lighter, but you may still encounter basic routing table questions or need to understand how connected routes affect network segmentation and security.

In all these exams, common question types include: identifying which routes are directly connected, determining why a router can reach a network without a routing protocol, and troubleshooting connectivity issues by checking for missing connected routes. Scenario-based questions often describe a network with multiple routers and ask you to explain why a host cannot reach another host. The answer frequently involves a missing connected route on one of the routers. Being able to quickly reason about connected routes will save you time and earn you points.

Simple Meaning

Imagine you are the manager of a large office building with many rooms and hallways. Your job is to help people find the fastest way to deliver packages from one room to another. One day, a new employee moves into a room that is right next to your main desk. You don't need anyone to tell you that this room exists or how to get there. You can see the door from where you sit. You know that if someone hands you a package for that room, you can simply turn around and hand it directly to the person in that room. That is exactly how a connected route works for a router.

In a computer network, a router is a device that forwards data packets between different networks. It has multiple ports, often called interfaces, and each interface connects to a different network segment. When a network administrator assigns an IP address to an interface and turns that interface on, the router automatically adds a route to its routing table for the network that the interface belongs to. This is called a connected route. The router does not need to learn about this network from any other router or from a static configuration. It knows the network is directly attached because the interface is physically connected to it.

For example, if you configure interface GigabitEthernet0/0 on a router with the IP address 192.168.1.1 and a subnet mask of 255.255.255.0, the router will automatically add a connected route for the network 192.168.1.0/24. The router now knows that any data packet destined for an IP address in that range should be sent out through that specific interface. The router does not need to ask another router for directions. It knows the path because it owns the door to that network.

Connected routes have a special property. They are always preferred over routes learned from other sources, such as static routes or dynamic routing protocols. This makes sense because the directly connected path is the most direct and reliable path to that network. However, connected routes only exist while the interface is up and has a valid IP configuration. If the cable is unplugged or the interface is shut down, the connected route disappears from the routing table. This automatic behavior helps networks adapt to changes without manual intervention.

Connected routes are fundamental to how routing works. Without them, a router would have no way to reach any network at all. They form the foundation upon which all other routing information is built. When a router learns about remote networks through static routes or routing protocols, it uses its connected routes as the exit points to forward packets toward those remote destinations. Understanding connected routes is essential for anyone studying networking, whether you are preparing for the CompTIA Network+, Cisco CCNA, or any other certification that covers IP connectivity.

Full Technical Definition

A connected route, also known as a directly connected route, is a routing table entry that a router installs automatically when an interface is configured with an IP address and is in the up/up state. This route indicates that the destination network is directly reachable through that interface without the need for any intermediate router. The route is derived from the IP address and subnet mask configured on the interface itself. For example, if an interface has the IP address 10.1.1.1 with a 24-bit subnet mask (255.255.255.0), the router creates a connected route for the network 10.1.1.0/24. The next-hop for this route is considered to be directly connected, meaning the router does not need to forward packets to another router; it can deliver them directly to the destination host on that network.

In routing tables, connected routes are typically denoted with a code letter. On Cisco IOS devices, the routing table uses the letter C to indicate a directly connected network. When you run the command show ip route on a Cisco router, you will see entries starting with C for directly connected networks. These routes have an administrative distance of 0, which is the lowest possible value. Administrative distance is a measure of the trustworthiness of a routing information source. Because connected routes have the lowest administrative distance, they are always preferred over any other type of route, including static routes (which typically have an administrative distance of 1) and routes from routing protocols like OSPF (administrative distance 110) or EIGRP (administrative distance 90 for internal routes).

The connected route is critical for the router to function as a gateway. When a host on a directly connected network sends a packet to a destination outside its own network, it sends the packet to the router's interface IP address, which serves as the default gateway. The router then uses its routing table to forward the packet. The connected route ensures that the router can receive packets from hosts on that network and also forward packets to those hosts. Without a connected route, the router would have no way to send packets back to the hosts on that network.

Connected routes are automatically updated if the interface configuration changes. If the administrator changes the IP address or subnet mask, the old connected route is removed, and a new one is added. If the interface goes down, the connected route is removed from the routing table. This dynamic behavior helps maintain accurate routing information. However, connected routes only exist for networks that are directly attached. If a network is reachable only through another router, it is not a connected route. It is considered a remote route and must be learned through static configuration or a dynamic routing protocol.

In the context of routing protocols, connected routes play a special role. When a routing protocol like OSPF or EIGRP is enabled on an interface, the network associated with that interface is often advertised to neighboring routers as a directly connected network. The routing protocol redistributes the connected route into the routing domain, allowing other routers to learn about that network. On Cisco routers, the network command under the routing protocol configuration typically includes the connected network. For example, in EIGRP, the network 192.168.1.0 command causes the router to advertise that network to its EIGRP neighbors, provided the interface is in the correct autonomous system.

Also important is the concept of the local route, which is a host route for the interface IP address itself. On Cisco routers, you may see an entry with code L indicating a local route. The local route is a /32 entry for the exact IP address assigned to the interface. While the connected route covers the entire subnet, the local route ensures the router can respond to traffic destined specifically to its own interface IP address. Both the connected route and the local route are automatically generated when the interface is configured and up.

the connected route is the most basic and fundamental type of route in a router's routing table. It represents networks that are directly attached to the router. It has an administrative distance of 0, is dynamically added and removed based on interface status, and is essential for the router to function as a gateway. It serves as the foundation for all other routing decisions. When troubleshooting connectivity issues, one of the first things a network engineer checks is whether the correct connected routes appear in the routing table, because if a connected route is missing, traffic cannot be forwarded to or from that network.

Real-Life Example

Think of a large hospital with many departments, such as emergency, radiology, surgery, and pharmacy. The hospital has an internal mail system that uses pneumatic tubes to send small packages and documents between departments. At the center of this tube network is a central sorting station, which is like a router. The sorting station has multiple tubes leading out to different departments. Each tube is a direct physical connection from the sorting station to that department.

Now, imagine the sorting station manager is responsible for sending packages to the correct department. When the emergency department is first built, the manager sees the new tube that connects directly to emergency. The manager knows immediately that any package addressed to the emergency department should go into that specific tube. The manager does not need to ask anyone else or look up a map. This direct tube connection is like a connected route. The sorting station automatically knows that the emergency department is directly reachable through that tube.

If the sorting station manager later receives a package for the radiology department, the manager puts it into the tube that goes directly to radiology. Again, no extra information is needed. The sorting station has a direct tube for each department. This is the same as a router having connected routes for each of its directly connected networks. The tube is the interface, and the department is the network. The address on the package is the destination IP address. The sorting station does not need to route the package through another sorting station because the destination is directly reachable.

Now, suppose the hospital opens a new wing that is not directly connected to the main sorting station. Instead, there is a secondary sorting station in the new wing. The main sorting station does not have a direct tube to the new wing. It only has a tube to the secondary sorting station. To send a package to the new wing, the main sorting station must first send it to the secondary sorting station, which then sends it to the correct department. In networking terms, the route to the new wing is a remote route, not a connected route. The main router has a connected route only to the secondary router's network, not to the final destination network.

The connected route is the most reliable and direct path available. If a tube breaks or is blocked, the connected route disappears. The manager can no longer send packages directly to that department. This is similar to a router interface going down. The router immediately removes the connected route from its routing table because the direct path is no longer available. The sorting station would then need to find an alternative way to send packages to that department, perhaps through another sorting station. In networking, a router would use a backup route from a dynamic routing protocol or a static route if one is configured.

Finally, imagine that the sorting station manager also has a list of all department names and their corresponding tube numbers. This list is the routing table. The connected routes are the entries that say department X is directly reachable via tube number Y. These entries are always present as long as the tube is connected and functional. The manager never needs to manually write these entries. They appear automatically when the tube is installed. This automatic knowledge is what makes connected routes so fundamental and trustworthy in network routing.

Why This Term Matters

Connected routes matter because they are the foundation of all routing in an IP network. Without connected routes, a router would have no way to know which networks are directly attached to it. It could not receive packets from local hosts, nor could it forward packets to those hosts. Every other type of route, whether static or dynamic, ultimately relies on connected routes to determine the exit interface. When a router forwards a packet to a remote network, it looks up the destination in the routing table, finds a route, and then looks at the next-hop IP address. To reach that next-hop, the router must have a connected route for the network of the next-hop. So, connected routes are not just important for directly attached networks. They are essential for reaching all networks, even those far away.

In practical IT work, when a network engineer configures a router or a layer 3 switch, the first verification step is often to check that connected routes appear in the routing table. If a connected route is missing, it usually means that the interface is down, or the IP configuration is incorrect. This can cause complete loss of connectivity for all hosts on that network. Troubleshooting such issues starts with checking the interface status and IP configuration. For exam candidates, understanding connected routes helps you answer questions about routing table behavior, administrative distance, and route preference.

Connected routes also affect how routing protocols operate. When you configure a routing protocol, you usually specify which networks to advertise. Those networks are typically the connected networks of the router. If you do not include a connected network in the routing protocol configuration, that network may not be advertised to other routers, leading to routing black holes. Therefore, understanding which networks are connected and how they are used by routing protocols is crucial for designing and troubleshooting routed networks.

Finally, connected routes impose a logical hierarchy. The router must have a connected route to its directly attached segments before it can learn about any remote networks. This makes connected routes the most trusted routes, with the lowest administrative distance. In exam situations, you may be asked to identify which route will be installed in the routing table when multiple sources provide information about the same destination. The answer almost always favors the connected route, because it has the lowest administrative distance.

How It Appears in Exam Questions

Exam questions about connected routes typically fall into three categories: routing table interpretation, troubleshooting connectivity, and design/configuration. In routing table interpretation questions, you might be shown the output of the show ip route command and asked to identify which entries are connected routes. The text will show the C code for directly connected networks. For example, a question could present a partial routing table with entries like C 192.168.1.0/24 is directly connected, GigabitEthernet0/0 and ask you to determine the subnet mask or the interface used. You may also be asked to explain why a particular route has a code C instead of S (static) or O (OSPF).

Troubleshooting scenarios are very common. A typical question describes a network where a host on one subnet cannot ping a host on another subnet that is on the same router. The question might show the router configuration and ask you to identify the problem. Often the issue is that the interface connecting to the second subnet is down or misconfigured, causing the connected route to be absent. You might also see a scenario where a router cannot reach a remote network because the next-hop router does not have a connected route back to the source network. This is a common pitfall known as asymmetric routing or missing return route.

Configuration-based questions may ask you to determine what happens when you configure an IP address on an interface. You need to know that the router automatically adds a connected route. You may be asked to determine the network address based on the IP and mask. For example, if an interface has IP 10.10.10.5 with mask 255.255.255.0, the connected route will be for 10.10.10.0/24. Another variation involves administrative distance. A question might ask which route a router will use when it has both a connected route and a static route to the same destination. The correct answer is the connected route because it has a lower administrative distance.

Multiple-choice questions often include distractors such as static route, dynamic route, or local route. You need to recognize that a connected route is different from a local route. The local route is a /32 route for the interface IP, while the connected route is for the entire subnet. Some questions may provide a routing table with only a local route but no connected route, and you need to realize that this indicates a problem, possibly that the interface is up but the subnet route is missing due to a configuration issue or because the interface is not in the correct state.

Finally, in cloud exams, questions may present a VPC route table with a local route and ask what its purpose is. The answer is that it enables communication within the VPC. They may ask what happens if you try to delete the local route. The correct answer is that you cannot delete it because it is automatically maintained. Understanding the cloud equivalent of connected routes helps you tackle these questions with confidence.

Practise Connected route Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

A small company has a router with two interfaces. Interface Fa0/0 is connected to the 192.168.1.0/24 network, which contains the sales department. Interface Fa0/1 is connected to the 192.168.2.0/24 network, which contains the engineering department. The router's Fa0/0 interface is configured with IP address 192.168.1.1 and subnet mask 255.255.255.0. Fa0/1 is configured with IP address 192.168.2.1 and subnet mask 255.255.255.0. Both interfaces are up and operational.

A technician checks the routing table on the router and sees two connected routes: C 192.168.1.0/24 is directly connected, FastEthernet0/0 and C 192.168.2.0/24 is directly connected, FastEthernet0/1. There are also two local routes: L 192.168.1.1/32 is directly connected, FastEthernet0/0 and L 192.168.2.1/32 is directly connected, FastEthernet0/1.

A sales employee with IP address 192.168.1.100 wants to send a file to an engineering employee with IP address 192.168.2.200. The sales host checks its own routing table and sees that the destination is not on its local subnet, so it sends the packet to its default gateway, which is 192.168.1.1 (the router's Fa0/0 interface). The router receives the packet and looks up the destination 192.168.2.200 in its routing table. It finds the connected route 192.168.2.0/24 via FastEthernet0/1. The router then forwards the packet out of Fa0/1 directly to the engineering host.

Now, suppose someone accidentally disconnects the cable from Fa0/1. The interface goes down. The router immediately removes the connected route for 192.168.2.0/24 from its routing table. Now, when the router receives a packet for the engineering network, it does not have a route. It either drops the packet or sends it to a default route if one is configured. The engineering department loses connectivity to the rest of the network. This scenario illustrates how critical connected routes are for basic network communication and how quickly a physical problem can cause a route to disappear.

Common Mistakes

Thinking a connected route can exist without an IP address configured on the interface.

A connected route is derived from the IP address and subnet mask assigned to the interface. Without an IP configuration, the router cannot determine which network is directly attached, so no connected route is created.

Always configure an IP address and subnet mask on the interface for a connected route to appear. Verify with the show ip interface brief command that the interface is up and has an IP address.

Believing that a connected route remains in the routing table if the interface is administratively down.

An administratively down interface is considered disabled. The router does not maintain a connected route for a disabled interface because the network is not reachable.

Ensure the interface is not shut down. Use the no shutdown command in interface configuration mode. Check the interface status using show interfaces or show ip interface brief.

Confusing a connected route with a static route to a directly connected network.

A static route is manually configured by an administrator. A connected route is automatically added when the interface is configured and up. Even if you configure a static route for a directly connected network, the connected route will override it because of the lower administrative distance.

When you need a route to a directly connected network, let the router create it automatically. Do not add a static route for that same network. If you do, the connected route will still be used, and the static route may cause confusion.

Thinking that a connected route covers the exact IP address of the interface only.

A connected route covers the entire subnet, not just the single IP address. For example, an interface with IP 10.0.0.1/24 creates a connected route for 10.0.0.0/24, which includes all 254 usable host addresses. The host route for the interface IP itself is a separate local route.

Remember that the connected route provides reachability to all hosts in the subnet. Use the local route for the interface IP. Both entries appear in the routing table on Cisco devices.

Assuming that a connected route can be redistributed into a routing protocol without explicitly including it in the protocol configuration.

Most routing protocols require you to specify which networks to advertise. Simply having a connected route does not automatically make it advertised. You must use commands like network under the routing protocol configuration to include the connected network.

When configuring a routing protocol like OSPF or EIGRP, add the network statement that matches the connected network. Alternatively, use redistribution of connected routes, but be aware of the implications.

Exam Trap — Don't Get Fooled

{"trap":"An exam question shows a routing table with a local route (code L) but no connected route (code C) for the same subnet, and asks if the router can forward traffic to other hosts on that subnet.","why_learners_choose_it":"Learners see the local route and think the subnet is reachable because the interface IP is in the routing table. They assume that the presence of a local route implies full subnet connectivity."

,"how_to_avoid_it":"Understand that a local route only provides reachability to the exact IP address of the interface. Without a connected route, other hosts in the subnet are not reachable. If you see only a local route, it often means the interface is up but there is no subnet route, which can happen if the interface is configured with an IP and mask but some issue prevents the connected route from being installed.

For example, on some platforms, if the interface is in a down state but the IP is still configured, you might see a local route but no connected route. Always check for the presence of both C and L entries for the same network."

Commonly Confused With

Connected routevsLocal route

A local route is a /32 host route for the exact IP address of the interface itself. A connected route is a subnet route that covers all hosts in that network. The local route allows the router to receive traffic destined to its own interface IP, while the connected route allows the router to forward traffic to any host in the subnet. Both are automatically generated, but they serve different purposes.

An interface has IP 192.168.1.1/24. The local route is 192.168.1.1/32, and the connected route is 192.168.1.0/24. If a packet arrives for 192.168.1.100, the connected route is used. If a packet arrives for 192.168.1.1, the local route is used.

Connected routevsStatic route

A static route is manually configured by a network administrator to reach a specific network via a specific next-hop or interface. A connected route is automatically created by the router. Static routes have an administrative distance of 1 (by default), while connected routes have an administrative distance of 0, making them more preferred. You cannot have a static route that points to a directly connected network with a lower administrative distance than the connected route.

On a router, you could configure a static route to reach 10.0.0.0/8 via 192.168.1.2. That is a remote network. But you would not need a static route for a directly connected network like 192.168.1.0/24, because the connected route already exists.

Connected routevsDefault route

A default route is a special route that matches any destination and is used when no other more specific route exists. A connected route is for a specific directly attached network. A default route is often a static route (0.0.0.0/0) or learned via a routing protocol. A connected route is always specific and automatic.

A router has a connected route for 192.168.1.0/24 and a default route 0.0.0.0/0 pointing to an ISP router. Traffic to 192.168.1.100 uses the connected route. Traffic to 8.8.8.8 uses the default route because there is no connected or static route for that destination.

Connected routevsDynamic route

A dynamic route is learned from a routing protocol like OSPF, EIGRP, or BGP. It relies on communication with other routers. A connected route is not learned from any protocol; it is derived from the local interface configuration. Dynamic routes have a higher administrative distance (e.g., 110 for OSPF, 90 for EIGRP) compared to connected routes (0).

A router learns about network 10.0.0.0/8 from an OSPF neighbor. That is a dynamic route. However, to reach that OSPF neighbor, the router must have a connected route to the network segment connecting them.

Step-by-Step Breakdown

1

Interface Configuration

An administrator assigns an IP address and subnet mask to a router interface, for example, 192.168.1.1 with a 24-bit mask. The interface must be enabled using the no shutdown command.

2

Interface State Check

The router checks whether the interface is in the up/up state (line protocol up, hardware up). If the interface is down, the process stops and no connected route is created.

3

Subnet Calculation

The router performs a logical AND operation between the IP address and the subnet mask to calculate the network address. For 192.168.1.1 and 255.255.255.0, the network is 192.168.1.0.

4

Connected Route Installation

The router installs a route in its routing table with the destination network 192.168.1.0/24, next-hop set to directly connected, and exit interface set to the local interface. The route is given an administrative distance of 0 and a metric of 0.

5

Local Route Installation

Simultaneously, the router installs a local route for the exact interface IP address: 192.168.1.1/32. This is a host route that ensures the router can accept packets destined to its own IP.

6

Routing Table Update

The connected and local routes appear in the routing table with the appropriate code letters (C and L on Cisco IOS). The routing table is now updated for any packets destined to this subnet.

7

Packet Forwarding Decision

When a packet arrives with a destination IP in 192.168.1.0/24, the router matches the connected route and directly forwards the packet out of the interface using ARP to find the destination MAC address.

8

Route Removal on Interface Failure

If the interface goes down (cable unplugged, shutdown command, etc.), the router detects the state change and immediately removes both the connected route and the local route from the routing table.

Practical Mini-Lesson

In a real-world network, connected routes are the bedrock of IP connectivity. When you configure a router, the first thing you do is set up interfaces with IP addresses. For each interface that you configure and bring up, you get a connected route. As a network professional, you must always verify that connected routes exist for all interfaces you intend to use. The command show ip route on Cisco devices lists all routes. Look for the C entries. If you see a missing connected route for an interface that you know is configured, you need to investigate. Check the interface status with show ip interface brief. If the interface is down, check the physical connection and ensure it is not administratively shut down. If the interface is up but the connected route is still missing, check if the interface has a secondary IP that might cause conflicts or if there is a filtering policy that removes routes.

Another practical aspect is the use of connected routes in routing protocol configuration. When you enable OSPF or EIGRP, you must specify which networks to include. A common mistake is to forget to include a connected network in the routing protocol. This can cause that network to be invisible to other routers, leading to reachability issues. For example, if you have a router connected to three subnets and you only advertise two of them via OSPF, the third subnet will not be reachable from other routers. The connected routes exist locally, but they are not shared. In production networks, you can use the network command under the routing protocol to match the connected networks. Alternatively, you can redistribute connected routes, but that is a more advanced topic.

What can go wrong? Connected routes can disappear unexpectedly. A common scenario is a flapping interface, where the interface goes up and down repeatedly. This causes the connected route to be added and removed constantly, which can destabilize the routing table and affect routing protocol adjacencies. Another issue is misconfiguration of subnet masks. If you configure an interface with a /30 mask but the actual network uses a /24, the connected route will only cover a small part of the network, and traffic to other IPs in the larger subnet will not be forwarded correctly. Always ensure that the IP and mask you configure match the actual network design.

Also, remember that connected routes have an administrative distance of 0, meaning they are unequivocally preferred. If you accidentally configure a static route that overlaps with a connected route, the connected route will always win. The static route will appear in the routing table only if the connected route is removed. This is actually a good safety net, but it can confuse administrators who expect the static route to be used. When designing redundancy, keep in mind that you cannot have two connected routes to the same network. Each network can be directly connected to at most one router interface unless you use special techniques like multi-homing or load balancing, which require dynamic routing.

Finally, in cloud environments like AWS, the concept of a connected route appears as the local route in VPC route tables. You cannot delete or modify this route. Understanding this is crucial for cloud architects. If you create a VPC with CIDR 10.0.0.0/16, the local route automatically covers that range. If you then create a peering connection to another VPC, you must add custom routes, but the local route always remains, ensuring that traffic within the VPC stays local. This behavior mirrors the physical router's connected route and is a key concept in cloud networking exams.

What Is a Connected Route in IP Networking

In IP networking, a connected route is a route that is automatically installed into a routing table when an IP address is configured on an interface and the interface is in the up/up state. This is one of the most fundamental concepts in routing because connected routes represent directly attached networks. When you assign an IP address and subnet mask to a router interface, the router immediately creates a route for that subnet in its routing table with a next hop of directly connected.

This route is given the highest administrative preference among static and dynamic routes because it is the most reliable. For example, if you configure interface GigabitEthernet0/0 with IP address 192.168.

1.1 and subnet mask 255.255.255.0, the router will insert a connected route for 192.168.1.0/24. This route is critical for any device on that subnet to be reachable via the router.

Connected routes also serve as the foundation for routing protocols like OSPF, EIGRP, and BGP because these protocols use connected routes to determine which interfaces to advertise. In the context of AWS, a connected route appears in VPC route tables when a subnet is directly associated with a virtual private gateway or an internet gateway. For example, when you create a VPC and add a subnet, the route table for that subnet automatically contains a local route for the VPC CIDR block.

This local route is essentially a connected route. Understanding connected routes is essential for the AWS SAA, AZ-104, Network+, and CCNA exams because many routing issues stem from misconfigured or missing connected routes. When an interface is down or misconfigured, the connected route is removed from the routing table, breaking connectivity to that subnet.

Connected routes have a default administrative distance of 0 on Cisco routers, meaning they are always preferred over static routes or routes learned via dynamic protocols. For security, connected routes can be filtered using distribute lists or prefix lists to prevent certain networks from being advertised. The concept also applies to loopback interfaces, which are virtual interfaces that always produce a connected route as long as the interface is administratively up.

In exam scenarios, you may be asked to identify why a particular subnet is not reachable: often, the answer is that the interface is down and thus the connected route is missing. For the Google ACE exam, connected routes in Google Cloud appear as subnet routes automatically created when you create a VPC subnet. These subnet routes are equivalent to connected routes and are propagated using Cloud Router for hybrid connectivity.

A connected route is the most basic and most trusted type of route, representing networks that are directly attached to a router or routing device. Knowing how to verify connected routes using commands like show ip route connected on Cisco or route print in Windows is a practical skill tested across multiple certification exams.

How Connected Route Cost and Administrative Distance Work

Connected routes are unique in that they have an administrative distance (AD) of 0 on Cisco routers, and a similar preference value of 0 on Juniper and other vendors. Administrative distance is a measure of trustworthiness; lower AD values indicate more reliable routes. Because connected routes represent directly attached networks, they are considered the most reliable type of route.

Static routes have an AD of 1, and dynamic routing protocols have higher ADs (e.g., OSPF AD 110, EIGRP AD 90, BGP AD 20). This means that if a routing table sees a connected route and a static route for the same subnet, the connected route will always be chosen regardless of the static route's metric.

In contrast, metric is used to compare multiple routes from the same routing protocol. For connected routes, there is no metric because there is no dynamic path selection involved. The route is simply present or absent based on interface state.

In exam questions related to CCNA or Network+, you may be asked to determine which route will be placed in the routing table when multiple sources advertise the same network. The answer often involves the concept of administrative distance, with connected routes winning due to AD 0. For the AZ-104 exam, Azure uses a similar concept called system routes.

When you create a virtual network in Azure, a system route for the VNet address space is automatically created and it behaves like a connected route. This system route has a higher precedence than custom routes or BGP routes for the same prefix. Understanding the precedence order is critical for troubleshooting connectivity in hybrid networks.

For the Security+ exam, you might encounter scenarios where an attacker introduces a rogue route to intercept traffic. Connected routes are not susceptible to route poisoning attacks because they are not learned dynamically, but they can be manipulated if an attacker gains administrative access to an interface. The metric or cost for connected routes is always considered 0 because there is no intermediary hop.

When comparing multiple connected routes to the same destination (which shouldn't normally happen unless using multihoming), the router uses the route with the longest prefix match first. For example, if you have a connected route for 10.0.

0.0/8 and another for 10.0.1.0/24, traffic to 10.0.1.5 will use the /24 route because it is more specific, even though both are connected. In practice, you can modify the administrative distance of a connected route by using interface-specific configurations, but this is rare and typically done for policy-based routing.

For the AWS SAA exam, understanding the cost of connected routes is important when designing VPC peering and transit gateway architectures. A local VPC route for the VPC CIDR is always preferred over a peering connection route or VPN route because the local route is effectively a connected route with the highest priority. Misconfigurations often occur when a route table has a more specific route that overrides the local connected route, causing asymmetric routing.

Thus, knowing when and how connected routes have a cost or metric of 0 compared to other route types is a foundational part of the CCNA, Network+, AWS SAA, and AZ-104 exam objectives.

Connected Route States and Behavior in Different Network Scenarios

The state of a connected route is directly tied to the state of the interface it is configured on. On a Cisco router, if an interface is in the up/up state, the connected route is present in the routing table. If the interface goes down (line protocol down) or is administratively shut down, the connected route is immediately removed.

This behavior is deterministic and is a core concept for the CCNA and Network+ exams. For example, if a technician accidentally shuts down an interface with the command shutdown, all connected routes for subnets on that interface vanish, causing traffic to those subnets to be dropped or to follow less preferred routes. In the context of Azure (AZ-104), connected routes are called system routes and they are tied to the state of the virtual network interface (NIC).

If a VM's NIC is disabled or the VM is deallocated, the system routes for that subnet still exist because the subnet itself remains active. However, the route will not point to a functional next hop, leading to connectivity issues. In AWS, when you delete an internet gateway or detach it from a VPC, the connected routes that previously pointed to that gateway are removed from the route table.

The VPC's local route remains, but routes for 0.0.0.0/0 or public subnets disappear. This is a common troubleshooting scenario in the AWS SAA exam. For Google Cloud (ACE), the state of a connected route (subnet route) is persistent as long as the VPC subnet exists, even if the instances are stopped.

This is because the route is attached to the subnet, not to any specific instance. However, if you delete the subnet, the route is automatically removed. Another important behavior is route redistribution.

When you redistribute connected routes into a dynamic routing protocol like OSPF or EIGRP, the originating interface must have an IP address configured and be in the up/up state. If the interface goes down, the redistributed route is withdrawn from the routing protocol. This is often tested in CCNA labs where you need to ensure that OSPF is correctly advertising directly connected networks.

The administrative distance of connected routes also affects how routes are used during failover. If a connected route is present for a subnet and a dynamic route also exists, the connected route always wins due to lower AD. This can cause issues in load balancing setups.

In Security+, you should be aware that connected routes cannot be spoofed from outside the device, but they can be attacked if the attacker gains local access. For instance, if an attacker adds an IP address to a host interface, that host will have a connected route for its own subnet, which could redirect traffic. The state of a connected route is binary: present if the interface is up, absent if down.

This simple behavior is the root cause of many network outages and is therefore a high-yield topic for certification exams.

Troubleshooting Connected Route Issues in Multi-Vendor Environments

Troubleshooting connected route issues requires understanding that the route is only present when the interface is up and has a valid IP address. In Cisco IOS, the command show ip route connected lists all connected routes. If a subnet is missing, the first step is to verify the interface status with show interfaces or show ip interface brief.

If the interface is down, resolve the physical or logical issue. Common causes include faulty cables, disabled ports, or misconfigured VLANs. In Azure, missing connected routes can be diagnosed using the Effective Routes view for a NIC.

If a route for the VNet is not listed, the subnet may have been deleted or the VNet may not be properly associated. In AWS VPC, if you see that a route table does not have the local route for the VPC CIDR, it usually means the VPC was incorrectly created or the route table was corrupted. A known pattern is the missing default route (0.

0.0.0/0) when attaching an internet gateway: the route is not a connected route but a static route; however, the connected route for the VPC local network must be present for public subnets to work.

Troubleshooting inter-VPC connectivity often involves checking that the local routes in each VPC are present and not overlapping. Overlapping IP addresses cause the local connected route to conflict with a peered route, leading to route table ambiguities. For example, if VPC A has 10.

0.0.0/16 and VPC B also has 10.0.0.0/16, the local connected route in each VPC prevents traffic from being sent to the other VPC. This is a common exam scenario for AWS SAA. In on-premise networks using BGP, connected routes can be redistributed into BGP, but if the interface goes down, the BGP prefix is withdrawn.

This can cause routing blackholes. In the Security+ exam, you may encounter a scenario where an attacker uses a rogue DHCP server to assign an IP address to a device, creating a fake connected route. This allows the device to falsely believe it is directly connected to the network.

To troubleshoot, use security tools to verify the source of IP configurations. Another pattern is the sticky connected route: some operating systems retain a connected route for a brief period after an interface goes down, but routers immediately remove them. In enterprise environments, you might see issues with secondary IP addresses.

Configuring multiple IPs on one interface creates multiple connected routes, each for a different subnet. If the interface goes down, all those connected routes are removed. Troubleshooting misconfigured subnet masks: if an interface is configured with a /24 subnet but the actual network is /23, the connected route will only cover half the expected hosts, causing unreachability.

This is a classic exam trick in CCNA and Network+. For Azure and Google Cloud, the cloud providers enforce strict subnet assignment, so this issue is less common but still possible if you use overlapping CIDRs. Always start troubleshooting by checking interface state, then verify IP configuration, and finally inspect routing tables for the connected route.

Troubleshooting Clues

Missing connected route after interface configuration

Symptom: The interface shows up/up, but show ip route does not display the expected connected route.

The IP address might be configured on a secondary VLAN or the subnet mask is misconfigured. On some platforms, if an IP address is configured but the interface is still in admin down, the route won't appear. Verify no shutdown.

Exam clue: In CCNA labs, candidates often forget to issue the 'no shutdown' command. Exam questions present a scenario where an engineer configures IP but sees a missing route, testing that step.

Connected route disappears after cable disconnection

Symptom: After unplugging a cable, the connected route for that interface's subnet is no longer in the routing table.

Routers immediately remove connected routes when the line protocol goes down because the interface is no longer functional. This is expected behavior for interfaces with keepalives.

Exam clue: This is tested in network troubleshooting scenarios where a user reports intermittent connectivity. The correct answer is often checking physical layer connectivity.

Overlapping connected routes in different VPCs

Symptom: When peering VPCs in AWS, traffic between them fails because one VPC cannot reach the other.

Each VPC has a local connected route for its own CIDR. If the CIDRs overlap (e.g., both use 10.0.0.0/16), the local connected route always wins over the peering route, blocking traffic.

Exam clue: The AWS SAA exam often includes a question about VPC peering failing due to overlapping CIDRs. The solution is to change CIDR ranges to be non-overlapping.

Wrong subnet mask on connected route

Symptom: Some hosts in the subnet are unreachable even though the interface is up and has an IP.

If the interface is configured with a /24 mask but the actual network uses /23, the connected route will only cover /24, missing half the hosts. Traffic outside the /24 but inside /23 will be sent to the default route or dropped.

Exam clue: CCNA and Network+ exams include subnetting questions where a router has a connected route with an incorrect mask. The fix is to reconfigure the IP with the correct mask.

Connected route points to wrong interface due to misconfiguration

Symptom: Traffic to a directly connected subnet is sent out the wrong interface.

If multiple interfaces have IPs in the same subnet, the router chooses the one with the best metric or lowest interface number. This can happen if you accidentally configure overlapping subnets on two interfaces.

Exam clue: Security-plus exams test the risk of overlapping subnets causing traffic redirection. The solution is to use VLANs or separate subnets.

Connected route not being redistributed into OSPF

Symptom: Other routers do not learn directly connected networks via OSPF.

The 'redistribute connected' command must be configured under router ospf. Even then, if the interface is passive, the route may not be advertised. Also, the connected route must be present and not learned from another protocol.

Exam clue: CCNA questions often ask why a directly connected network is missing from OSPF neighbor tables. The answer may be missing redistribution or passive interface configuration.

Connected route present but traffic still fails

Symptom: The routing table shows the connected route, but ping to hosts on that subnet times out.

The interface may be up but have a switchport issue, VLAN mismatch, or the MAC address table may be corrupt. The connected route is correct, but Layer 2 connectivity is broken.

Exam clue: In Network+ and CCNA, this teaches that a connected route only guarantees Layer 3 knowledge, not Layer 2 success. The symptom of a successful route but failed ping points to switching or ARP issues.

Memory Tip

Connected = Cable plugged in. The route appears when the cable is plugged and the interface has an IP. No cable, no route.

Learn This Topic Fully

This glossary page explains what Connected route means. For a complete lesson with labs and practice, see the topic guide.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Legacy Exam Context

Older materials may mention these exam versions, but learners should use the current objectives for their target exam.

N10-008N10-009(current version)

Related Glossary Terms

Quick Knowledge Check

1.What is the administrative distance of a connected route on a Cisco router?

2.A network engineer configures IP address 10.1.1.1/24 on interface Gi0/0 but the connected route for 10.1.1.0/24 does not appear. Which command is most likely missing?

3.In AWS VPC, which route is automatically considered a connected route and has the highest priority?

4.Two VPCs are peered with CIDRs 10.0.0.0/16 and 10.0.0.0/16. Traffic between them fails. What is the most likely reason?

5.A router shows a connected route for 192.168.2.0/24 via interface Gi0/1, but hosts on that subnet are unreachable. Which issue should be investigated first?