How Gateway Router Propagates and Injects a Default Route

When a router receives a packet on one of its interfaces, it examines the destination address and searches its routing table for a matching network entry. If an entry for the destination network address exists, the router forwards the packet out of the corresponding interface toward the destination network. If there is no matching entry in the routing table, the router uses the default route to forward the packet. The default route instructs the router to send packets for unknown networks to a specified next-hop address or forward them from a defined interface. A router uses the default route only if there is no specific route for a packet in its routing table. You can add a default route for external networks without affecting your internal network routes.

LAB Setup

A lab is optional if you need only configuration steps and commands. You can skip it and head directly to the configuration section. However, if you are learning this topic for any networking certification, such as CCNA, it will help you understand this concept more easily.

Create a practice lab as shown in the following image. You can use any network simulator software or real devices for this lab. This tutorial uses Packet Tracer.

Packet tracer lab for default route configuration

Configure RIPv2 routing on all routers (A, B, and C).

Configuring RIP routing

Verify the setup by testing the connectivity between PC5 and PC1.

testing connectivity

Objective:-

Currently, this network is not connected to the Internet. Connect this network to the Internet without changing any existing routes or routing.

ISPs offer Internet connections through various options. A DSL modem is one of them. It is a combination of a router and an Ethernet switch. The router of the DSL modem connects the local network to the ISP office. The Ethernet switch on the DSL modem connects the local network to the DSL modem's router.

To simulate the DSL modem, add a new router to the workspace and connect it to Router A's Ethernet port. Assign the IP configuration shown in the following image.

Adding a DSM modem to the network

The following link provides this lab with all the configurations explained above.

Packet Tracer lab for the default gateway route with essential configuration

Configuring and injecting a default route

You connected the DSL modem (ISP router) to the Fa0/1 Ethernet port of router A. After this change, router A will act as a gateway router. To configure the default routing on this router to forward all Internet traffic from the Fa0/1 interface, run the following commands in Global configuration mode.

Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
Router(config)#router rip
Router(config-router)#default-information originate

The IP address 192.168.1.1 is assigned to the Fa0/1 interface of the ISP router, which connects directly to the Fa0/0 interface of router A. The first command establishes a default route, directing packets with unknown destinations through the Fa0/0 interface to the ISP router.

The second command enters RIP routing configuration mode.

The third command instructs the RIP routing protocol to advertise the default route to other routers in the network.

Configuring default routing

To verify that the default route is properly propagated and injected into all routers' routing tables, use the "show ip route" command in Privilege Exec mode.

The show ip route command

As shown in the output, the default route has been successfully injected into all routers' routing tables. Now, any packet not intended for the internal network will be sent to the gateway router, which will forward it from the Fa0/1 interface to the ISP router.

To verify this setup, access a website hosted at IP 150.0.0.1. Open PC5's traffic generator and set the settings as shown in the following image, and click the Send button.

Traffic generator

Once the Send button is clicked, PC5 continuously sends HTTP packets to the IP 150.0.0.1. If these packets reach the ISP router, it will verify the configuration. To view where all packets reach, click the Simulation button in the bottom-right corner of Packet Tracer. In the Simulation pane, click the Start button.

HTTP traffic testing

As shown in the output above, packets sent to an Internet host have reached the ISP router. This verifies that the PCs in the network can access the Internet through the configured default route.

To verify that existing routes are working as usual, run another test. Open PC5’s traffic generator again and click the Stop button. It will stop the ongoing testing. After that, adjust the settings as shown in the following image, then click the Send button to send the FTP packets to PC1.

FTP traffic generator setting

If the packets reach PC1, it will verify that only packets intended for an external network will be sent to the ISP router. If packets are intended for an internal device, they will not be forwarded to the ISP router.

Verifying default route configuration

The following link provides this lab with all the configurations explained above.

Packet Tracer lab with default route configuration

This tutorial is part of the tutorial series "Configure Default Routes in Cisco Router". Other parts of this series are the following.
Chapter 1  Default Routes in Cisco Routers Explained
Chapter 2  How to configure Default Routing in Cisco Routers
Chapter 3  Configure a Static Default Route in Cisco Packet Tracer
Chapter 4  How Gateway Router Propagates and Injects a Default Route

conclusion

Mastering default route configuration is essential for both networking certifications and real-world network management. This tutorial provided practical steps using Packet Tracer to reinforce these concepts. Practicing these configurations will help you troubleshoot and optimize network routing, ensuring reliable communication as your network grows in size and complexity.

ComputerNetworkingNotes CCNA Study Guide How Gateway Router Propagates and Injects a Default Route

We do not accept any kind of Guest Post. Except Guest post submission, for any other query (such as adverting opportunity, product advertisement, feedback, suggestion, error reporting and technical issue) or simply just say to hello mail us ComputerNetworkingNotes@gmail.com