Route
Test to verify RIP route configuration for static route injection.
The set protocols rip route <x.x.x.x/x> command injects a static route into
the RIP routing table. RIP will advertise this route to neighbors as if it were a
learned route, even though the network doesn’t exist locally. This is useful for
injecting specific routes into RIP without requiring the actual network to be present.
Test RIP Static Route Injection
Description
Test RIP route command injects static route into RIP and advertises to neighbors.
DUT0 (10.1.1.100) is configured with set protocols rip route 192.168.100.0/24
to inject a static route into RIP. This route does not exist locally but RIP will
advertise it to neighbors. The test verifies that DUT1 learns this injected 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 network 10.1.1.0/24 set protocols rip route 192.168.100.0/24 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) should receive the injected route from DUT0 via RIP.
Step 3: Run command protocols rip show at DUT1 and check if output matches the following regular expressions:
R\(n\) 192.168.100.0/24Show 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 C(i) 10.1.1.0/24 0.0.0.0 1 self 0 R(n) 192.168.100.0/24 10.1.1.100 2 10.1.1.100 0 02:58
Attention
Verify that RIP route is selected (R>*)
Step 4: Run command protocols ip show route at DUT1 and check if output matches the following regular expressions:
R>\* 192.168.100.0/24Show 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: C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:02 L>* 10.1.1.50/32 is directly connected, eth0, weight 1, 00:00:02 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:15:39 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:17:23 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:44:45 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 03:58:15 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 03:58:35 R>* 192.168.100.0/24 [120/2] via 10.1.1.100, eth0, weight 1, 00:00:01