「DHCP」の版間の差分
提供: Wikinote
(新しいページ: '== 設定 == 設定ファイルは、<code>/etc/dhcpd.conf</code> である。とりあえず動く設定は以下。 # # DHCP Server Configuration file. # see /usr/share/...') |
細 |
||
| 行8: | 行8: | ||
ignore client-updates; | ignore client-updates; | ||
not authoritative; | not authoritative; | ||
| − | + | ||
subnet 192.168.1.0 netmask 255.255.255.0 { | subnet 192.168.1.0 netmask 255.255.255.0 { | ||
| 行14: | 行14: | ||
option routers 192.168.1.1; | option routers 192.168.1.1; | ||
option subnet-mask 255.255.255.0; | option subnet-mask 255.255.255.0; | ||
| − | + | ||
# option nis-domain "domain.org"; | # option nis-domain "domain.org"; | ||
option domain-name "hagio.org"; | option domain-name "hagio.org"; | ||
option domain-name-servers eagle.asahi-net.or.jp,falcon.asahi-net.or.jp; | option domain-name-servers eagle.asahi-net.or.jp,falcon.asahi-net.or.jp; | ||
| − | + | ||
# option time-offset -18000; # Eastern Standard Time | # option time-offset -18000; # Eastern Standard Time | ||
# option ntp-servers 192.168.1.1; | # option ntp-servers 192.168.1.1; | ||
| 行25: | 行25: | ||
# -- you understand Netbios very well | # -- you understand Netbios very well | ||
# option netbios-node-type 2; | # option netbios-node-type 2; | ||
| − | + | ||
range dynamic-bootp 192.168.1.11 192.168.1.20; ★リースする範囲を指定 | range dynamic-bootp 192.168.1.11 192.168.1.20; ★リースする範囲を指定 | ||
default-lease-time 21600; | default-lease-time 21600; | ||
max-lease-time 43200; | max-lease-time 43200; | ||
| − | + | ||
# we want the nameserver to appear at a fixed address | # we want the nameserver to appear at a fixed address | ||
#host ns { | #host ns { | ||
2009年1月28日 (水) 07:28時点における版
設定
設定ファイルは、/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 kuro { ★MAC アドレスで IP アドレスを固定する場合
hardware ethernet 00:1b:63:bc:88:f7;
fixed-address 192.168.1.10;
}
}