From nobody Wed Sep 25 20:04:35 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XDSPd5txxz5XfgP for ; Wed, 25 Sep 2024 20:04:53 +0000 (UTC) (envelope-from sr@genyosha.net) Received: from ns0.genyosha.net (ns0.genyosha.net [50.39.243.220]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "float.home.genyosha.net", Issuer "float.home.genyosha.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XDSPd1fPDz52Rl for ; Wed, 25 Sep 2024 20:04:53 +0000 (UTC) (envelope-from sr@genyosha.net) Authentication-Results: mx1.freebsd.org; none Received: from dragon.home.genyosha.net (ops0.genyosha.net [50.39.243.219]) by ns0.genyosha.net (8.18.1/8.18.1) with ESMTPS id 48PK4ecY045391 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Sep 2024 13:04:41 -0700 (PDT) (envelope-from sr@genyosha.net) Received: from dragon.home.genyosha.net (localhost [127.0.0.1]) by dragon.home.genyosha.net (8.14.7/8.14.7) with ESMTP id 48PK4ZR7014740; Wed, 25 Sep 2024 13:04:35 -0700 Received: (from sr@localhost) by dragon.home.genyosha.net (8.14.7/8.14.7/Submit) id 48PK4ZO6014739; Wed, 25 Sep 2024 13:04:35 -0700 Date: Wed, 25 Sep 2024 13:04:35 -0700 From: Steve Rikli To: Frank Leonhardt Cc: questions Subject: Re: Why does dhcpd have a routers (plural) option for a subnet? Message-ID: References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Greylist: inspected by milter-greylist-4.6.4 (ns0.genyosha.net [50.39.243.220]); Wed, 25 Sep 2024 13:04:41 -0700 (PDT) for IP:'50.39.243.219' DOMAIN:'ops0.genyosha.net' HELO:'dragon.home.genyosha.net' FROM:'sr@genyosha.net' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns0.genyosha.net [50.39.243.220]); Wed, 25 Sep 2024 13:04:41 -0700 (PDT) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20055, ipnet:50.39.128.0/17, country:US] X-Rspamd-Queue-Id: 4XDSPd1fPDz52Rl X-Spamd-Bar: ---- On Wed, Sep 25, 2024 at 08:39:39PM +0100, Frank Leonhardt wrote: > Ever wondered why there's a "routers" option in dhcpd.conf? I have. Why > isn't in just "router", as surely you can only have one default gateway? > Except that's been muddied a bit by MSFT. > > Rather than adding a second just to see what happens I thought I'd ask? > > I expect it's a mistake in the early days of dhcpd that was too late to fix, > or left for further expansion. Fwiw, dhcp-options(5) says: option routers ip-address [, ip-address ...]; The routers option specifies a list of IP addresses for routers on the client's subnet. Routers should be listed in order of preference. That said, I've never really tried multiple address there either. :-) Cheers, sr.