Default-Metric
Scenario to verify RIPng default-metric configuration.
This test validates that the default-metric command sets the metric value for
redistributed routes. DUT0 configures default-metric 10 and redistributes a
static blackhole route. DUT1 learns this route with metric 11.
Test RIPng Default Metric
Description
Test RIPng default-metric configuration where DUT0 redistributes a
static blackhole route 2001:db8:200::/64 with default-metric 10 and
DUT1 learns this route with metric value 11.
Scenario
Warning
This command does not affect connected routes even if redistributed by
redistribute connected. To modify connected route’s metric value,
please use redistribute connected metric or route-map.
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-metric 10 set protocols ripng network '2001:db8:1::/64' set protocols ripng redistribute static set protocols ripng timers update 5 set protocols static route6 '2001:db8:200::/64' blackhole 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
Verify that DUT1 learns route 2001:db8:200::/64 with metric 11
Step 3: Run command protocols ripng show at DUT1 and check if output matches the following regular expressions:
R\(n\)\s+2001:db8:200::/64[\s\S]+eth0 +11Show 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 C(i) 2001:db8:1::/64 :: self 1 0 R(n) 2001:db8:200::/64 fe80::dcad:beff:feef:6c00 eth0 11 0 02:58