DHCP server
cd /usr/ports/net/isc-dhcp30-server
make install clean
Настройка:
/usr/local/etc/dhcpd.conf
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.10 10.0.0.254;
option domain-name-servers 10.0.0.1;
option domain-name "gsp.local";
option netbios-name-servers 10.0.0.1;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
}
authoritative;
default-lease-time 259200;
max-lease-time 604800;
ddns-update-style ad-hoc;
log-facility local7;
local-address 10.0.0.1;
Делаем автозагрузку /etc/rc.conf:
dhcpd_enable="YES"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="sk0" # на каком интерфейсе крутится DHCP
Рассказать: