.
.

Configure RIPv1. Routing protocol on the Router

RIPv1 (Routing Information Protocol version 1)

Routers communicate with each other by using the routing protocol.
One of the routing protocol is RIPv1.
It is desirable to distinguish Routed and routing protocols.
 
Router is arranged between the state of the network, exchange information:
- about IT network, to which the routers connect
- about the network that is active
- etc.

I will try to briefly explain layman's terms Routing and Routed protocols.
Routing (RIPv1, RIPv2, IGRP, EIGRP, OSPF, IS-IS)
Two directors in some companies through its secretary knows all the information about customers and suppliers. When they need to deliver the product to a particular destination consult secretary to them that all the required parameters and the path to the destination.

Routed: (IP, IPX, Apple Talk)
To deliver the products in the company, serving the workers with their transport. It depends on how the product should be delivered, the speed of delivery, about security etc. then used a certain means of transport. When the product delivery workers need to find the closest way to your destination delivery of products for fast delivery.

In a figurative sense, without 'routing protocol' is no communication between the router and also not able to send data because router will not know where to forward the packet.

For this purpose we use routing protocols. Some of the famous routing protocols are: RIPv1, RIPv2, IGRP, EIGRP, OSPF, etc.
Routing protocols generate routing tables which store information about neighboring routers, networks, using routing protocols advertise their networks, finding the best path to a remote network according to the rules that support etc.

'Routed Protocols' are used to define packet formats traffic derfiniranje network address (network layer address). Some of Routed protocols are IP, IPX, Apple Talk

The purpose of routing protocols is to develop a routing table with which to learn all the available routes (paths) in a network, determine the best path to the destination network, remove unavailable network that was once active, the routing table is used to forward packets etc.
This "all network" do not be taken literally.

Eg. If you have a larger LAN network in a company with 4 router and one main output (boundary) router, there is no need to have to know the inner Router for the network on the Internet. It is enough to know the network within an Autonomous System (within the company) and the like and "output" router will all requests to forward it to other networks outside the Autonomous System (AS).

There are two categories (classes) routing protocol.
- Distance Vector
- Link-state vector

In to start, Important! RIPv1. does not support VLSM unlike RIPv2.
What is VLSM? see link 'Content of this Blog'

I will not describe the characteristics of each category, but I will point out that RIPv1 routing protocol. belongs to the category of distance vector routing protocols.
RIPv1. periodically sends a copy of its routing table adjacent router. It happens every 30 seconds.

Some of the features RIPv1. Routing protocols are
- Distance Vector
- Use classful IP adresing (meaning only the default network mask, you can not use VLSM!)
- Metric is 15 (max. 15 router can pass information from the source to the end Router)
- Update is every 30 sec.
- Administrative distance for RIPv1. 120

How is the configuration of the router which two of the routing protocol used RIPv1?

Firstly you need to configure the basic configuration. For details, "Basic Router Configuration" on this blog. After basic configuration both routers need to be applied, ie. Configure RIPv1. Routing protocol.

On Figure1. We have two LANs that are distant (eg two buildings) and routers have a need to communicate with each other. For communication use two Router using RIPv1. Routing protocol.

Figure 1.

IT network with two router and RIP protocol

To communicate Router is necessary that you do the basic configuration and routing protocol and it looks like this

