「DHCP」の版間の差分
提供: Wikinote
細 |
細 (→設定) |
||
| 行36: | 行36: | ||
# fixed-address 207.175.42.254; | # fixed-address 207.175.42.254; | ||
#} | #} | ||
| − | host | + | host hostname { ★MAC アドレスで IP アドレスを固定する場合 |
| − | hardware ethernet | + | hardware ethernet xx:xx:xx:xx:xx:xx; |
fixed-address 192.168.1.10; | fixed-address 192.168.1.10; | ||
} | } | ||
} | } | ||
2009年2月3日 (火) 23:16時点における版
設定
設定ファイルは、/etc/dhcpd.conf である。とりあえず動く設定は以下。
#
# 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;
}
}