From owner-freebsd-questions@FreeBSD.ORG Wed Apr 20 00:15:22 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E093416A4CE for ; Wed, 20 Apr 2005 00:15:22 +0000 (GMT) Received: from web15803.mail.cnb.yahoo.com (web15803.mail.cnb.yahoo.com [202.165.102.83]) by mx1.FreeBSD.org (Postfix) with SMTP id D326743D3F for ; Wed, 20 Apr 2005 00:15:21 +0000 (GMT) (envelope-from ljc020930@yahoo.com.cn) Message-ID: <20050420001520.97770.qmail@web15803.mail.cnb.yahoo.com> Received: from [218.19.61.217] by web15803.mail.cnb.yahoo.com via HTTP; Wed, 20 Apr 2005 08:15:20 CST Date: Wed, 20 Apr 2005 08:15:20 +0800 (CST) From: liu jiachang To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 20 Apr 2005 12:39:56 +0000 Subject: how to set fixed address problem at dhcpd.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 00:15:23 -0000 Hi, everyone: I installed isc-dhcp3-server on my freebsd 5.3(also it is a gateway which have double NIC), and it can work at our net. example, dhcpd can assign dhcp client internal address from 'A slightly different configuration for an internal subnet' at my dhcpd.conf. But now I want to assign some of dhcp client fixed address. if I haved my dhcpd.conf as this, does it work? # A slightly different configuration for an internal subnet. subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.2 192.168.0.7; option domain-name-servers domain.org, domain2.org; option domain-name "test.org"; option routers 192.168.0.1; option broadcast-address 192.168.0.255; default-lease-time 6400; max-lease-time 59200; } # Fixed IP addresses can also be specified for hosts. These addresses # should not also be listed as being available for dynamic assignment. # Hosts for which fixed IP addresses have been specified can boot using # BOOTP or DHCP. Hosts for which no fixed address is specified can only # be booted with DHCP, unless there is an address range on the subnet # to which a BOOTP client is connected which has the dynamic-bootp flag # set. host client { hardware ethernet 00:e0:4c:a7:ca:de; fixed-address 192.168.0.6; } and another problem is still some words from dhcpd, as these: dhcpd: unable to create icmp socket: operation not permitled dhcpd: can't open /var/db/dhcpd.leases for append Thank you for your reply Nectar _________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/