This site requires JavaScript for navigation. Please enable JavaScript for the best learning experience.
 

Static Routing
Static routing is the term used to refer to a manual method that is used to set up routing between networks. The network administrator configures static routes in a router by entering routes directly into the routing table of a router. Static routing has the advantage of being predictable and simple to set up. It is easy to manage in small networks but does not scale well. Compare this with dynamic routing.

ADVANTAGES

DISADVANTAGES

STATIC ROUTE CONFIGURATION (Cisco)

Default Route

A default route is often called the 'route of last resort'. It is the last route tried by a router when all other routes fail because it has the fewest number of network bits matching and is therefore less specific. A default route is configured on a Cisco router with the following command:

CISCO 'default ip route' command:

ip route 0.0.0.0 0.0.0.0 <next hop or exit interface>

Static Null Route

A null route directs traffic to a non-existent interface called the null interface. The "Null 0" interface is often referred to as a 'bit bucket'. Network packets directed to the "Null 0" interface are discarded as soon as they are received. A null route is useful for removing packets that cannot make it out of the network or to their destination, and/or to decrease congestion created when packets with no currently reachable destination float around the network, or the destination is under a denial of service attack. During a denial of service attack, a null route can temporarily be placed on the next to last hop closest to destination which will cause that device to drop all traffic generated by the attack.

CISCO 'null route' command:

! Null route (less specific)
ip route 202.148.224.0 255.255.255.0 null0


! Preferred routes (more specific)
ip route 202.148.224.0 255.255.255.128 e1
ip route 202.148.224.128 255.255.255.128 e2

 

Preferred Route

The route which has the greatest number of network bits in the network address matching the destination address stored in the packet is the preferred route to a destination. Routers are programmed to select a preferred route based on how closely the bits in the route and packet match. This is also referred to as 'longest prefix match'.

CISCO 'preferred route' commands:

! Standard route
ip route 202.148.224.0 255.255.255.0 e0


! Preferred routes
ip route 202.148.224.0 255.255.255.128 e1
ip route 202.148.224.128 255.255.255.128 e2

Backup Routes

In cases where redundancy is needed and where more than one network connection between two network locations exists, a second route can be configured to be used when the primary network connection has failed. A backup route causes traffic to flow over a different physical path. When the first route fails, the second route over one or more less preferred path(s) will be used. By using a secondary routes the network administrator increases the redundancy and reliability of the network. Backup routes help compensate for network failures.

CISCO backup route configurations:

Scenario 1: Using more Specific Route(s)

SPECIFIC ROUTES (used unless down)
ip route 202.148.224.0 255.255.255.128 e0 ip route 202.148.224.128 255.255.255.128 e1 BACKUP ROUTES (used when one of the specifics are down) ip route 202.148.224.0 255.255.255.0 e0 ip route 202.148.224.0 255.255.255.0 e1

Scenario 2: Using Cisco's Weight mechanism

ip route 202.148.224.0 255.255.255.0 e0
ip route 202.148.224.0 255.255.255.0 e1 250 

Static Load Balancing

Using static load balancing, you can configure traffic load balancing on a per-packet basis without using a dynamic routing protocol. Most routers will perform load balancing automatically if several equal cost paths to a destination exist on multiple interfaces. To configure this using static routing, you need only create multiple static routes for more than one interface. This creates more than one equal cost path which will balance the load.

Cisco routers perform load balancing on a per-destination, per-source-destination and per-packet basis. Load can be balanced across up to six equal cost paths.

CISCO router commands:

ip route 202.148.224.0 255.255.255.0 e0
ip route 202.148.224.0 255.255.255.0 e1


-or-


ip route 202.148.224.0 255.255.255.0 199.212.18.1
ip route 202.148.224.0 255.255.255.0 199.212.18.17
ip route 202.148.224.0 255.255.255.0 199.212.18.33



Bookmark this page and SHARE:  

Search

Support InetDaemon.Com

Get Tutorials in your INBOX!

Free Training