DHCP |
# wget dhcp-4.3.1.tar.gz # tar zxvf dhcp-4.3.1.tar.gz # cd dhcp-4.3.1 # ./configure # make # make install # cp /usr/local/etc/dhcpd.conf.example /usr/local/etc/dhcpd.conf # touch /var/db/dhcpd.leases |
option domain-name "hogehoge.nw"; option domain-name-servers 8.8.8.8; default-lease-time 600; max-lease-time 7200; authoritative; log-facility local7; subnet 192.168.100.0 netmask 255.255.255.0 { range dynamic-bootp 192.168.100.2 192.168.100.254; option broadcast-address 192.168.100.255; option routers 192.168.100.1; } host hoge { hardware ethernet 00:00:00:00:00:00; fixed-address 192.168.100.88 } |
DHCPDARGS=eth1 もしくは DHCPDARGS="eth1 eth2" |
DEVICE=eth1 TYPE=Ethernet ONBOOT=yes HWADDR=00:00:00:00:00:00 IPADDR=192.168.100.1 |
# /usr/local/sbin/dhcpd |
更新 2015.01.20