LinuxSir.cn,穿越时空的Linuxsir!

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

关于dhcp不能捆绑ip的问题!

[复制链接]
发表于 2005-4-20 21:54:05 | 显示全部楼层 |阅读模式
我已经在dhcpd.conf设置了了,而且机器都能分配一个ip,但是我想捆绑ip,于是我在dhcpd.conf后面加了这几句:
host x1 {
host apex {
hardware ethernet 00:A0:78:8E:9E:AA;
fixed-address 192.168.1.4;
}
…………
host x60 {
host apex {
hardware ethernet 00:A0:78:8E:9E:d3;
fixed-address 192.168.1.60;
}
只能前6台机器捆绑了ip,其他的机器还是没有捆绑,这是为什么啊,是不是在dhcpd.conf捆绑有限定啊????
先谢谢诸位了!
发表于 2005-4-21 08:05:56 | 显示全部楼层
不会啊,我用这样的方式做的。捆绑了很多台啊。应该有30台左右吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-21 16:21:46 | 显示全部楼层
Post by szkingrose
不会啊,我用这样的方式做的。捆绑了很多台啊。应该有30台左右吧。

你能不能把你的dhcpd.conf的内容帖出来啊!!
回复 支持 反对

使用道具 举报

发表于 2005-4-21 20:45:10 | 显示全部楼层
晕!

发不了.


帖子或签名中包含了太多图片,请返回修正后继续。

图片包括用户表情,[img]标签和HTML代码中 <img>标签。 它们的使用必须服从管理员的限制。

我没有用img啊.

ddns-update-style interim;
ignore client-updates;
#allow booting;
#allow bootp;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.0.201;
        option subnet-mask              255.255.255.0;

#       option nis-domain               "domain.org";
        option domain-name              "xx.com";
        option domain-name-servers      192.168.0.1,192.168.0.2;

        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.1.1;
        option netbios-name-servers     192.168.0.1,192.168.0.2;
# --- 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.0.3 192.168.0.187;
#       filename "/linux-install/pxelinux.0";
        default-lease-time 86400;
        max-lease-time 604800;

        # We want the nameserver to appear at a fixed address

        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       host C67 {hardware ethernet 00:80:C8B:04:19;fixed-address 192.168.0.229;}
}
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-21 21:50:06 | 显示全部楼层
Post by szkingrose
晕!

发不了.


帖子或签名中包含了太多图片,请返回修正后继续。

图片包括用户表情,[img]标签和HTML代码中 <img>标签。 它们的使用必须服从管理员的限制。

我没有用img啊.

ddns-update-style interim;
ignore client-updates;
#allow booting;
#allow bootp;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.0.201;
        option subnet-mask              255.255.255.0;

#       option nis-domain               "domain.org";
        option domain-name              "xx.com";
        option domain-name-servers      192.168.0.1,192.168.0.2;

        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.1.1;
        option netbios-name-servers     192.168.0.1,192.168.0.2;
# --- 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.0.3 192.168.0.187;
#       filename "/linux-install/pxelinux.0";
        default-lease-time 86400;
        max-lease-time 604800;

        # We want the nameserver to appear at a fixed address

        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       host C67 {hardware ethernet 00:80:C8B:04:19;fixed-address 192.168.0.229;}
}


虽然还是没有找到原因,不过谢谢您了!!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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