DHCP
提供: Wikinote
2009年1月28日 (水) 07:28時点におけるHagio (トーク | 投稿記録)による版 (新しいページ: '== 設定 == 設定ファイルは、<code>/etc/dhcpd.conf</code> である。とりあえず動く設定は以下。 # # DHCP Server Configuration file. # see /usr/share/...')
設定
設定ファイルは、/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;
}
}