How to configure RIP routing on MikroTik

As we know, routing is divided into two types, namely static and dynamic routing. In dynamic routing there are several routing protocols, one of which is RIP. This is a very simple routing protocol and falls into the category of Interior Gateway Protocols. This time we will try to configure RIP routing on MikroTik, but before that we will discuss this RIP routing first.

Read also: How to configure static routing 2 MikroTik Router

Routing Information Protocol (RIP)

Routing Information Protocol (RIP) is a very simple routing protocol and belongs to the category Interior Gateway Protocol. RIP is a routing protocol with a distance vector routing algorithm or a routing protocol that looks only at the direction and distance to reach a destination network.

RIP does not have a complete map of the existing network. RIP uses the hop number as a measure, and the link to the lowest hop number will be the best link (the best way). Routers running RIP will exchange information with neighboring routers. The information that will be changed is its routing table, in other words a router will send or redirect its routing table to the neighboring router. Here are some features of RIP:

  • Remote vector routing protocol
  • Hop counting as a route selection value
  • Maximum number of hop 15, hop ke 16 dianggap inaccessible
  • By default, the routing is updated every 30 seconds
  • RIPv1 (classfull routing protocol) does not send subnet mask to updates
  • RIPv2 (classless routing protocol) sends the subnet mask to updates

RIP routing configuration on MikroTik

Once you understand the routing information protocol, then we just try to configure RIP routing on MikroTik. Here the administrator will use Gns3, but don’t worry, the administrator will also provide the Winbox version.

1. Before setting up RIP routing on MikroTik, first create a topology as shown below.

MikroTik RIP routing topology

MiktoTik1:

  • Ether1 = 12.12.12.1
  • Ether2 = 192.168.10.1

MicroTik2:

  • Ether1 = 12.12.12.2
  • Ether2 = 14.14.14.2
  • Ether3 = 192.168.20.1

MiktoTik3:

  • Ether1 = 14.14.14.1
  • Ether2 = 192.168.30.1

PC client:

  • Client PC MikroTik1 – Ether1 = 192.168.10.2
  • Client PC MikroTik2 – Ether1 = 192.168.20.2
  • Client PC MikroTik3 – Ether1 = 192.168.30.2

2. Configure the IP address on each MikroTik router.

Router1:

[[email protected]] > system identity set name=Router1
[[email protected]] > ip address add address=12.12.12.1/24 interface=ether1
[[email protected]] > ip address add address=192.168.10.1/24 interface=ether2
Configuring the IP address of the MikroTik1 router

Router2:

[[email protected]] > system identity set name=Router2
[[email protected]] > ip address add address=12.12.12.2/24 interface=ether1
[[email protected]] > ip address add address=14.14.14.2/24 interface=ether2
[[email protected]] > ip address add address=192.168.20.1/24 interface=ether3
Configuring the IP address of the MikroTik2 router

Router3:

[[email protected]] > system identity set name=Router3
[[email protected]] > ip address add address=14.14.14.1/24 interface=ether1
[[email protected]] > ip address add address=192.168.30.1/24 interface=ether2
Configuring the IP address of the MikroTik3 router

If you use Winbox, you can configure the IP address in the menu IP> Address then click the icon +.

Configuring the IP address of the MikroTik Winbox router

3. Configure the IP on each client PC as in the topology above. To do this in Gns3, use the following command.

PC-1> ip 192.168.10.2 255.255.255.0 192.168.10.1
Checking for duplicate address…
PC1 : 192.168.10.2 255.255.255.0 gateway 192.168.10.1
PC-2> ip 192.168.20.2 255.255.255.0 192.168.20.1
Checking for duplicate address…
PC2 : 192.168.20.2 255.255.255.0 gateway 192.168.20.1
PC-3> ip 192.168.30.2 255.255.255.0 192.168.30.1
Checking for duplicate address…
PC2 : 192.168.30.2 255.255.255.0 gateway 192.168.30.1
Gns3 client IP configuration

4. After completing the IP configuration on the Router and the Client PC, then we will configure the RIP on each router.

Router1:

[[email protected]] > routing rip interface add interface=ether1
[[email protected]] > routing rip network add network=12.12.12.0/24
[[email protected]] > routing rip network add network=192.168.10.0/24
RIP configuration MikroTik1 router

If you use Winbox, you can configure RIP routing in the menu Router> RIP then click the tab Interface and click the icon +. Then click the tab Network and click the icon +.

MikroTik1 Winbox Router RIP Configuration

Router2:

[[email protected]] > routing rip interface add interface=ether1
[[email protected]] > routing rip interface add interface=ether2
[[email protected]] > routing rip network add network=12.12.12.0/24
[[email protected]] > routing rip network add network=14.14.14.0/24
[[email protected]] > routing rip network add network=192.168.20.0/24
MikroTik2 router RIP configuration
MikroTik2 Winbox Router RIP Configuration

Router3:

[[email protected]] > routing rip interface add interface=ether1
[[email protected]] > routing rip network add network=14.14.14.0/24
[[email protected]] > routing rip network add network=192.168.30.0/24
MikroTik3 router RIP configuration
MikroTik3 Winbox Router RIP Configuration

5. Finally, try to ping each Client PC. If successful, the RIP Routing configuration on MikroTik is correct.

Conclusion

Here’s how to set up RIP routing on MikroTik. Pretty easy, isn’t it? Using RIP routing, we can have a timer to know when the router should return routing information. If a network change occurs while the timer has not expired, the router must continue to send routing information because the change has been triggered (update triggered). Setting up routing using RIP is also not complicated and provides fairly acceptable results, especially if network connection failures are rare.


So many articles How to configure RIP routing on MikroTik. Looking forward to more interesting articles and don’t forget to share this article with your friends. Thanks…

Leave a Comment

/* */