From owner-freebsd-questions@freebsd.org Sun Aug 30 07:16:36 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 D48209C4329 for ; Sun, 30 Aug 2015 07:16:36 +0000 (UTC) (envelope-from mueller6724@bellsouth.net) Received: from nm7-vm7.access.bullet.mail.gq1.yahoo.com (nm7-vm7.access.bullet.mail.gq1.yahoo.com [216.39.63.185]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6AD3182 for ; Sun, 30 Aug 2015 07:16:36 +0000 (UTC) (envelope-from mueller6724@bellsouth.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s2048; t=1440918889; bh=UeQnGgx6Knsjwf2fmWXlmKIyjVtpFZmAe+bb0ggkl4c=; h=Date:From:To:Subject:References:From:Subject; b=gdY3YGdpQtitIwJZZRQm5FLn4JE3IkK7ZCoaPQ+3DrXPcv3hZX1NMGznyuGN/xt5cEGcAnZ/RGuDCDLMyQFoKTo0ktqIzZiQDm3gZ0nMDS0jEHWUHDx6epBw/LWQHyywMiqjPRY+6CIuaFfzqI0Fw50SBWxQ3dsPOdbUTBBbihupM2OZW6oqabA1Oj6uqoaS1H8+5TVT5J06VvNwKbMHrEs8n1Owp8myU7r7Ggh5II000IOaXik3pwKy18uS7/XiuaxSkiEUZD0wYs5duivM76lxjJQ/6DbyHQ14YUcZPzuyvMPhgCsRuGe4Qi920jiAv6gEhgTrVbInWQikNpKdYA== Received: from [216.39.60.173] by nm7.access.bullet.mail.gq1.yahoo.com with NNFMP; 30 Aug 2015 07:14:49 -0000 Received: from [98.138.104.96] by tm9.access.bullet.mail.gq1.yahoo.com with NNFMP; 30 Aug 2015 07:14:49 -0000 Received: from [127.0.0.1] by smtp116.sbc.mail.ne1.yahoo.com with NNFMP; 30 Aug 2015 07:14:49 -0000 X-Yahoo-Newman-Id: 15727.94738.bm@smtp116.sbc.mail.ne1.yahoo.com Message-ID: <15727.94738.bm@smtp116.sbc.mail.ne1.yahoo.com> X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: rtnP5SsVM1mcQNeSdpjPGA0xQ6FUcliLvESPCoja354RbRq 4tKX.T9olpBO5eGSDVjuGTn1EdI4ImxEvVP1Mx7cGW.cRkKivHlfc4x4Y_OP 2DvHGu4bmUDXMAIMqksy5fFKEgb8b7ndqMvmjuwl8kvgdnwVHJZWYoD3LlEV nVDsrilwc4Ltt7RgCdzlSLl2KU9vvqvazyp6wULKfnWnCGisUtuoSqi82GlP a9HksG98y5mxZSHwd4mxxEf.FsDiIIqxB8IXJpuvRIhd1HE9zQDuPgw_AQJe o7CoZU_RbqaUPRJtSMqQJ27nk7SirPtBsV_skPVY8qyu2kXrEmnuyuVk_Fx0 d_tswHlgFwEKJbOJEmQl1bMDYyd15RFfSW2n2tDeGrZAbQRrxj_gCRU5Slav OlmTlAgZQaTXnf9jzoyGByWYVxhkwE5QJcr0LErDUsxO5kZhza8aeCvLKXlP ROHx6P3KvLDBgcwohbDSRZbGa9kO8ZxDjioQUNbnrXkL6adoVJLrUMjbZPsr ptcEaCnFd.T8brfryzI9W62sP5.c8XkDSXetIV06OIxDLCsZkT1AE8077wUo - X-Yahoo-SMTP: Kz_aW1.swBBYof3zAD7.RWzXz9ZAQVDMml1VADsbgPT4Kq79LC0- Date: Sun, 30 Aug 2015 07:13:56 +0000 From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: Re: disabling dhclient References: <55e25852.0Xpg4zY1btmbpx9Z%perryh@pluto.rain.com> <55e282fc.s+OSZJ/KaD3iwr7U%perryh@pluto.rain.com> 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: Sun, 30 Aug 2015 07:16:37 -0000 Perry Hutchison wrote; > Michael Sierchio wrote: > > On Sat, Aug 29, 2015 at 6:11 PM, Perry Hutchison > > wrote: > > > These are the settings in /etc/rc.conf: > > > > > ifconfig_xl0="192.168.0.81 netmask 255.255.0.0" > > > defaultrouter="192.168.0.1" > > > nfs_server_enable="YES" > > > check_quotas="NO" > > > rpcbind_enable="YES" > > > nfs_client_enable="YES" > > > sshd_enable="YES" > > > inetd_enable="YES" > > > kern_securelevel_enable="NO" > > > linux_enable="YES" > > > moused_enable="NO" > > > moused_type="NO" > > > sendmail_submit_enable="NO" > > > sendmail_outbound_enable="NO" > > > sendmail_msp_queue_enable="NO" > > > lpd_enable="YES" > > > > Is that the complete file? > Apart from comments and the hostname setting, yes. > (Keep in mind that /etc/defaults/rc.conf is loaded first, so > /etc/rc.conf only needs to contain changes from the defaults. > I figured there was no need to clutter the list with a dump > of ~700 lines of default settings, since they're unchanged from > the original distribution.) > > > and is there an /etc/rc.local or /usr/local/etc/rc.local? > No. I don't have ifconfig in /etc/rc.conf, dhclient never runs automatically on my system. This is true for both FreeBSD and NetBSD. I run dhclient on the command line. There is a line in /etc/defaults/rc.conf dhclient_program="/sbin/dhclient" # Path to dhcp client program. Setting dhclient_program="/usr/bin/true" in /etc/rc.conf would avoid the need to hack dhclient itself; I don't know if this would prevent dhclient from working from the command line. Tom