From owner-freebsd-questions@freebsd.org Sun Aug 30 01:13:15 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 E04A49C099B for ; Sun, 30 Aug 2015 01:13:15 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C6A66376 for ; Sun, 30 Aug 2015 01:13:15 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id t7U14Arw054432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 29 Aug 2015 18:04:10 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.14.2/Submit) with UUCP id t7U149h9054431 for freebsd-questions@freebsd.org; Sat, 29 Aug 2015 18:04:09 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: from fbsd81 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA01690; Sat, 29 Aug 15 18:10:56 PDT Date: Sat, 29 Aug 2015 18:11:46 -0700 From: perryh@pluto.rain.com (Perry Hutchison) To: freebsd-questions@freebsd.org Subject: disabling dhclient Message-Id: <55e25852.0Xpg4zY1btmbpx9Z%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 01:13:16 -0000 My FreeBsd 8 system has recently developed an annoying habit of running dhclient during reboot. There is only one Ethernet card (xl0), and it is not supposed to be using DHCP -- it has a static IP address assigned in rc.conf. During the last couple of reboots dhclient has assigned a second IP address, and things have gone downhill from there. Is there a configuration knob somewhere that will say "never run dhclient" or "never run dhclient on xl0", or do I need to take a sledgehammer approach (like hacking on /etc/rc.d/dhclient, or replacing /sbin/dhclient with a link to /bin/true)? 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" and this is what "ifconfig -a" reports (after I've used "ifconfig xl0 -alias 192.168.0.3" to remove the extra IP address): xl0: flags=8843 metric 0 mtu 1500 options=80009 ether 00:b0:d0:22:5a:14 inet 192.168.0.81 netmask 0xffff0000 broadcast 192.168.255.255 media: Ethernet autoselect (100baseTX ) status: active plip0: flags=8810 metric 0 mtu 1500 lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 nd6 options=3