「DHCP」の版間の差分
提供: Wikinote
(→設定) |
細 |
||
| 行3: | 行3: | ||
<code>man dhcpd.conf</code> でかなり詳しいマニュアルが読める。 | <code>man dhcpd.conf</code> でかなり詳しいマニュアルが読める。 | ||
が、相変わらず man ページはわかりにくい…。 | が、相変わらず man ページはわかりにくい…。 | ||
| − | * | + | * [http://www.linux.or.jp/JM/html/dhcp2/man5/dhcpd.conf.5.html Manpage of dhcpd.conf] |
とりあえず動く設定は以下。 | とりあえず動く設定は以下。 | ||
2009年4月4日 (土) 11:00時点における版
設定
設定ファイルは、/etc/dhcpd.conf である。
man dhcpd.conf でかなり詳しいマニュアルが読める。
が、相変わらず man ページはわかりにくい…。
とりあえず動く設定は以下。
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim; ★このあたりはよくわからないので、そのうち調査する。
ignore client-updates;
not authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
# option nis-domain "domain.org";
option domain-name "hagio.org";
option domain-name-servers eagle.asahi-net.or.jp,falcon.asahi-net.or.jp;
# option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.1.11 192.168.1.20; ★リースする範囲を指定
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
#host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;
#}
host hostname { ★MAC アドレスで IP アドレスを固定する場合
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 192.168.1.10;
}
}