Dynamic Routing - RIP Tutorials
For more details go to: Dynamic Routing - RIP
Setup RIP between Routers
This guide provides a step-by-step setup for RIP between two routers. Each router has a WAN connection, a unique LAN network, and a shared internal peering network. The routes of the unique LAN networks and any new networks should be automatically shared between the two routers.
Note
Peering network means that the routers are directly attached to each other via these interfaces. This can be done either by connecting a network cable directly between these ports, or ensuring they are connected to the same switch in the same Layer 2 Broadcast Domain.
Network Diagram
+-----------------+ Peering Network +-----------------+
WAN A | | 10.1.1.0/30 | | WAN B
----------| Router A |--------------------------| Router B |----------
DHCP | | 10.1.1.1 10.1.1.2 | | DHCP
+-----------------+ +-----------------+
| 192.168.1.1 192.168.200.1 |
| |
LAN A: 192.168.1.0/24 LAN B: 192.168.200.0/24
| |
| |
Device A: 192.168.1.201 Device B: 192.168.200.201
Setup Router A
Configure Network Interfaces
Interface |
Configuration |
---|---|
LAN |
|
WAN |
|
Peering |
|
Configure the LAN Interface with IP 192.168.1.1/24 on igc0.
Assign the Peering Interface on igc2 with IP 10.1.1.1/30 for the peering network between Router A and Router B.
Note
Since we do not use the WAN Interface for peering, it does not need any specific configuration.
Create Firewall rules on Peering Interface
Action |
Pass |
Interface |
Peering (igc2) |
Direction |
In |
TCP/IP Version |
IPv4 |
Protocol |
UDP |
Source |
Peering Network |
Source Port |
Any |
Destination |
|
Destination Port |
|
Description |
Allow RIP v2 multicast traffic on UDP port 520 for routing updates |
Note
Rules allowing traffic from LAN Router A to LAN Router B must be created in their respective LAN rulesets. Since traffic from LAN A to LAN B will use the peering connection, additional rules must be created in the Peering ruleset. Create rules to allow traffic entering Peering Router A from LAN Router B, and vice versa.
Configure General Settings
Select Enable
Deselect Firewall rules since we created a custom rule for RIPv2
Press Save
Note
Deactivating the automatic firewall rules is optional. If multiple dynamic routing protocols are used concurrently, the automatic rules will ease configuration.
Configure RIP Settings
Enable |
|
Version |
|
Passive Interfaces |
|
Route Redistribution |
|
Network |
leave empty since we use Connected routes |
Default Metric |
|
Press
Save
to enable the new configuration
Setup Router B
Configure Network Interfaces
Interface |
Configuration |
---|---|
LAN Interface |
|
WAN Interface |
|
Peering Interface |
|
Configure the LAN Interface with IP 192.168.200.1/24 on igc0.
Assign the Peering Interface on igc2 with IP 10.1.1.2/30 for the peering network between Router A and Router B.
Create Firewall rules on Peering Interface
Action |
Pass |
Interface |
Peering (igc2) |
Direction |
In |
TCP/IP Version |
IPv4 |
Protocol |
UDP |
Source |
Peering Network |
Source Port |
Any |
Destination |
|
Destination Port |
|
Description |
Allow RIP v2 multicast traffic on UDP port 520 for routing updates |
Configure General Settings
Select Enable
Deselect Firewall rules since we created a custom rule for RIPv2
Press Save
Configure RIP Settings
Enable |
|
Version |
|
Passive Interfaces |
|
Route Redistribution |
|
Network |
leave empty since we use Connected routes |
Default Metric |
|
Press
Save
to enable the new configuration
Verify the setup
- IPv4 Routes Tab:
Verify if the routes to LAN Router A and LAN Router B exist
Router A must have a route to 192.168.200.0/24 installed
Router B must have a route to 192.168.1.0/24 installed
- Test connectivity with ICMP:
Ping from 192.168.1.1 (Router A) to 192.168.200.1 (Router B) and in reverse
Ping from 192.168.1.201 (Device LAN A) to 192.168.200.201 (Device LAN B) and vice versa
If the ping does not work, look at the installed routes and verify the Firewall rules