Hi Folks

Any reason you are not using the append / supercede options in the built in
dhclient.conf?
https://man.openbsd.org/dhclient.conf

Totally curious, as that is what I am using to override / append
information...


Thanks

Shane


On Sat, Mar 23, 2019 at 3:55 AM Stuart Henderson <s...@spacehopper.org>
wrote:

> On 2019-03-22, Theodore Wynnychenko <t...@uchicago.edu> wrote:
> > This is the first time I am responding to a post that is not my mine.
> > I hope it is not too uninformed.
> >
> > Anyway, back in about October, 2016, I noticed that the included dhcp
> > client would no longer assign an alias address alongside the address
> > from the dhcp lease. Before about this time, I seem to recall, it would.
> >
> > My solution was to use the isc-dhcp-client from ports. But, that also
> > had some issues.
> >
> > My solution (and if it is a poor solution, sorry) is on the mailing list
> at:
> >
> > https://marc.info/?l=openbsd-misc&m=147638874608453&w=2
> >
> > It is working as expected through my last update of current, which was
> about 2 months ago.
>
> That sounds reasonable.
>
>
> >> -----Original Message-----
> >> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf
> Of Lars Bonnesen
> ...
> >> and if so, how do I make sure that mygate does not get overwritten from
> >> dhcp?
>
> So this is a bit different to Theodore's setup as you want a static
> gatewy. The simplest method is probably to allow dhclient to set the
> 0.0.0.0/0 default route itself, and add lines like these to hostname.if
>
> !route add 0.0.0.0/1 $gw_address
> !route add 128.0.0.0/1 $gw_address
>
> That way dhclient can add and remove addresses as it wants and it
> won't interfere with your real gateway. (Some of the tun-based VPN
> clients use the same trick).
>
>
>

Reply via email to