Chinaunix

标题: DHCP简单应用案例的配置文件 [打印本页]

作者: Aramis    时间: 2009-05-14 12:37
标题: DHCP简单应用案例的配置文件

公司有200台机器,准备采用192.168.0.0/24网段使用,用linux主机来配置一台DHCP服务器
要求如下
路由器IP地址为192.168.0.1
DNS服务器地址为192.168.0.2
DHCP服务器为192.168.0.3
其他人使用192.168.0.30-192.168.0.254,子网掩码为255.255.255.0
经理的IP为192.168.0.88,副经理的IP为192.168.0.66

配置文件如下
ddns-update-style none;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0    {
            option   routers 192.168.0.1;
            option   subnet-mask 255.255.255.0;
            option    domain-name-servers 192.168.0.2;
range   dynamic-bootp 192.168.0.30 192.168.0.254;
            default-lease-time   43200;
             max-lease-time        86400;

           host boss                           {
                         hardware ethernet    x:x:x:x:x:x;
                          fixed-address 192.168.0.88;
    }                                                   
           host boss1                         {
                          hardware ethernet   x:x:x:x:x:x;
                           fixed-address 192.168.0.66;
   }                                                
}



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17896/showart_1928243.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2