RIP Protocol Using Cisco Packet Tracer
RIP Protocol Using Cisco Packet Tracer
Exp No: 04
Exp. Name: Interconnecting Two LAN using CISCO 2960 Switch and CISCO Router Using RIP
Protocol
Objective: To interconnect Two LAN using CISCO 2960 Switch and CISCO Router Using RIP
Protocol
_______
Principle: For LAN to LAN transmission we have to use switch and router. Router has
separate broadcast and collision domain and it also can control direction.
The Routing Information Protocol (RIP) is one of a family of IP Routing protocols, and is an
Interior Gateway Protocol (IGP) designed to distribute routing information within an
Autonomous System (AS).
RIP is a simple vector routing protocol with many existing implementations in the field. In a
vector routing protocol, the routers exchange network reach ability information with their
nearest neighbors. In other words, the routers communicate to each other the sets of
destinations ("address prefixes") that they can reach, and the next hop address to which
data should be sent in order to reach those destinations.
• Each router initializes its routing table with a list of locally connected networks.
• Periodically, each router advertises the entire contents of its routing table over all of
its RIP-enabled interfaces.
o Whenever a RIP router receives such an advertisement, it puts all of the
appropriate routes into its routing table and begins using it to forward
packets. This process ensures that every network connected to every router
eventually becomes known to all routers.
o If a router does not continue to receive advertisements for a remote route, it
eventually times out that route and stops forwarding packets over it.
Features of RIP:
1. Updates of the network are exchanged periodically.
2. Updates (routing information) are always broadcast.
3. Full routing tables are sent in updates.
4. Routers always trust on routing information received from neighbor routers. This
is also known as routing on rumours.
RIP versions:
There are three vesions of routing information protocol – RIP Version1, RIP
Version2 and RIPng.
Procedure: ‐
1. Select CISCO switch from network device selection pane.
2. Also select router and end devices from device selection pane.
3. Connect switch 0 and PC 0 using straight copper cable, as they are different layer device.
4. All other end device should be connected accordingly.
5. Connect switch 0 and router 1 and switch 1 and router 2 using straight cable and router to
router using serial DTE cable.
6. Assign IP address for each end devices as shown in above figure.
7. 192.168.1.0 is the network address of network1 and 192.168.2.0 is the network address
of network2.
8. No requirements of assignment of IP of switch because it is a layer 2 device.
9. For interconnection of two LAN, router must have configured with gateway address of
network1 and network2 for proper identification of two network interface.
10. This is done by entering gateway address of individual network at router CONFIG‐> Fast
Ethernet 0/0 console.
11. Similarly serial interface must be recognized by each of the router port. This is
configured by entering IP address of point to point network under 130.12.1.0 class B
network.
12. This is done by entering IP address of individual router1 and router2 serial port i.e. serial
2/0 with 130.12.1.1 and 130.12.1.2 respectively.
13. Assign network IP 192.168.1.0 and 130.12.0.0 for proper communication between
network1 and rest of network under RIP protocol.
14. Assign network IP 192.168.2.0 and 130.12.0.0 for proper communication between
network2 and rest of network under RIP protocol.
15. Go to the simulation mode and simulate the network using ICMP packet transmission
protocol in step by step simulation procedure.
Simulation result:
1. After connecting all devices and giving their respective IP and gateway addresses we
will follow these steps.
2. Configuring router0:
a. For input port:
4. Start simulation. Edit filters and select only ARP,ICMP, and RIP.
5. Now sending simple pdu from pc0 of network1 to pc2 of network2.
6. ARP request will be sent from pc0 to router0 via switch0.
7. ARP response is received by pc0 from switch0. Now pc0 is ready to transmit ICMP.
11. ICMP response is received by pc0 from pc1 via switch1, router1, router0, and
switch0.
12. Now RIPv1 request will be sent from router1 to neighbor router i.e. router0.
Discussion: In this experiment, as usual we have provided all the IPs and also configured
both routers with RIP with net id of both networks, so that the RIP can work and data can be
transmitted. In this way we have successfully completed our experiment. Now, if we delete
those two net ids from router RIP config, we will see the routers will constantly send RIPv1
to both networks to know the net id, and our transmission will be failed.