LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 896|回复: 6

redhat9.0 dhcp的简单配置,谁帮我.

[复制链接]
发表于 2004-7-25 12:55:43 | 显示全部楼层 |阅读模式
前几天我在试这个dhcp配置,怎么老出错.因今天休息错误休息没法贴上,我的要求是这样的
有一块开板子 MAC:00:01:23:45:67:00
我linux机器的IP为192.168.0.150

现我想将给那块板子分配一个IP192.168.0.152
不知该怎么配,我试发好几次都不行,那个/etc/dhcpd.conf文件我一直找不到,后来自已建了一个,不知这有没有影响.
发表于 2004-7-25 13:20:06 | 显示全部楼层
发表于 2004-7-25 19:08:33 | 显示全部楼层
 楼主| 发表于 2004-7-25 21:06:15 | 显示全部楼层

还是不对

default-lease-time 1200;
            max-lease-time 9200;
            option subnet-mask 255.255.255.0;
            option broadcast-address 192.168.0.255;
            option routers 192.168.0.1;
            option domain-name-servers 192.168.0.150,192.168.0.120;
            option domain-name "mydomain.org";

            subnet 192.168.0.0 netmask 255.255.255.0 {
            range 192.168.0.155 192.168.0.160;
            }            

            host haagen {
              hardware ethernet 00:01:23:45:67:00;
              fixed-address 192.168.0.152;            
            }




dhcpd
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

** You must add a ddns-update-style statement to /etc/dhcpd.conf.
   To get the same behaviour as in 3.0b2pl11 and previous
   versions, add a line that says "ddns-update-style ad-hoc;"
   Please read the dhcpd.conf manual page for more information. **

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
[root@phm etc]#
 楼主| 发表于 2004-7-25 21:13:47 | 显示全部楼层
ddns-update-style ad-hoc;

这个有什么用呀。为什么要
发表于 2004-7-26 10:44:49 | 显示全部楼层
host ljw {hardware ethernet 00:E0:4C:5F:57:7F;fixed-address 192.168.0.186;}
        host C0  {hardware ethernet 00:50:FC:56:0F:F5;fixed-address 192.168.0.187;}
        host C1  {hardware ethernet 00:50:FC:47:8F:F5;fixed-address 192.168.0.188;}
        host C2  {hardware ethernet 00:50:BA:CE:4C:AC;fixed-address 192.168.0.189;}
        host C3  {hardware ethernet 00:50:BA0:AD8;fixed-address 192.168.0.190;}
        host C4  {hardware ethernet 00:00:B4:82D:24;fixed-address 192.168.0.191;}
        host C5  {hardware ethernet 00:00:21:F55:F6;fixed-address 192.168.0.192;}
        host C6  {hardware ethernet 00:00:21:E0:1A:28;fixed-address 192.168.0.193;}
        host C7  {hardware ethernet 00:80:C8B:7A6;fixed-address 192.168.0.194;}
        host C8  {hardware ethernet 00:30:18:45:73:90;fixed-address 192.168.0.195;}
        host C9  {hardware ethernet 00:50:BA:10:CC:50;fixed-address 192.168.0.196;}
        host C10 {hardware ethernet 00:80:C8B:8D:92;fixed-address 192.168.0.197;}
        host C11 {hardware ethernet 00:E0:4C:55:F8:42;fixed-address 192.168.0.198;}
        host C12 {hardware ethernet 00:80:AD:83:19:95;fixed-address 192.168.0.199;}
        host C13 {hardware ethernet 00:80:C8B:A0:8D;fixed-address 192.168.0.200;}
 楼主| 发表于 2004-7-26 12:53:10 | 显示全部楼层

谢谢1

谢谢1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表