My Blog List

Friday, January 28, 2011

Static Routing and Default Routing Configurations







 
Network Address of above  pvt network is  192.168.16.0 .  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  225.255.255.0 . There are 5 networks , so   5<2^3 . so s bytes are available for host.

192.168.16.000|00000 | 192.168.16.0                       Subnet 0  
192.168.16.001|00000 | 192.168.16.32                     Subnet 1
192.168.16.010|00000 | 192.168.16.64                     Subnet 2  
192.168.16.011|00000 | 192.168.16.96                     Subnet 3  
192.168.16.100|00000 | 192.168.16.128                   Subnet 4  
192.168.16.101|00000 | 192.168.16.160                   Subnet 5  
192.168.16.110|00000 | 192.168.16.192                   Subnet 6  
192.168.16.111|00000 | 192.168.16.224                   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 192.168.16.194 
Subnet mask 255.255.255.224
Default Gateway 192.168.16.193

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>
Router>enable
Router#config t
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.16.193 255.255.255.224
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
R1(config-if)#exit
R1(config)# 
Now configure serial port on  router with ip address 192.168.16.34 255.255.255.224  
 
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 192.168.16.34 255.255.255.224
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#
 
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 192.168.16.128 ( To R2)

R2(config)#ip route 192.168.16.128 255.255.255.224 192.168.16.33
R2(config)#

 
Now test the connectivity. Go on pc1 and 

C:\> ping 192.168.16.130 




 
 

4 comments: