My Blog List

Friday, January 28, 2011

Static Routing and Default Routing Configurations

Network Address of above  pvt network is .  now we have to assign IP address for each and every network .First  we  have to identify  “How many networks are there ?? “  . As you can see on the above picture there are 5 networks. After identify the  networks,  now you can   find subnet marks and IP address for each and every  network devices.

Given network address is in class C . so the subnet address should be . There are 5 networks , so   5<2^3 . so s bytes are available for host.|00000 |                       Subnet 0|00000 |                     Subnet 1|00000 |                     Subnet 2|00000 |                     Subnet 3|00000 |                   Subnet 4|00000 |                   Subnet 5|00000 |                   Subnet 6|00000 |                   Subnet 7  

now assign IP address for each and every devices !!

  Now configure PC-1 first.To configure pc double click on pc and select desktop

IP address 
Subnet mask
Default Gateway

Now double click on 1841 Router 1 and select CLI 
--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: no

Press RETURN to get started!
Router#config t
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Now configure serial port on  router with ip address  
R1(config)#interface serial 0/0/0
R1(config-if)#ip address
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
Configure Router-2 and Router-3 in same way .
After configure all device you have to ping and checked whether all packets are delivered correctly. 
Command syntax for static route:
ip route  -  The command used to create the static route.
destination_network  - The network you're placing in the routing table.
mask - The subnet mask being used on the network.
next-hop_address-  The address of the next-hop router that will receive the packet and forward it to the remote network.

ip route [destination_network] [mask] [next-hop_address or exit_interface]
Now tell R1 about to network of ( To R2)

R2(config)#ip route

Now test the connectivity. Go on pc1 and 

C:\> ping