Routing Information Protocol (RIP)
Routing Information Protocol (RIP) is used to perform routing over the network. RIP performs routing over the limited number of hop count which is 15. This means that RIP can exchange its routing table information from First router to 15th router. On 16th router the information of First router routing table can't be shared and that will become unreachable.
There are three versions of RIP
- Version 1 Only supports Class Full IP address of IPv4 which means it can not support Subnetted IP Addresses.
- Version 2 supports both Non-Subnetted and Subnetted IP Address of IPv4.
- Version 3 supports both IPv4 and IPv6 IP Address
Advantages of RIP
Disadvantages of RIP
- RIP works only upto 15 Hopcounts
- RIP does not have concept of neighbors
- RIP changes its entire table with all the devices connected to the network after every 30 seconds
Configurations
Test Router 1
Router>enable
Router#configure terminal
Router(config)#hostname TestRouter1
TestRouter1(config)#enable password cisco (Plain Text Password)
TestRouter1(config)#enable secret class (Enycrypted Password)
TestRouter1(config)#username TestRouter secret csico
TestRouter1(config)#ip domain-name cisco.com
TestRouter1(config)#crypto key generate rsa
(Set key between 360 - 2048)
TestRouter1(config)#line console 0
TestRouter1(config-line)#password cisco
TestRouter1(config-line)#login
TestRouter1(config-line)#exit
TestRouter1(config)#line vty 0 4
TestRouter1(config-line)#transport input ssh
TestRouter1(config-line)#login local
TestRouter1(config-line)#exit
TestRouter1(config)#interface gigabitEthernet 0/0
TestRouter1(config-if)#ip address 192.168.1.1 255.255.255.0
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#interface gigabitEthernet 0/1
TestRouter1(config-if)#ip address 192.168.2.1 255.255.255.0
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#interface serial 0/0/0
TestRouter1(config-if)#ip address 172.16.1.1 255.255.255.252
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#router rip
TestRouter1(config-router)#version 2
TestRouter1(config-router)#network 192.168.1.0
TestRouter1(config-router)#network 192.168.2.0
TestRouter1(config-router)#network 172.16.1.0
TestRouter1(config-router)#exit
TestRouter1(config)#exit
TestRouter1#copy running-config startup-config
Router>enable
Router#configure terminal
Router(config)#hostname TestRouter1
TestRouter1(config)#enable password cisco (Plain Text Password)
TestRouter1(config)#enable secret class (Enycrypted Password)
TestRouter1(config)#username TestRouter secret csico
TestRouter1(config)#ip domain-name cisco.com
TestRouter1(config)#crypto key generate rsa
(Set key between 360 - 2048)
TestRouter1(config)#line console 0
TestRouter1(config-line)#password cisco
TestRouter1(config-line)#login
TestRouter1(config-line)#exit
TestRouter1(config)#line vty 0 4
TestRouter1(config-line)#transport input ssh
TestRouter1(config-line)#login local
TestRouter1(config-line)#exit
TestRouter1(config)#interface gigabitEthernet 0/0
TestRouter1(config-if)#ip address 192.168.1.1 255.255.255.0
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#interface gigabitEthernet 0/1
TestRouter1(config-if)#ip address 192.168.2.1 255.255.255.0
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#interface serial 0/0/0
TestRouter1(config-if)#ip address 172.16.1.1 255.255.255.252
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#router rip
TestRouter1(config-router)#version 2
TestRouter1(config-router)#network 192.168.1.0
TestRouter1(config-router)#network 192.168.2.0
TestRouter1(config-router)#network 172.16.1.0
TestRouter1(config-router)#exit
TestRouter1(config)#exit
TestRouter1#copy running-config startup-config
Router#configure terminal
Router(config)#hostname TestRouter1
TestRouter1(config)#enable password cisco (Plain Text Password)
TestRouter1(config)#enable secret class (Enycrypted Password)
TestRouter1(config)#username TestRouter secret csico
TestRouter1(config)#ip domain-name cisco.com
TestRouter1(config)#crypto key generate rsa
(Set key between 360 - 2048)
TestRouter1(config)#line console 0
TestRouter1(config-line)#password cisco
TestRouter1(config-line)#login
TestRouter1(config-line)#exit
TestRouter1(config)#line vty 0 4
TestRouter1(config-line)#transport input ssh
TestRouter1(config-line)#login local
TestRouter1(config-line)#exit
TestRouter1(config)#interface gigabitEthernet 0/0
TestRouter1(config-if)#ip address 192.168.1.1 255.255.255.0
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#interface gigabitEthernet 0/1
TestRouter1(config-if)#ip address 192.168.2.1 255.255.255.0
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#interface serial 0/0/0
TestRouter1(config-if)#ip address 172.16.1.1 255.255.255.252
TestRouter1(config-if)#no shutdown
TestRouter1(config-if)#exit
TestRouter1(config)#router rip
TestRouter1(config-router)#version 2
TestRouter1(config-router)#network 192.168.1.0
TestRouter1(config-router)#network 192.168.2.0
TestRouter1(config-router)#network 172.16.1.0
TestRouter1(config-router)#exit
TestRouter1(config)#exit
TestRouter1#copy running-config startup-config
Test Router 2
Router>enable
Router#configure terminal
Router(config)#hostname TestRouter2
TestRouter2(config)#enable password cisco (Plain Text Password)
TestRouter2(config)#enable secret class (Enycrypted Password)
TestRouter2(config)#username TestRouter secret csico
TestRouter2(config)#ip domain-name cisco.com
TestRouter2(config)#crypto key generate rsa
(Set key between 360 - 2048)
TestRouter2(config)#line console 0
TestRouter2(config-line)#password cisco
TestRouter2(config-line)#login
TestRouter2(config-line)#exit
TestRouter2(config)#line vty 0 4
TestRouter2(config-line)#transport input ssh
TestRouter2(config-line)#login local
TestRouter2(config-line)#exit
TestRouter2(config)#interface gigabitEthernet 0/0
TestRouter2(config-if)#ip address 192.168.3.1 255.255.255.0
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#interface gigabitEthernet 0/1
TestRouter2(config-if)#ip address 192.168.4.1 255.255.255.0
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#interface serial 0/0/0
TestRouter2(config-if)#ip address 172.16.1.2 255.255.255.252
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#router rip
TestRouter2(config-router)#version 2
TestRouter2(config-router)#network 192.168.3.0
TestRouter2(config-router)#network 192.168.4.0
TestRouter2(config-router)#network 172.16.1.0
TestRouter2(config-router)#exit
TestRouter2(config)#exit
TestRouter2#copy running-config startup-config
Router>enable
Router#configure terminal
Router(config)#hostname TestRouter2
TestRouter2(config)#enable password cisco (Plain Text Password)
TestRouter2(config)#enable secret class (Enycrypted Password)
TestRouter2(config)#username TestRouter secret csico
TestRouter2(config)#ip domain-name cisco.com
TestRouter2(config)#crypto key generate rsa
(Set key between 360 - 2048)
TestRouter2(config)#line console 0
TestRouter2(config-line)#password cisco
TestRouter2(config-line)#login
TestRouter2(config-line)#exit
TestRouter2(config)#line vty 0 4
TestRouter2(config-line)#transport input ssh
TestRouter2(config-line)#login local
TestRouter2(config-line)#exit
TestRouter2(config)#interface gigabitEthernet 0/0
TestRouter2(config-if)#ip address 192.168.3.1 255.255.255.0
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#interface gigabitEthernet 0/1
TestRouter2(config-if)#ip address 192.168.4.1 255.255.255.0
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#interface serial 0/0/0
TestRouter2(config-if)#ip address 172.16.1.2 255.255.255.252
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#router rip
TestRouter2(config-router)#version 2
TestRouter2(config-router)#network 192.168.3.0
TestRouter2(config-router)#network 192.168.4.0
TestRouter2(config-router)#network 172.16.1.0
TestRouter2(config-router)#exit
TestRouter2(config)#exit
TestRouter2#copy running-config startup-config
Router#configure terminal
Router(config)#hostname TestRouter2
TestRouter2(config)#enable password cisco (Plain Text Password)
TestRouter2(config)#enable secret class (Enycrypted Password)
TestRouter2(config)#username TestRouter secret csico
TestRouter2(config)#ip domain-name cisco.com
TestRouter2(config)#crypto key generate rsa
(Set key between 360 - 2048)
TestRouter2(config)#line console 0
TestRouter2(config-line)#password cisco
TestRouter2(config-line)#login
TestRouter2(config-line)#exit
TestRouter2(config)#line vty 0 4
TestRouter2(config-line)#transport input ssh
TestRouter2(config-line)#login local
TestRouter2(config-line)#exit
TestRouter2(config)#interface gigabitEthernet 0/0
TestRouter2(config-if)#ip address 192.168.3.1 255.255.255.0
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#interface gigabitEthernet 0/1
TestRouter2(config-if)#ip address 192.168.4.1 255.255.255.0
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#interface serial 0/0/0
TestRouter2(config-if)#ip address 172.16.1.2 255.255.255.252
TestRouter2(config-if)#no shutdown
TestRouter2(config-if)#exit
TestRouter2(config)#router rip
TestRouter2(config-router)#version 2
TestRouter2(config-router)#network 192.168.3.0
TestRouter2(config-router)#network 192.168.4.0
TestRouter2(config-router)#network 172.16.1.0
TestRouter2(config-router)#exit
TestRouter2(config)#exit
TestRouter2#copy running-config startup-config
Test Switch 1
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch1
TestSwitch1(config)#enable password cisco (Plain Text Password)
TestSwitch1(config)#enable secret class (Enycrpted Password)
TestSwitch1(config)#line console 0
TestSwitch1(config-line)#password cisco
TestSwitch1(config-line)#login
TestSwitch1(config-line)#exit
TestSwitch1(config)#line vty 0 15
TestSwitch1(config-line)#password cisco
TestSwitch1(config-line)#login
TestSwitch1(config-line)#exit
TestSwitch1(config)#exit
TestSwitch1#copy running-config startup-config
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch1
TestSwitch1(config)#enable password cisco (Plain Text Password)
TestSwitch1(config)#enable secret class (Enycrpted Password)
TestSwitch1(config)#line console 0
TestSwitch1(config-line)#password cisco
TestSwitch1(config-line)#login
TestSwitch1(config-line)#exit
TestSwitch1(config)#line vty 0 15
TestSwitch1(config-line)#password cisco
TestSwitch1(config-line)#login
TestSwitch1(config-line)#exit
TestSwitch1(config)#exit
TestSwitch1#copy running-config startup-config
Test Switch 2
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch2
TestSwitch2(config)#enable password cisco (Plain Text Password)
TestSwitch2(config)#enable secret class (Enycrpted Password)
TestSwitch2(config)#line console 0
TestSwitch2(config-line)#password cisco
TestSwitch2(config-line)#login
TestSwitch2(config-line)#exit
TestSwitch2(config)#line vty 0 15
TestSwitch2(config-line)#password cisco
TestSwitch2(config-line)#login
TestSwitch2(config-line)#exit
TestSwitch2(config)#exit
TestSwitch2#copy running-config startup-config
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch2
TestSwitch2(config)#enable password cisco (Plain Text Password)
TestSwitch2(config)#enable secret class (Enycrpted Password)
TestSwitch2(config)#line console 0
TestSwitch2(config-line)#password cisco
TestSwitch2(config-line)#login
TestSwitch2(config-line)#exit
TestSwitch2(config)#line vty 0 15
TestSwitch2(config-line)#password cisco
TestSwitch2(config-line)#login
TestSwitch2(config-line)#exit
TestSwitch2(config)#exit
TestSwitch2#copy running-config startup-config
Test Switch 3
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch3
TestSwitch3(config)#enable password cisco (Plain Text Password)
TestSwitch3(config)#enable secret class (Enycrpted Password)
TestSwitch3(config)#line console 0
TestSwitch3(config-line)#password cisco
TestSwitch3(config-line)#login
TestSwitch3(config-line)#exit
TestSwitch3(config)#line vty 0 15
TestSwitch3(config-line)#password cisco
TestSwitch3(config-line)#login
TestSwitch3(config-line)#exit
TestSwitch3(config)#exit
TestSwitch3#copy running-config startup-config
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch3
TestSwitch3(config)#enable password cisco (Plain Text Password)
TestSwitch3(config)#enable secret class (Enycrpted Password)
TestSwitch3(config)#line console 0
TestSwitch3(config-line)#password cisco
TestSwitch3(config-line)#login
TestSwitch3(config-line)#exit
TestSwitch3(config)#line vty 0 15
TestSwitch3(config-line)#password cisco
TestSwitch3(config-line)#login
TestSwitch3(config-line)#exit
TestSwitch3(config)#exit
TestSwitch3#copy running-config startup-config
Test Switch 4
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch4
TestSwitch4(config)#enable password cisco (Plain Text Password)
TestSwitch4(config)#enable secret class (Enycrpted Password)
TestSwitch4(config)#line console 0
TestSwitch4(config-line)#password cisco
TestSwitch4(config-line)#login
TestSwitch4(config-line)#exit
TestSwitch4(config)#line vty 0 15
TestSwitch4(config-line)#password cisco
TestSwitch4(config-line)#login
TestSwitch4(config-line)#exit
TestSwitch4(config)#exit
Switch>enable
Switch#configure terminal
Switch(config)#hostname TestSwitch4
TestSwitch4(config)#enable password cisco (Plain Text Password)
TestSwitch4(config)#enable secret class (Enycrpted Password)
TestSwitch4(config)#line console 0
TestSwitch4(config-line)#password cisco
TestSwitch4(config-line)#login
TestSwitch4(config-line)#exit
TestSwitch4(config)#line vty 0 15
TestSwitch4(config-line)#password cisco
TestSwitch4(config-line)#login
TestSwitch4(config-line)#exit
TestSwitch4(config)#exit
No comments:
Post a Comment