title icon 雷射印表機資訊網
menu_top_background
:::
dhcp
:::

1.dhcp-client 整合於 FreeBSD 中,而 dhcp-server 可於 ports 中安裝。

2.install
(1)Make sure that the bpf device is compiled into your kernel.To do this, add pseudo-device bpf to your kernel configuration file, and rebuild the kernel.
(2)Edit your /etc/rc.conf to include the following:ifconfig_fxp0='DHCP'
(3)The DHCP server, dhcpd, is included as part of the net/isc-dhcp3 port in the ports collection.
(4)cp /usr/local/etc/dhcpd.conf.sample /usr/local/etc/dhcpd.conf and edit it.

3.configure dhcpd.conf
option domain-name "example.com";
option domain-name-servers 192.168.4.100;
option subnet-mask 255.255.255.0;

default-lease-time 3600;
max-lease-time 86400;
ddns-update-style none;

subnet 192.168.4.0 netmask 255.255.255.0 {
  range 192.168.4.129 192.168.4.254;
  option routers 192.168.4.1;
}

host mailhost {
  hardware ethernet 02:03:04:05:06:07;
  fixed-address mailhost.example.com;
}

menu_bottom_background

::: copy right: 苗栗縣政府教育處資訊中心
建議使用瀏覽器Firefox或Chrome