dhcpcd-discuss

dhcpcd preventing default route being added

jobhunts02

Wed Jun 19 04:03:17 2019

I run dhcpcd-7.0.0 with the -G option.  The reason I have the -G option is because an older version of dhcpcd was not setting the default gateway correctly.  Our device has 2 WAN interfaces and there may be a switch from one interface to another in case of failure.  In the past, the default gateway was not being set correctly.  If dhcpcd-7.0.0 has corrected this, my problem may be fixed by removing the -G option.

Assuming removing the -G option would not guarantee that dhcpcd would set the default gateway correctly, we have a script that configures the default gateway.  Using the route command, the script deletes and then adds the default gateway.  This works fine except when I have to restart dhcpcd due to the link state monitor option (-K) being changed.  The route command deletes the default gateway but it does not add the default gateway when dhcpcd is restarting.

Is there anything in dhcpcd that would prevent the route command from adding the default gateway while dhcpcd is restarting?

Thank you.




Follow-Ups:
Re: dhcpcd preventing default route being addedRoy Marples
Archive administrator: postmaster@marples.name