Configuring RIP Interface Options in Cisco
Last Updated :
28 Nov, 2022
Pre-requisite: RIP, Configuring RIP Versions 1 and 2 in Cisco.
RIP is a classless, distance-vector routing protocol (DVRP). It is a timer-driver routing protocol. It uses User Datagram Protocol (UDP) as a transport protocol and port 520. It uses hop count as the metric ranging from 1 to 16 where 15 is considered to be the maximum metric and 16 as the infinite (inaccessible) to remove the previously installed route i.e., to perform route poisoning which is a method of quickly forgetting outdated routing information from neighbor router's routing table. RIPv2 supports both plain text MD5 authentication.
When RIP is enabled on a router, there are some Per-Interface Actions/ interface options in RIP, and also disable them when these actions are enabled. There are 2 actions under interface configuration mode which allows setting the RIP version(s) in which the router will send and/or receive RIP advertisements and process them. Also, there is an option to enable RIPv2 to send broadcast updates on a per-interface basis in interface configuration mode.
RIP Interface Options Command:
RIP function
| Command
| Example
|
---|
To configure which version(s) of RIP updates can be sent via that interface. | ip rip send version <version> | R2(config)#interface Serial0/1/0 R2(config-if)#ip rip send version 1 2 |
To configure which version(s) of RIP updates can be received/processed via that interface. | ip rip receive version <version> | R2(config)#interface Serial0/1/0 R2(config-if)#ip rip receive version 1 2 |
To configure RIPv2 to send updates via a specific interface using broadcast and not multicast. | ip rip v2-broadcast | R1(config)#interface Serial0/1 R1(config-if)#ip rip v2-broadcast |
To make the interface passive, thus not sending RIPv2 updates via the specific interface. This sub-command is not configured under interface configuration mode but under router configuration mode. | passive-interface <type number> |
R1(config)#router rip
R1(config-router)#passive-interface Serial0/1
|
Configuring RIP Interface Options:
Step 1: Create the 3 router topology in GNS3 as shown in the image below:
Step 2: Configure IPv4 address on the physical interface of the routers :
R1(config)#int f0/0
R1(config-if)#ip address 12.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int f1/0
R1(config-if)#ip address 13.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R2(config)#int f0/0
R2(config-if)#ip address 12.1.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#int s2/0
R2(config-if)#ip address 23.1.1.1 255.255.255.0
R2(config-if)#no shutdown
R3(config)#int f0/0
R3(config-if)#ip address 13.1.1.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#int s2/0
R3(config-if)#ip add 23.1.1.2 255.255.255.0
R3(config-if)#no shutdown
Step 3: Enabling RIP on all routers using the router rip global configuration command :
R1(config)#router rip
R1(config-router)#network 12.0.0.0
R1(config-router)#network 13.0.0.0
R2(config)#router rip
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R3(config)#router rip
R3(config-router)#network 13.0.0.0
R3(config-router)#network 23.0.0.0
Step 4: Checking the IPv4 routing table on the routers for RIP route entry :
R1#show ip route
R2#show ip route
R3#show ip route
Step 5: Configure R2 to send and receive RIP Version 1 and 2 updates on the point-to-point link towards R3:
R2(config-if)#int serial2/0
R2(config-if)#ip rip send version 1 2
R2(config-if)#ip rip receive version 1 2
R2(config-if)#end
Step 6: Verifying the RIP interface option configuration on R2's serial interface:
R2#show ip protocols
Step 7: Configure R1’s fastethernet interface towards R2 to send RIPv2 updates as broadcast and not multicast:
R1(config)#interface fa0/0
R1(config-subif)#ip rip v2-broadcast
R1(config-subif)#end
Step 8: Verifying the RIP interface option configuration on R1 by debugging RIP events packets and verifying destination address of the packets as layer 3 broadcast address:
R1#debug ip rip events
To turn off debugging :
R1#undebug all
Step 9: Verifying RIP configuration on all 3 routers;
R1#show ip protocols
R2#show ip protocols
R3#show ip protocols
Capturing Interface using Wireshark :
To capture the interface in GNS3 :
- Make sure that the Wireshark is installed on your PC.
- Hover over the interface you want to capture and right-click on the interface
- A drop-down menu will appear with some options.
- Select the option that says “Start capture”.
RIP Advertisements:
Packets highlighted in red are RIPv1 advertisements:
RIPv1 advertisement (request message) packet format :
Similar Reads
Configuring Per Interface OSPF in Cisco
A routing technique called OSPF (Open Shortest Path First) is used in computer networks to choose the optimum route for packet forwarding. As a link-state routing protocol, OSPF determines the shortest path between any two nodes using knowledge on the network topology, including the condition and pr
2 min read
Configuring OSPF Interface Cost in Cisco
Pre-requisites: Open Shortest Path First (OSPF) Open Shortest Path First (OSPF) Â is a routing protocol that exchanges routing information within an autonomous system (AS). it is a link-state protocol that provides a more efficient and scalable way of routing traffic compared to distance vector proto
11 min read
Configuring OSPF Passive Interface in Cisco
Pre-requisite: What is Passive-Interface Command Behavior in RIP, EIGRP & OSPF? Configuring an interface as a passive interface in and OSPF domain causes OSPF to stop sending Hellos on that specified interface. OSPF will continue to advertise the subnet's passive interface as a stub network. The
3 min read
Configuring a Loopback Interface in Cisco
A loopback interface is used for device identification. Although you can use any interface address to determine if the device is online, we recommend using the loopback address. Network topology changes can remove interfaces or change addresses, but the loopback address never changes. Uses of Loopba
1 min read
Configuring EIGRP Passive Interface in Cisco
Pre-requisite: What is Passive-Interface Command Behavior in RIP, OSPF & EIGRP? EIGRP Passive Interface is enabled, and the router begins to originate Hello packets and process incoming EIGRP packets on all interfaces that fall within the specified network range. But, this is an unnecessary wast
3 min read
Configuring OSPF Priority in Cisco
The Open Shortest Path First (OSPF) protocol belongs to a family of IP routing protocols and is an internal protocol for the Internet used to send IP routing information through a single Autonomous System (AS) and distribute it across IP networks. Gateway Protocol (GP). Priority in OSPF is used in t
2 min read
Configuring RIP Route Metric Offset-Lists in Cisco
RIP stands for Routing Information Protocol which is a Distance Vector Routing Protocol (one of the types of Dynamic Routing Protocol). It is a DVRP that relies on the hop count as its metric to calculate the best path to the destination. It uses UDP (User Datagram Protocol) as its Transport Layer P
4 min read
Configuring OSPF Network Types in Cisco
Pre-requisites: Open shortest path first (OSPF) router roles and configuration, OSPF network types. In an OSPF routing domain, there can be multiple OSPF network types that can be configured to manipulate the OSPF operations as per the needs and requirements on a specific interface keeping in mind t
3 min read
Configuring RIP Timers in Cisco
Pre-requisites: RIP RIP is a Distance Vector Routing Protocol with an AD 120 value of and uses next-hop as metric value to find the best route to a destination. It supports a maximum of 15 hop counts, and 16 is considered as infinity. RIP uses split horizon to avoid forming of loops and uses split h
2 min read
Configuring RIP Triggered Updates in Cisco
RIP (Routing Information Protocol) is a Distance Vector Routing Protocol (DVRP) which generally uses hop counts to find the best path to the destination. By RIP, we will be talking about the RIPv2 by default. Since RIPv2 is a dynamic routing protocol: RIPv2 exchanges routes/networks by sending RIP u
4 min read