NetBSD2 | NetBSD | 1.6 | amd | autoconf | apache | bind | booting | boot/install/disk | boot-cd | build.sh | (daily) | Canna | CF+sendmail | cvs | dhcpd | dvi2ps | emacs-20 | ftpmirror | fvwm2 | gcc | gettext | ghostscript | inn | IPv6 | jitterbug | Install(OHP) | kernel | (old) | majordomo | make build | MHonArc | MRTG | namazu | ndtpd | PHP + PostgreSQL | netatalk | netboot | NFS | NIS | ntp | opie | Open Firmware | perl | procmail | sendmail | sharutils | smtpfeed | tcsh | TeX | time make | ucspi-tcp | w3 | wget | Wnn | wu-ftpd | X11 | Site Map |
全文検索

dhcpd

The example comes with OS installation is located at
/usr/share/examples/dhcp/dhcpd.conf

example 1

ddns-update-style ad-hoc;
subnet 210.yyy.zz.112 netmask 255.255.255.240 {
}
#subnet 192.168.98.0 netmask 255.255.255.0 {
#}
subnet 192.168.80.0 netmask 255.255.255.0 {
  range 192.168.80.100 192.168.80.200;
  option domain-name-servers ns.domain, s.domain, n.domain ;
  option domain-name "domain" ;
  option routers 192.168.80.1;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.80.255;
  default-lease-time 7200;
  max-lease-time 86400;
}

example 2

option domain-name "domain";
option domain-name-servers domain;

option subnet-mask 255.255.255.240;
default-lease-time 600;
max-lease-time 7200;

subnet 210.yyy.40.112 netmask 255.255.255.240 {
  range 210.yyy.40.115 210.yyy.40.118 ;

  option broadcast-address 210.yyy.40.127;
  option routers cis2-kome.domain;
  option domain-name-servers domain,ml.domain,ns-tk012.ocn.ad.jp,ns-os012.ocn.ad.jp;
  option domain-name "domain";
  option routers 210.yyy.40.113;
  option subnet-mask 255.255.255.240;
  option broadcast-address 255.255.255.240;
  default-lease-time 1200;
  max-lease-time 86400;
}

tips

Also, you need to
touch  /var/db/dhcpd.leases
to start dhcpd if it does not exist.

Last Update

19:52:39 03/12/08
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Apache/2.4.62 (Unix) OpenSSL/3.0.12
Count.cgi
(since 2002/03/20)