Passive All
Test to verify RIP passive all and interface-exclude configuration.
The set protocols rip passive all command makes all interfaces passive by default,
preventing RIP updates from being sent on any interface. The set protocols rip passive
interface-exclude <itf> command excludes specific interfaces from passive mode, allowing
them to send updates normally.
Test RIP Passive All
Description
Test RIP passive all behavior where all interfaces are passive by default.
DUT0 has passive all configured, so it receives routes from DUT1
but does not advertise its own routes (10.10.10.0/24).
Scenario
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 all 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
DUT0 should learn 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/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 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:59
Step 4: Run command protocols ip show route at DUT0 and check if output matches the following regular expressions:
10.20.20.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:05 K * 10.1.1.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:05 L>* 10.1.1.100/32 is directly connected, eth0, weight 1, 00:00:05 C>* 10.10.10.0/24 is directly connected, dum0, weight 1, 00:00:06 K * 10.10.10.0/24 [0/0] is directly connected, dum0, weight 1, 00:00:06 L>* 10.10.10.1/32 is directly connected, dum0, weight 1, 00:00:06 R>* 10.20.20.0/24 [120/2] via 10.1.1.50, eth0, weight 1, 00:00:00
Attention
DUT1 should not learn route 10.10.10.0/24 from DUT0 (passive all).
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:05 L>* 10.1.1.50/32 is directly connected, eth0, weight 1, 00:00:05 C>* 10.20.20.0/24 is directly connected, dum0, weight 1, 00:00:05 L>* 10.20.20.1/32 is directly connected, dum0, weight 1, 00:00:05 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:17:15 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:18:59 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:46:21 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 03:59:51 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 04:00:11
Test RIP Passive All With Interface-Exclude
Description
Test RIP passive all with interface-exclude to allow specific interfaces to send updates.
DUT0 has passive all configured but excludes eth0 using
interface-exclude.
Scenario
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 all set protocols rip passive interface-exclude 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
DUT1 should learn route 10.10.10.0/24 from DUT0.
Step 3: Run command protocols rip show at DUT1 and check if output matches the following regular expressions:
10.10.10.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) 10.10.10.0/24 10.1.1.100 2 10.1.1.100 0 02:58 C(r) 10.20.20.0/24 0.0.0.0 1 self 0
Step 4: Run command protocols ip show route at DUT1 and check if output matches the following regular expressions:
10.10.10.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 R>* 10.10.10.0/24 [120/2] via 10.1.1.100, eth0, weight 1, 00:00:01 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:25 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:19:09 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 02:46:31 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 04:00:01 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 04:00:21