dhcpd

| 暂无评论 | 暂无引用通告

-->

下载dhcp-3.0.5.tar.gz

tar zxvf dhcp-3.0.5.tar.gz
cd dhcp-3.0.5
./configure
make
make install

vi /etc/dhcpd.conf
touch /var/state/dhcp/dhcpd.leases

 

下面是dhcpd.conf的一个例子
[root@supersun dhcp]# cat dhcpd.conf
ddns-update-style interim;
ddns-update-style ad-hoc;
max-lease-time 86400;
default-lease-time 86400;

subnet 192.168.2.0 netmask 255.255.255.0 {
        range 192.168.2.220 192.168.2.249;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.2.255;
        option routers 192.168.2.254;
        option domain-name-servers 192.168.2.20;
        option domain-name "ns1.dareway.cn";

        host platinum {
                hardware ethernet 00:12:79:D5:53:25;
                fixed-address 192.168.2.20;
        }

#        host bchyi {
#                hardware ethernet 00:80:c8:e4:c1:e4;
#                fixed-address 172.25.39.2;
#        }

}

 

暂无引用通告

发送引用通告网址: http://supersun.info/mt/mt-tb.cgi/528
如果您想引用这篇日记到您的Blog,请复制上面的链接,放置到您发表文章时的相应界面中。

发表评论

最新资源

  • IMG_1437.JPG
  • line.png
  • bar.png
  • perl_calander.jpg

关于此日记

此日记由 supersun 发表于 2007年2月 9日 12:40

此Blog上的上一篇日记ipvs+ha

此Blog上的下一篇日记内核编译步骤

首页归档页可以看到最新的日记和所有日记。