Default-Information Originate

Test to verify RIP default-information originate configuration. By default, RIP does not advertise a default route (0.0.0.0/0) even if one exists in the routing table. The set protocols rip default-information originate command forces RIP to generate and advertise a default route (0.0.0.0/0) to all neighbors.

Test RIP Default-Information Originate

Description

Test RIP default-information originate sends default route to neighbors. DUT0 (10.1.1.100) is configured with set protocols rip default-information originate to advertise the default route (0.0.0.0/0) via RIP. The test verifies that DUT1 learns the default route via RIP.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.1.1.100/24
set protocols rip default-information originate
set protocols rip network 10.1.1.0/24
set protocols rip redistribute connected
set protocols rip timers update 5
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 10.1.1.50/24
set protocols rip network 10.1.1.0/24
set protocols rip timers update 5
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Attention

DUT1 (10.1.1.50) is the neighbor that should receive and install the default route from DUT0 in its routing table.

Step 3: Run command protocols rip show at DUT1 and check if output matches the following regular expressions:

R\(n\) 0\.0\.0\.0/0
Show output
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface

     Network            Next Hop         Metric From            Tag Time
R(n) 0.0.0.0/0          10.1.1.100            2 10.1.1.100        0 02:58
C(i) 10.1.1.0/24        0.0.0.0               1 self              0

Attention

Verify that RIP default route is selected (R>*)

Step 4: Run command protocols ip show route at DUT1 and check if output matches the following regular expressions:

R>\* 0.0.0.0/0
Show output
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric, t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

IPv4 unicast VRF default:
R>* 0.0.0.0/0 [120/2] via 10.1.1.100, eth0, weight 1, 00:00:02
C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:03
L>* 10.1.1.50/32 is directly connected, eth0, weight 1, 00:00:03
L   10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:16:36
L   10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:18:20
L   10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:45:42
L>  30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 03:59:12
L   30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 03:59:32