Open In App

How to Configure Default Routing on Cisco Routers?

Last Updated : 30 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The main concept of configuring default routes is that it has the ability to handle packets transferred to networks not located in the routing table. Default Routes are configured mostly in Stub Network.

Stub Network: 

It is a network containing only one exit interface or only one way to reach the destination. When we configure default routes, it requires these packets to another router that has the path to the destination.

CLI command:
R-1(config)#ip route (any destination) 
(any subnet mask) (next hop IP address)
R-1(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2

Step 1: First, create a network topology of these given devices listed below in the table:

S.NO Device Model name Quantity
1. PC PC 3
2. switch PT-Switch 3
3. router PT-router 3

 

Step 2: Configuring Hosts (PCs) with IP addresses and Default Gateway using IP Addressing table given below:

S.NO Device IPv4 Address Subnet mask Default gateway
1. pc0 192.168.1.2 255.255.255.0 192.168.1.1
2. pc1 192.168.2.2 255.255.255.0 192.168.2.1
3. pc2 192.168.3.2 255.255.255.0 192.168.3.1

Step 3:  Configure PCs follow these steps:

  • Click on PC0 then go to desktop.
  • Click on IP configuration.
  • Then on the static route, fill up the IP configuration according to the IP addressing table given above.
  • Repeat the same procedure with other PCs to configure them.

Step 4: Configuring the Interfaces (routers) with IP Addresses and Default gateways and assigning the default routes.

Router0 Configuration:

  • Click on router0 then, Go to CLI commands and enter commands to configure them given below.
  • Now we will add the IP address of the serial se2/0 and its subnet mask.
  • In this step, we will add the IP address of the interface FastEthernet port fa0/0 and its subnet mask.
  • Then we need to add Default Routes to configure the router:
R-1(config)#ip route (any destination~reserved) 
(any subnet mask~reserved) (next hop IP address)

 

  • Add the IP address of the next hope to connect with another LAN.

Router1 Configuration:

  • Click on the router1 then, Go to CLI commands, and enter commands to configure them given below.
  • Now, we will add the IP address of the serial se2/0 and its subnet mask.
  • Second, we will add the IP address of the interface FastEthernet port fa0/0 and its subnet mask.
  • Then we need to add Default Routes to configure the router:
R-1(config)#ip route (any destination~reserved)
(any subnet mask~reserved) (next-hop IP address)

 

  • Add the IP address of the next hope to connect with another LAN.

Router2 Configuration:

  • Click on the router2 then, Go to CLI commands, and enter commands to configure them given below.
  • Now, we will add the IP address of the serial se2/0 and its subnet mask.
  • Second, we will add the IP address of the interface FastEthernet port fa0/0 and its subnet mask.
  • Then we need to add Default Routes to configure the router:
R-1(config)#ip route (any destination~reserved)
(any subnet mask~reserved) (next-hop IP address)

 

Step 4: After configuring all the devices red indicator turns into green and the network is live so we can send and receive packets.

To verify the network we’ll verify the network by pinging the IP address of the target node in any Host.

  • Click on PC0 then, Go to the desktop.
  • Click on Command Prompt, and type this command “ping 192.168.2.3”.
  • In the below image we can see that we getting replies from a targeted node which means the connection is established successfully.

 

The below representation shows exactly how the packets are moving from the source node to the destination node.

  • The PDU packet started moving from PC0 to PC3 and then came backward green tick shows that we are getting replies successfully.

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads