Thursday, 29 August 2013

Routing - 2


Dynamic Route (RIP)




R1#conf t
R1(config)#int f0/0
R1(config-if)#no sw
R1(config-if)#ip add 10.1.61.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int f0/1
R1(config-if)#no sw
R1(config-if)#ip add 10.1.71.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int f0/2
R1(config-if)#no sw
R1(config-if)#ip add 10.1.12.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#end
R1#conf t
R1(config)#router rip
R1(config-router)#ver
R1(config-router)#version 2
R1(config-router)#network 10.1.12.0
R1(config-router)#network 10.1.61.0
R1(config-router)#network 10.1.71.0
R1(config-router)#no auto-summary
R1(config-router)#end

R2#conf t
R2(config)#int f0/0
R2(config-if)#no sw
R2(config-if)#ip add 10.1.12.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#int f0/1
R2(config-if)#no sw
R2(config-if)#ip add 10.1.23.1 255.255.255.0
R2(config-if)#no sh
R2(config-if)#end
R2#conf t
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 10.1.12.0
R2(config-router)#network 10.1.23.0
R1(config-router)#no auto-summary 
R2(config-router)#end

R3#conf t
R3(config)#int f0/0
R3(config-if)#no sw
R3(config-if)#ip add 10.1.23.2 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int f0/1
R3(config-if)#no sw
R3(config-if)#ip add 10.1.34.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int f0/2
R3(config-if)#no sw
R3(config-if)#ip add 10.1.35.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#end
R3#conf t
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 10.1.23.0
R3(config-router)#network 10.1.34.0
R3(config-router)#network 10.1.35.0
R1(config-router)#no auto-summary 
R3(config-router)#end


R1#sh ip rout
     10.0.0.0/24 is subnetted, 6 subnets
C       10.1.12.0 is directly connected, FastEthernet0/2
R       10.1.23.0 [120/1] via 10.1.12.2, 00:00:04, FastEthernet0/2
R       10.1.35.0 [120/2] via 10.1.12.2, 00:00:04, FastEthernet0/2
R       10.1.34.0 [120/2] via 10.1.12.2, 00:00:04, FastEthernet0/2
C       10.1.61.0 is directly connected, FastEthernet0/0
C       10.1.71.0 is directly connected, FastEthernet0/1

R2#sh ip rout
10.0.0.0/24 is subnetted, 4 subnets
C       10.1.12.0 is directly connected, FastEthernet0/0
C       10.1.23.0 is directly connected, FastEthernet0/1
R       10.1.61.0 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0
R       10.1.71.0 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0

R3#sh ip rout
10.0.0.0/24 is subnetted, 6 subnets
R       10.1.12.0 [120/1] via 10.1.23.1, 00:00:02, FastEthernet0/0
C       10.1.23.0 is directly connected, FastEthernet0/0
C       10.1.35.0 is directly connected, FastEthernet0/2
C       10.1.34.0 is directly connected, FastEthernet0/1
R       10.1.61.0 [120/2] via 10.1.23.1, 00:00:02, FastEthernet0/0
R       10.1.71.0 [120/2] via 10.1.23.1, 00:00:02, FastEthernet0/0

R4#conf t
R4(config)#int f0/1
R4(config-if)#no sw
R4(config-if)#ip add 10.1.34.4 255.255.255.0
R4(config-if)#no sh
R4(config-if)#end
R4#conf t
R4(config)#router rip
R4(config-router)#version 2
R4(config-router)#network 10.1.34.0
R1(config-router)#no auto-summary 
R4(config-router)#end
R4#sh ip rout
     10.0.0.0/24 is subnetted, 6 subnets
R       10.1.12.0 [120/2] via 10.1.34.1, 00:00:13, FastEthernet0/1
R       10.1.23.0 [120/1] via 10.1.34.1, 00:00:13, FastEthernet0/1
R       10.1.35.0 [120/1] via 10.1.34.1, 00:00:13, FastEthernet0/1
C       10.1.34.0 is directly connected, FastEthernet0/1
R       10.1.61.0 [120/3] via 10.1.34.1, 00:00:13, FastEthernet0/1
R       10.1.71.0 [120/3] via 10.1.34.1, 00:00:13, FastEthernet0/1

R5#conf t
R5(config)#int f0/0
R5(config-if)#no sw
R5(config-if)#ip add 10.1.35.5 255.255.255.0
R5(config-if)#no sh
R5(config-if)#end
R5#conf t
R5(config)#router rip
R5(config-router)#version 2
R5(config-router)#network 10.1.35.0
R1(config-router)#no auto-summary 
R5(config-router)#end
R5#sh ip rout
10.0.0.0/24 is subnetted, 6 subnets
R       10.1.12.0 [120/2] via 10.1.35.1, 00:00:16, FastEthernet0/0
R       10.1.23.0 [120/1] via 10.1.35.1, 00:00:16, FastEthernet0/0
C       10.1.35.0 is directly connected, FastEthernet0/0
R       10.1.34.0 [120/1] via 10.1.35.1, 00:00:16, FastEthernet0/0
R       10.1.61.0 [120/3] via 10.1.35.1, 00:00:16, FastEthernet0/0
R       10.1.71.0 [120/3] via 10.1.35.1, 00:00:16, FastEthernet0/0

R6#conf t
R6(config)#int f0/0
R6(config-if)#no sw
R6(config-if)#ip add 10.1.61.6 255.255.255.0
R6(config-if)#no sh
R6(config-if)#end
R6#conf t
R6(config)#router rip
R6(config-router)#version 2
R6(config-router)#network 10.1.61.0
R1(config-router)#no auto-summary 
R6(config-router)#end
R6#sh ip rout
     10.0.0.0/24 is subnetted, 6 subnets
R       10.1.12.0 [120/1] via 10.1.61.1, 00:00:02, FastEthernet0/0
R       10.1.23.0 [120/2] via 10.1.61.1, 00:00:02, FastEthernet0/0
R       10.1.35.0 [120/3] via 10.1.61.1, 00:00:02, FastEthernet0/0
R       10.1.34.0 [120/3] via 10.1.61.1, 00:00:02, FastEthernet0/0
C       10.1.61.0 is directly connected, FastEthernet0/0
R       10.1.71.0 [120/1] via 10.1.61.1, 00:00:02, FastEthernet0/0

R7#conf t
R7(config)#int f0/0
R7(config-if)#no sw
R7(config-if)#ip add 10.1.71.7 255.255.255.0
R7(config-if)#no sh
R7(config-if)#end
R7#conf t
R7(config)#router rip
R7(config-router)#version 2
R7(config-router)#network 10.1.71.0
R1(config-router)#no auto-summary 
R7(config-router)#end
R7#sh ip rout
     10.0.0.0/24 is subnetted, 6 subnets
R       10.1.12.0 [120/1] via 10.1.71.1, 00:00:11, FastEthernet0/0
R       10.1.23.0 [120/2] via 10.1.71.1, 00:00:11, FastEthernet0/0
R       10.1.35.0 [120/3] via 10.1.71.1, 00:00:11, FastEthernet0/0
R       10.1.34.0 [120/3] via 10.1.71.1, 00:00:11, FastEthernet0/0
R       10.1.61.0 [120/1] via 10.1.71.1, 00:00:11, FastEthernet0/0
C       10.1.71.0 is directly connected, FastEthernet0/0