Re: Issues with static configuration: routers
Yegor Yefremov
Thu Jan 18 14:44:43 2018
On Wed, Jan 17, 2018 at 10:08 AM, Yegor Yefremov
<yegorslists@xxxxxxxxxxxxxx> wrote:
> I'm using the latest git version and have following problem when
> trying to set the default gateway. The command below complains, that I
> don't specify an interface though it is present on the command line:
>
> # dhcpcd -S ip_address=192.168.1.233/24 -S domain_name_servers="192.168.1.1 192.
> 168.1.3" -S broadcast_address=192.168.1.255 -S routers=192.168.1.1 eth0
> static routes require an interface
>
> I was working with dhcpcd version 6.x before and the router made no
> problem. Am I missing some configuration option?
I've looked at the code and found following:
The first invocation of add_options() will be made with NULL instead
of ifname [1]. This leads to return value -1, as neither ifname nor
ctx->ifaces are available.
[1] https://github.com/rsmarples/dhcpcd/blob/master/src/dhcpcd.c#L1548
Yegor
Archive administrator: postmaster@marples.name