Senin, 18 Juli 2011

How To Set 3 Cisco Routers With IP Route Command

We will learn how to set 3 cisco router with ip-route comamnd
Look at this topologies :


PC0 : IP = 192.168.1.1, gateway = 192.168.1.10 /24
PC1 :IP = 192.168.1.2, gateway = 192.168.1.10 /24
PC2 :IP = 192.168.2.1, gateway = 192.168.2.10 /24
PC3 :IP = 192.168.2.2, gateway = 192.168.2.10 /24
PC4 :IP = 192.168.3.1, gateway = 192.168.3.10 /24
PC5 :IP = 192.168.3.2, gateway = 192.168.3.10 /24
PC6 :IP = 192.168.4.1, gateway = 192.168.4.10 /24
PC7 :IP = 192.168.4.2, gateway = 192.168.4.10 /24
PC8 :IP = 192.168.5.1, gateway = 192.168.5.10 /24
PC9 :IP = 192.168.5.2, gateway = 192.168.5.10 /24
PC10 :IP = 192.168.6.1, gateway = 192.168.6.10 /24
PC11 :IP = 192.168.6.2, gateway = 192.168.6.10 /24
Router0 to router1 : IP = 192.168.7.1 /24 (for router0 ) and 192.168.7.2 /24 (for router1 )
Router1 to router2 : IP = 192.168.8.1 /24 (for router1 ) and 192.168.8.2 /24 (for router2 )

Here standart configuration for Router0 :
   Enable
   Conf t
   Host one
   Int fa 0/0
   Ip add 192.168.1.10 255.255.255.0
   No shut
   Exit
   Int fa 1/0
   Ip add 192.168.2.10 255.255.255.0
   No shut
   Exit
   Int s 2/0
   Ip add 192.168.7.1 255.255.255.0
   Clock rate  56000
   No shut
   Exit
   Exit
   Copy run start


Here standart configuration for Router1 :
   Enable
   Conf t
   Host two
   Int fa 0/0
   Ip add 192.168.3.10 255.255.255.0
   No shut
   Exit
   Int fa 1/0
   Ip add 192.168.4.10 255.255.255.0
   No shut
   Exit
   Int s 2/0
   Ip add 192.168.7.2 255.255.255.0
   Clock rate  56000
   No shut
   Exit
   Int s 3/0
   Ip add 192.168.8.1 255.255.255.0
   Clock rate 56000
   No shut
   Exit
   Exit
   Copy run start

Here standart configuration for Router2 :
   Enable
   Conf t
   Host three
   Int fa 0/0
   Ip add 192.168.5.10 255.255.255.0
   No shut
   Exit
   Int fa 1/0
   Ip add 192.168.6.10 255.255.255.0
   No shut
   Exit
   Int s 2/0
   Ip add 192.168.8.2 255.255.255.0
   Clock rate 56000
   No shut
   Exit
   Exit
   Copy run start


Now, we will use “IP ROUTE” command to make routing for routers.

We can use this common syntax : 
IP ROUTE   DESTINATION_NETWORK_ADDRESS    SUBNET_MASK   Through-IP

Router 0 : ( use IP Route command to go to network 192.168.3.0, 192.168.4.0, 192.168.5.0, and 192.168.6.0, NB: network 192.168.1.0 and 192.168.2.0 doesn’t need IP ROUTE command because it’s under Router0 network )
Here the command :
   Enable
   Conf t
   Ip route 192.168.3.0 255.255.255.0 192.168.7.2
   Ip route 192.168.4.0 255.255.255.0 192.168.7.2
   Ip route 192.168.5.0 255.255.255.0 192.168.7.2
   Ip route 192.168.6.0 255.255.255.0 192.168.7.2
   Exit
   Copy run start

Router 1 : ( use IP Route command to go to network 192.168.1.0, 192.168.2.0, 192.168.5.0, and 192.168.6.0, NB: network 192.168.3.0 and 192.168.4.0 doesn’t need IP ROUTE command because it’s under Router1 network )
Here the command :
   Enable
   Conf t
   Ip route 192.168.1.0 255.255.255.0 192.168.7.1
   Ip route 192.168.2.0 255.255.255.0 192.168.7.1
   Ip route 192.168.5.0 255.255.255.0 192.168.8.2
   Ip route 192.168.6.0 255.255.255.0 192.168.8.2
   Exit
   Copy run  start

Router 2 : ( use IP Route command to go to network 192.168.1.0, 192.168.2.0, 192.168.3.0, and 192.168.4.0, NB: network 192.168.5.0 and 192.168.6.0 doesn’t need IP ROUTE command because it’s under Router2 network )
Here the command :
   Enable
   Conf t
   Ip route 192.168.1.0 255.255.255.0 192.168.8.1
   Ip route 192.168.2.0 255.255.255.0 192.168.8.1
   Ip route 192.168.3.0 255.255.255.0 192.168.8.1
   Ip route 192.168.4.0 255.255.255.0 192.168.8.1
   Exit
   Copy run start


Hope this tutorial usefull.

Tidak ada komentar:

Posting Komentar