Default Routes

This page will describe default routes and explain how they are configured.

By default, routers learn paths to destinations three different ways:

Static routes – The system administrator manually defines the static routes as the next hop to a destination. Static routes are useful for security and traffic reduction, as no other route is known.

Default routes – The system administrator also manually defines default routes as the path to take when there is no known route to the destination. Default routes keep routing tables shorter. When an entry for a destination network does not exist in a routing table, the packet is sent to the default network.

Dynamic routes – Dynamic routing means that the router learns of paths to destinations by receiving periodic updates from other routers.

In Figure
, the static route is indicated by the following command:

Router(config)#ip route

The ip default-network command establishes a default route in networks using dynamic routing protocols:

Router(config)#ip default-network

Generally after the routing table has been set to handle all the networks that must be configured, it is often useful to ensure that all other packets go to a specific location. This is called the default route for the router. One example is a router that connects to the Internet. All the packets that are not defined in the routing table will go to the nominated interface of the default router.

The ip default-network command is usually configured on the routers that connect to a router with a static default route. 

In Figure
, Hong Kong 2 and Hong Kong 3 would use Hong Kong 4 as the default gateway. Hong Kong 4 would use interface as its default gateway. Hong Kong 1 would route packets to the Internet for all internal hosts. To allow Hong Kong 1 to route these packets it is necessary to configure a default route as:

HongKong1(config)#ip route s0/0

The zeros in the IP address and mask portions of the command represent any destination network with any mask. Default routes are referred to as quad zero routes. In the diagram, the only way Hong Kong 1 can go to the Internet is through interface s0/0.

Leave a Reply

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

Related Post

What Is ROM

Introduction to routers in a WAN NVRAM has the following characteristics and functions: Provides storage for the startup configuration file Retains content when a router is powered down or restarted Flash memory has the following characteristics and functions: Holds the IOS image Allows software to be updated without removing and

How Many Hosts

How many hosts per subnet       This will show you how to work out how many hosts per subnet on a class C network Let’s say you have been given the subnet mask of The first thing we need to do is change our mask to binary. If you do

Decimal To Binary Converter

You can convert decimal to binary with some basic software I created. All you need to do is type in the decimal number you want converted and press the convert button. This software is good for people who are learning about computer networks ie IP addressing. It is good because