dhcp の設定方法

cp /usr/share/doc/dhcp-3.0pl2/dhcpd.conf.sample /etc/dhcpd.conf
サンプルからコピーしてきて。。
こんな感じで修正↓

vi /etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;

subnet 192.168.10.0 netmask 255.255.255.0 {

# — default gateway
  option routers 192.168.10.1;
  option subnet-mask 255.255.255.0;

#  option nis-domain “hogehoge.net”;
  option domain-name “hogehoge.net”;
  option domain-name-servers 192.168.10.1,192.168.10.2;

  option time-offset +32400; # Japan Std 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.10.31 192.168.10.200;
  default-lease-time 86400;  # 24h
  max-lease-time 86400;  # 24h
#
#  # 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;
#  }
}

eth1のみ有効にする。

vi /etc/sysconfig/dhcpd

# Command line options here
DHCPDARGS=eth1

今使ってるNTのDHCPを止めてから。
/etc/init.d/dhcpd start
chkconfig dhcpd on
chkconfig –list dhcpd
dhcpd  0:off  1:off  2:off  3:on  4:off  5:off  6:off