Chinaunix首页 | 论坛 | 博客
  • 博客访问: 203077
  • 博文数量: 15
  • 博客积分: 2601
  • 博客等级: 少校
  • 技术积分: 430
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-22 13:16
文章分类

全部博文(15)

文章存档

2009年(12)

2008年(3)

我的朋友

分类: LINUX

2009-05-14 12:37:37

 
公司有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;
   }                                                
}

阅读(599) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~