Date: Sat, 12 Sep 2015 09:45:11 -0500 From: Adam Vande More <amvandemore@gmail.com> To: Cary <lists@flederma.us> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: dhclient(8) sets wrong interface netmask on boot up Message-ID: <CA%2BtpaK2A4kDVo8Ncgqz1FLAWkv83Aey-ay=ci52rbRZu7c3soA@mail.gmail.com> In-Reply-To: <55F398CA.7050308@flederma.us> References: <55F398CA.7050308@flederma.us>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 11, 2015 at 10:15 PM, Cary <lists@flederma.us> wrote:
> QUESTION: How do I get dhclient to correctly set the interface netmask
> when the system boots?
>
> Once the system is booted, I cannot SSH into the system until I have
> logged in via the console and restarted dhclient(8) (`service dhclient
> restart em0`).
>
> ACTIONS TAKEN:
> I've installed 10.2-RELEASE[uname] from scratch.
>
> My [/etc/rc.conf] specifies that the em0 interface should have dhclient
> run on it.
>
> Running ifconfig(8) prior (ifconfig-0.out) and post (ifconfig-1.out)
> dhclient, I found that the netmask is set incorrectly after boot:
>
> # ifconfig -a > ifconfig-0.out
> # service dhclient restart em0
> Stopping dhclient.
> Starting dhclient.
> DHCPREQUEST on em0 to 255.255.255.255 port 67
> DHCPACK from 192.168.20.1
> bound to 192.168.20.166 -- renewal in 43200 seconds.
> # ifconfig -a > ifconfig-1.out
> # diff ifconfig-0.out ifconfig-1.out
> 4c4
> < inet 192.168.20.166 netmask 0xffffffff broadcast 192.168.20.166
> ---
> > inet 192.168.20.166 netmask 0xffffff00 broadcast 192.168.20.255
>
> My [/etc/dhclient.conf] file is unchanged from the system default.
>
> The DHCP server is an residential wireless router. All other devices are
> receiving DHCP configurations from the router without issue.
>
> Thank you in advance for any assistance!
>
Nothing you've given us would lead me to believe this is an issue with
dhclient. Why do you? It simply assigns whatever info it gets from DHCP.
> [uname] FreeBSD public.fbsd.local 10.2-RELEASE FreeBSD 10.2-RELEASE #0
> r286666: Wed Aug 12 15:26:37 UTC 2015
> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>
> [/etc/rc.conf]
> hostname="public.fbsd.local"
> ifconfig_em0="DHCP"
> cloned_interfaces="${cloned_interfaces} lo1"
>
previous line doesn't make much sense.
> sshd_enable="YES"
>
--
Adam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK2A4kDVo8Ncgqz1FLAWkv83Aey-ay=ci52rbRZu7c3soA>