Router Vinkovci-1

  Router>
  Router # configure terminal
  Router (config) #hostname Vinkovci-1
  Vinkovci-1 (config) #banner motd # Welcome to Router Vinkovci # 1
  Vinkovci-1 (config) #line console 0
  Vinkovci-1 (config-line) #Password cisco
  Vinkovci-1 (config-line) #login
  Vinkovci-1 (config-line) #Exit
  Vinkovci-1 (config) #line vty 0 4
  Vinkovci-1 (config-line) #Password cisco
  Vinkovci-1 (config-line) #login
  Vinkovci-1 (config-line) #Exit
  Vinkovci-1 (config) #enable password cisco
  Vinkovci-1 (config) #enable secret class
  Vinkovci-1 (config) #ip host Vinkovci 2 192.168.0.2
  Vinkovci-1 (config) #interface serial 1
  Vinkovci-1 (config-if) #ip address 192.168.0.1 255.255.255.0
  Vinkovci-1 (config-if) #clock rate 64000
  Vinkovci-1 (config-if) #No shutdown
  Vinkovci-1 (config-if) #description Serial connections to Vinkovci 2
  Vinkovci-1 (config-if) #Exit
  Vinkovci-1 (config) #interface FastEthernet 0
  Vinkovci-1 (config-if) #ip address 192.168.4.1 255.255.255.0
  Vinkovci-1 (config-if) #No shutdown
  Vinkovci-1 (config-if) #description LANs
  Vinkovci-1 (config-if) #Exit
  Vinkovci-1 (config) #Exit
  Vinkovci-1 # copy running-config startup-config


Router Vinkovci 2

  Router>
  Router> enable
  Router # configure terminal
  Router (config) #hostname Vinkovci 2
  Vinkovci-2 (config) #banner motd #Welcome to Router Vinkovci-2#
  Vinkovci-2 (config) #line console 0
  Vinkovci-2 (config-line) #Password cisco
  Vinkovci-2 (config-line) #login
  Vinkovci-2 (config-line) #Exit
  Vinkovci-2 (config) #line vty 0 4
  Vinkovci-2 (config-line) #Password cisco
  Vinkovci-2 (config-line) #login
  Vinkovci-2 (config-line) #Exit
  Vinkovci-2 (config) #enable password cisco
  Vinkovci-2 (config) #enable secret class
  Vinkovci-2 (config) #ip host Vinkovci 1 192.168.0.1
  Vinkovci-2 (config) #interface serial 0
  Vinkovci-2 (config-if) #ip address 192.168.0.2 255.255.255.0
  Vinkovci-2 (config-if) #No shutdown
  Vinkovci-2 (config-if) #description Serial connections to Vinkovci-1
  Vinkovci-2 (config-if) #Exit
  Vinkovci-2 (config) #interface FastEthernet 0
  Vinkovci-2 (config-if) #ip address 192.168.5.1 255.255.255.0
  Vinkovci-2 (config-if) #No shutdown
  Vinkovci-2 (config-if) #description LAN connection
  Vinkovci-2 (config-if) #Exit
  Vinkovci-2 (config) #Exit
  Vinkovci 2 # copy running-config startup-config


Now we set the basic configuration on both routers. That they could communicate with each other and create their routing tables need to configure a routing protocol. We will be able to configure RIPv1. routing protocol

Configure RIPv1. Routing protocols in Vinkovci-1 Router

  Vinkovci-1 # configure terminal
  Vinkovci-1 (config) #router rip
  Vinkovci-1 (config-router) #network 192.168.4.0
  Vinkovci-1 (config-router) #network 192.168.0.0
  Vinkovci-1 (config-router) #Exit
  Vinkovci-1 (config) #Exit
  Vinkovci-1 # copy running-config startup-config


Configure RIPv1. Routing protocols in Vinkovci-2 router

  Vinkovci-2 # configure terminal
  Vinkovci-2 (config) #router rip
  Vinkovci-2 (config-router) #network 192.168.5.0
  Vinkovci-2 (config-router) #network 192.168.0.0
  Vinkovci-2 (config-router) #Exit
  Vinkovci-2 (config) #Exit
  Vinkovci 2 # copy running-config startup-config


Now the settings on the router look like this:

Configuration of Router Vinkovci-1
Vinkovci-1 # show running-config
  Building configuration ...
  Current configuration: 791 bytes
  version 3.12
  no service password-encryption
  !
  hostname Vinkovci-1
  !
  enable secret $ 5 $ 1 $ IQaq bGTw / WCuwRcGHIbtEgLUn /
  Enable password cisco
  !
  ip host Vinkovci 2 192.168.0.2
  !
  Fast Ethernet interface 0
  description LANs
  ip address 192.168.4.1 255.255.255.0
   duplex auto
   speed auto
  !
  Fast Ethernet interface 1
   no ip address
   duplex auto
   speed auto
   shutdown
  !
  Interface Serial 0
   no ip address
   shutdown
  !
  Serial interface 1
  description Serial connections to Vinkovci 2
  ip address 192.168.0.1 255.255.255.0
  clock rate 64000
  !
  interface VLAN1
   no ip address
   shutdown
  !
  router rip
  network 192.168.0.0
  network 192.168.4.0
  !
  ip classless
  !
  banner motd ^CWelcome to Router Vinkovci-1^C
  line con 0
  password cisco
   login
  line vty 0 4
  password cisco
   login
  !
  end
