Sunday, 10 March 2013

Routing

Routing

It is a method for communication between two or more different network using a routing table.

In routing, Routers select best path before transmission of data.

This best path is collected into a table .i.e. known as routing table.

Types of Routing

a) Static Routing

In this routing, routers are defined manually.

It is mostly done at terminal router in a large network and complete configuration is done in a small network.

In each path, we have to specify:-

#ip route <Network IP> <Subnet Mask> <Next Hop Router Address>

for example:

#ip route 192.168.0.0 255.255.255.0 11.0.0.2
------------------------------------------------------------------------------------------------------------

If we want to established communication between 2 Routers with 2 different networks then we need to connect both routers with Serial port and cable.

After that we should to configure both routers with some following commands:-

First we have to configure Router1:-

Router1>en

Router1#conf t

Router1(config)#int fa0/0

Router1(config-if)#ip add 10.0.0.1 255.0.0.0

Router1(config-if)#no shut

Router1(config-if)#int s0/0/0

Router1(config-if)#ip add 11.0.0.1 255.0.0.0

Router1(config-if)#clock rate 64000

Router1(config-if)#no shut

Router1(config-if)#ip route 192.168.0.0 255.255.255.0 11.0.0.2

Router1(config-if)#^z







After that we need to configure Router2:-

Router2>en

Router2#conf t

Router2(config)#int fa0/0

Router2(config-if)#ip add 192.168.0.1 255.255.255.0

Router2(config-if)#no shut

Router2(config-if)#int s0/0/0

Router2(config-if)#ip add 11.0.0.2 255.0.0.0

Router2(config-if)#no shut

Router2(config-if)#ip route 10.0.0.0 255.0.0.0 11.0.0.1

Router2(config-if)#^z

------------------------------------------------------------------------------------------------------------

Static Default Routing


A default route with all 0s for network IP & subnet mask is used.

It can only be done at terminal router means which has only 1 exit point to communicate with another networks.

for example:-


Router1>en

Router1#conf t

Router1(config)#int fa0/0

Router1(config-if)#ip add 10.0.0.1 255.0.0.0

Router1(config-if)#no shut

Router1(config-if)#int s0/0/0

Router1(config-if)#ip add 11.0.0.1 255.0.0.0

Router1(config-if)#clock rate 64000

Router1(config-if)#no shut

Router1(config-if)#ip route 0.0.0.0 0.0.0.0 11.0.0.2

Router1(config-if)#^z



and on Router2



Router2>en

Router2#conf t

Router2(config)#int fa0/0

Router2(config-if)#ip add 192.168.0.1 255.255.255.0

Router2(config-if)#no shut

Router2(config-if)#int s0/0/0

Router2(config-if)#ip add 11.0.0.2 255.0.0.0

Router2(config-if)#no shut

Router2(config-if)#ip route 0.0.0.0 0.0.0.0 11.0.0.1

Router2(config-if)#^z
-----------------------------------------------------------------

Dynamic Routing

A routing which is done with the help of routing protocols is known as dynamic routing. Here these routing protocols are responsible for creation, deletion and updating routing table. It is east tot configure and manage. 

Types of Dynamic Routing Protocol

IGP (Interior Gateway Protocol):- It provides communication into single autonomous system. 
Example- RIP, EIGRP, OSPF

EGP (Exterior Gateway Protocol):- It provides communication between different autonomous systems.                                      
Example- BGP.

No comments:

Post a Comment