What is Default Routes ? How to Configure Default Routes

By | 9th November 2015

What is Default Route?

You can configure or use default routes to direct packets addressed to destinations or networks not found or listed in the routing table. This is more workable in a stub network (networks with one exit path). To configure a default route, you will use wildcards in the network address and mask. Using default route helps to reduce the complex work of configuring all the assigned routes

When you as the network administrator create a static route to network 0.0.0.0 0.0.0.0, this is another way of setting the gateway of last resort on a router. However, ip routing must be enabled on the router, if not; it’s advisable to use the ip default gateway command:

Gateway#ip default-gateway 200.165.199.1

In the following topology and configuration command examples, helps to explains how to configure a default route, or gateway of last resort:

static routes

Use the following command to configure a default route on the gateway router:

Gateway(config)#ip route 0.0.0.0 0.0.0.0 200.165.199.1

Gateway(config)#

Verify your configuration

Gateway#show ip route

[Output omitted]

Gateway of last resort is 200.165.199.1 to network 0.0.0.0

10.0.0.0/30 is subnetted, 1 subnets

C       10.10.11.0 is directly connected, Serial0/0/0

172.16.0.0/24 is subnetted, 1 subnets

S       172.16.10.0 [1/0] via 10.10.11.2

C    192.168.30.0/24 is directly connected, FastEthernet0/0

S*   0.0.0.0/0 [1/0] via 200.165.199.1

HQ#

You can check the routing table using the show ip route command as above, you will find directed connected networks plus the S*, this shows the entry for the default route. you can also notice that the gateway of last resort is now set in the routing table as shown above.

What the default network invariably saying is to forward any packet for an unknown network out 200.165.199.1, which is the next hop router.

How to configure Static Route

RIP v2

EIGRP

OSPF

VLSM

IPv6

Leave a Reply

Your email address will not be published. Required fields are marked *