From owner-freebsd-questions@freebsd.org Sat Sep 12 03:20:44 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00BDDA023C7 for ; Sat, 12 Sep 2015 03:20:44 +0000 (UTC) (envelope-from lists@flederma.us) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.perfora.net", Issuer "thawte SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CF57119CC for ; Sat, 12 Sep 2015 03:20:43 +0000 (UTC) (envelope-from lists@flederma.us) Received: from neon.local ([73.207.230.118]) by mrelay.perfora.net (mreueus001) with ESMTPSA (Nemesis) id 0M41XI-1YjBcM0sew-00rXXD for ; Sat, 12 Sep 2015 05:15:24 +0200 To: freebsd-questions From: Cary Subject: dhclient(8) sets wrong interface netmask on boot up X-Enigmail-Draft-Status: N1110 Message-ID: <55F398CA.7050308@flederma.us> Date: Fri, 11 Sep 2015 23:15:22 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:k1UpLLJKc9ltmjTzdIDGsmSfLzcHoAvDF6GebLT3QbtLiDCLL5B aeHa5basODK7PICRpbyqDfCbLWWa9fDccHfXy+KVqUkI+iqK1860m9VjaOh3HVPt1ObjAX1 9icGeaT7H9EMIyEzotSnXYlCh4z3vJd1fk9nEaoAQg+O3gBVsqMQjbW8tng2GrIqArt7UOs mMTxHbaoc6zzSVFpfe7cQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Cf8Xe2Fznz4=:fNaS92jdRRJca++tuPueD7 9pimEySVGEr1VlZLS0MwCGAQd7FH6Xdr79QmCseCkHdT0PDhTtskCX56lDM+huVWWteHvf7ms /VOzV5uvM+DDIB7p/sXfLvqmMkJwnjEuYDNjO53KNkolEG0s3qabd8QgHSbUE16giKyLKIXTT 4/lzsc5gdiS7CrwKQAGVRB4k/xRxkG77t890Y15qPGgXVKV5v9Sk/GPvHajyPRp3rnm8/c0LP yb16qqN5bGHQ09vKrRd0+mDHPawon3KAsL55TFEon8O93H+nyvIc8exGBzAHUKaDo7jNlORjU pNJIt7rs51mWOlsWd5c1mZZ0e3md+9o9JGhwnooJh7KRBXS2bD6wHXndsis9tcVEpkdhzbvtm BjOOQ8AzqDjcISCZ+D7z5N0sUdYGTGtCfH2pnMcUhjBnm0e55SefgB4EI64dml6nx1eCvVPzT sNmAZVJT98y1ZTo6zK6MBpf/UjmZuu7KkdbQR/OB8et8nYybawShsfIYySG70Rd6fZjf4GCen qkaC64vyGP8ObubRaflbtRShQuA9S5nHH7XNZ/2Mw8Y9+cGcr0xJsol7ReJopl51Dry8Jdq6A dogBl4u8GyXXmyU9ww/rJW16teYjD0nssKXLiwhC2iepbliswRvE2Kg3pgM1ZDOKW4DymnL0z hdf9+JNZ6XYvkVyvSZsV2JYKb1B8nwNvDLgKyalwwDXvqddhiAq/3yuLSTOgd0qq9jHqPPhqx vzhAKsVnHLvVhUHN X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Sep 2015 03:20:44 -0000 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! [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" sshd_enable="YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev="AUTO" # enable ezjail ezjail_enable="YES" ### EOF /etc/rc.conf ### [/etc/dhclient.conf] ### empty file -- Cary Mathews