how to set fixed address problem at dhcpd.conf

liu jiachang ljc020930 at yahoo.com.cn
Tue Apr 19 17:15:23 PDT 2005


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/


More information about the freebsd-questions mailing list