Passive Interface

Test to verify RIP passive interface behavior for unidirectional route exchange. A passive interface receives routing updates from neighbors but does not send its own updates, creating asymmetric routing information exchange. This validates that passive mode enables listening to RIP updates while preventing route advertisements.

Test RIP Passive Interface

Description

Test RIP passive interface behavior demonstrating unidirectional route exchange. DUT0 (with passive interface on eth0) receives routes from DUT1 but does not advertise its own routes (10.10.10.0/24).

Scenario

Note

Passive interface behavior:

The route 10.10.10.0/24 is not advertised by DUT0 to DUT1 because eth0 is configured as a passive interface.

  • DUT0 with passive interface: receives routes from DUT1 but does not send routes.

  • DUT1 with normal interface: sends and receives routes normally.

This creates unidirectional route exchange, useful for preventing routing updates on specific interfaces while still learning routes from neighbors.

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address 10.10.10.1/24
set interfaces ethernet eth0 address 10.1.1.100/24
set protocols rip network 10.1.1.0/24
set protocols rip passive interface eth0
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 dummy dum0 address 10.20.20.1/24
set interfaces ethernet eth0 address 10.1.1.50/24
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'

Attention

Verify that DUT0 learns the route 10.20.20.0/24 from DUT1

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

10.20.20.0/24
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
C(i) 10.1.1.0/24        0.0.0.0               1 self              0
C(r) 10.10.10.0/24      0.0.0.0               1 self              0
R(n) 10.20.20.0/24      10.1.1.50             2 10.1.1.50         0 02:58

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

10.20.20.0/24
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:
C>* 10.1.1.0/24 is directly connected, eth0, weight 1, 00:00:04
K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:04
L>* 10.1.1.100/32 is directly connected, eth0, weight 1, 00:00:04
C>* 10.10.10.0/24 is directly connected, dum0, weight 1, 00:00:04
K * 10.10.10.0/24 [0/0] is directly connected, dum0, weight 1, 00:00:04
L>* 10.10.10.1/32 is directly connected, dum0, weight 1, 00:00:04
R>* 10.20.20.0/24 [120/2] via 10.1.1.50, eth0, weight 1, 00:00:02

Attention

Verify that DUT1 does not learn the route 10.10.10.0/24 from DUT0

Step 5: Run command protocols rip show at DUT1 and expect this output:

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
C(i) 10.1.1.0/24        0.0.0.0               1 self              0
C(r) 10.20.20.0/24      0.0.0.0               1 self              0

Step 6: Run command protocols ip show route at DUT1 and expect this output:

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:
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
C>* 10.20.20.0/24 is directly connected, dum0, weight 1, 00:00:02
L>* 10.20.20.1/32 is directly connected, dum0, weight 1, 00:00:02
L   10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:17:36
L   10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:19:20
L   10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:46:42
L>  30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 04:00:12
L   30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 04:00:32