info_i_25x25.png See important information about Ubiquiti Devices and KRACK Vulnerability in this article. We will update this document as more information becomes available.

EdgeRouter - Set up and configure RIP-based networks


Readers will learn how to configure routers with RIP enabled.

Network diagram illustrating RIP configured across three routers

 The following example describes how to configure a RIP network with three routers. 

R1 Configuration

  • Configure the IP address.
ubnt@R1#set interfaces ethernet eth1 address
  • Configure RIP.
ubnt@R1#set protocols rip interface eth1

R2 Configuration

  • Configure the IP address.
ubnt@R2#set interfaces ethernet eth1 address
ubnt@R2#set interfaces ethernet eth2 address
  • Configure RIP.
ubnt@R2#set protocols rip interface eth1
ubnt@R2#set protocols rip interface eth2

R3 Configuration

  • Configure the IP address.
set interfaces ethernet eth0 address
  • Configure RIP.
set protocols rip interface eth0

Once this is configured, R1 learns that can be reached by

ubnt@R1:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,I - ISIS, B - BGP,
> - selected route, * - FIB route
S>* [210/0] via, eth5
C>* is directly connected, eth1
R>* [120/2] via, eth1, 00:00:36
C>* is directly connected, lo
C>* is directly connected, eth2
C>* is directly connected, eth5
C>* is directly connected, peth1
ubnt@R1:~$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=63 time=7.52 ms
64 bytes from icmp_req=2 ttl=63 time=0.321 ms
^C--- ping statistics
---2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.321/3.922/7.524/3.602 ms
ubnt@R1:~$ traceroute
traceroute to (, 30 hops max, 60 byte packets ( ms0.233 ms0.239 ms ( ms0.267 ms0.277 ms


The following commands can be used in conjunction with RIP networks and will display important information:

ubnt@R1:~$ show ip rip
Codes: R - RIP, Rc - RIP connected, Rs - RIP static, K - Kernel,
       C - Connected, S - Static, O - OSPF, B - BGP
   Network            Next Hop         Metric From            If     Time