Configuration of Router Vinkovci-2
Vinkovci-2#sh running-config
 Building configuration...
 Current configuration : 728 bytes
 !
 version 12.3
 no service password-encryption
 !
 hostname Vinkovci-2
 !
 enable secret 5 $1$PTSg$LGK2qNdKfMpkX.U1NzMw11
 enable password cisco
 !
 ip host Vinkovci-1 192.168.0.1
 !
 interface FastEthernet 0
 description LAN konekcija
 ip address 192.168.5.1 255.255.255.0
  duplex auto
  speed auto
 !
 interface FastEthernet 1
  no ip address
  duplex auto
  speed auto
  shutdown
 !
 interface Serial 0
 description Serial konekcija prema Vinkovci-1
 ip address 192.168.0.2 255.255.255.0
 !
 interface Vlan1
  no ip address
  shutdown
 !
 router rip
 network 192.168.0.0
 network 192.168.5.0
 !
 ip classless
 !
 banner motd ^CWelcome to Router Vinkovci-2^C
 line con 0
 password cisco
  login
 line vty 0 4
 password cisco
  login
 !
 end
So we configure RIPv1. Routing Protocol Router on two connected serial connection, connect the two networks. Importantly, RIPv1. works with Classfull network masks.
How much interest you details see the link http://www.cisco.com

RIPv2. Routing protocol supports VLSM

To configure a routing protocol RIPv2 is necessary to add the command

Router (config) #router rip
Router (config-router) # Version2
Router (config) #Exit


If you want to undo a command you need to add the word "no" in front of the previously written commands.
For example.
Command: network 192.168.0.0
Annulment: no network 192.168.0.0


There are various views (output-s) by which we can review the configuration of the router or the individual parameters on the interface's. For this purpose it is necessary to issue commands to individual outputs

For example. Presentation of some output and characteristics of the router Vinkovci-1
Vinkovci-1 # show ip route
  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
         D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
         N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
         E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
         and - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
         * - Candidate default, U - per-user static route o - ODR
         P - periodic downloaded static route

  Gateway of last resort is not set

  C 192.168.0.0/24 is directly connected, Serial 1
  C 192.168.4.0/24 is directly connected, Fast Ethernet 0
  R 192.168.5.0/24 [120/1] via 192.168.0.2, 00:00:17, Serial 1 // IT network learned from the RIP routing protocol
-----------------------------------
Vinkovci-1#show ip protocols
 Routing Protocol is "rip"
 Sending updates every 30 seconds, next due in 13 seconds
 Invalid after 180 seconds, hold down 180, flushed after 240
 Outgoing update filter list for all interfaces is not set
 Incoming update filter list for all interfaces is not set
 Redistributing: rip
 Default version control: send version 1, receive any version
   Interface             Send  Recv  Triggered RIP  Key-chain
   FastEthernet 0       1     2 1   
   Serial 1           1     2 1   
 Automatic network summarization is in effect
 Maximum path: 4
 Routing for Networks:
    192.168.0.0
    192.168.4.0
 Passive Interface(s):
 Routing Information Sources:
    Gateway         Distance      Last Update
    192.168.0.2          120      00:00:06
 Distance: (default is 120)
Furthermore, some of the commands to check are:

  - Show ip rip database
  - Display summary address entries in the RIP routing database.
  - Show ip protocols {summary}
  - Show ip route
  - Debug ip rip {events}
  - Show ip interface brief

I hope you understand how to configure RIPv1. routing protocol
Source: Cisco Academy, Internet