Default-Information Originate
Test to verify RIPng default-information originate configuration.
By default, RIPng does not advertise a default route (::/0) even if one exists
in the routing table. The set protocols ripng default-information originate command
forces RIPng to generate and advertise a default route (::/0) to all neighbors.
Test RIPng Default-Information Originate
Description
Test RIPng default-information originate sends default route to neighbors.
DUT0 (2001:db8:1::100) is configured with set protocols ripng default-information originate
to advertise the default route (::/0) via RIPng.
The test verifies that DUT1 learns the default route via RIPng.
Scenario
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address '2001:db8:100::1/64' set interfaces ethernet eth0 address '2001:db8:1::100/64' set protocols ripng default-information originate set protocols ripng network '2001:db8:1::/64' set protocols ripng redistribute connected set protocols ripng 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 '2001:db8:1::50/64' set protocols ripng network '2001:db8:1::/64' set protocols ripng timers update 5 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
DUT1 (2001:db8:1::50) is the neighbor that should receive and install the default
route from DUT0 in its routing table.
Step 3: Run command protocols ripng show at DUT1 and check if output matches the following regular expressions:
R\(n\) ::/0Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIPng, 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, (a/S) - aggregated/Suppressed Network Next Hop Via Metric Tag Time R(n) ::/0 fe80::dcad:beff:feef:6c00 eth0 2 0 02:58 C(i) 2001:db8:1::/64 :: self 1 0 R(n) 2001:db8:100::/64 fe80::dcad:beff:feef:6c00 eth0 2 0 02:58
Attention
Verify that RIPng default route is selected (R>*)
Step 4: Run command protocols ipv6 show route at DUT1 and check if output matches the following regular expressions:
R>\* ::/0Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIPng, O - OSPFv3, I - IS-IS, B - BGP, 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 IPv6 unicast VRF default: R>* ::/0 [120/2] via fe80::dcad:beff:feef:6c00, eth0, weight 1, 00:00:01 C>* 2001:db8:1::/64 is directly connected, eth0, weight 1, 00:00:02 K * 2001:db8:1::/64 [0/256] is directly connected, eth0, weight 1, 00:00:04 L>* 2001:db8:1::50/128 is directly connected, eth0, weight 1, 00:00:02 R>* 2001:db8:100::/64 [120/2] via fe80::dcad:beff:feef:6c00, eth0, weight 1, 00:00:01 C>* fe80::/64 is directly connected, eth0, weight 1, 00:00:03