Files
infix/test/case/routing/route_pref_dhcp
Joachim Wiberg a844ba7d8c test: wait for static route before must_reach()
Not all systems are equally quick, let's give it while to set before
bailing out because we test too soon.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-02-24 06:59:29 +01:00
..

=== Route preference: DHCP vs Static

ifdef::topdoc[:imagesdir: {topdoc}../../test/case/routing/route_pref_dhcp]

==== Description

This test configures a device with both a DHCP-acquired route on a
dedicated interface and a static route to the same destination on
another interface.

Initially, DHCP is preferred over Static. Afterwards, the static
route takes precedence by adjusting the routing preference value
to the one lower than DHCP.

==== Topology

image::topology.svg[Route preference: DHCP vs Static topology, align=center, scaledwidth=75%]

==== Sequence

. Set up topology and attach to target DUTs
. Configure targets. Assign higher priority to the dhcp route
. Wait for DHCP and static routes
. Verify connectivity from PC:data12 to R2:lo via DHCP
. Assign higher priority to the static route
. Verify connectivity from PC:data12 to R2:lo via static route