LinuxSir.cn,穿越时空的Linuxsir!

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

关于DHCP服务器的问题

[复制链接]
发表于 2004-8-27 14:24:37 | 显示全部楼层 |阅读模式
最近建了一个redhatas 3.0下的dhcp服务器,配置如下:
dns-update-style interim;
ignore client-updates;

subnet 192.168.210.0 netmask 255.255.255.0 {


        option routers                        192.168.211.1;
        option subnet-mask                255.255.255.0;
               option broadcast-address                       192.168.211.255
        option nis-domain                "domain.org";
        option domain-name                "domain.org";
        option domain-name-servers                       202.107.117.11,202.107.117.12;
               range                                        192.168.211.122  192.168.211.144;

        option time-offset                -18000;        # Eastern Standard Time
#        option ntp-servers                192.168.1.1;
#        option netbios-name-servers        192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#        option netbios-node-type 2;file:/usr/share/doc/dhcp-3.0pl2/dhcpd.conf.sample

        range dynamic-bootp 192.168.211.122 192.168.211.134;
        default-lease-time 21600;
        max-lease-time 43200;

        # we want the nameserver to appear at a fixed address
        host ns {
                next-server marvin.redhat.com;
                hardware ethernet 12:34:56:78:AB:CD;
                fixed-address 207.175.42.254;
        }
但是却不好用,我在WIN2000客户端下使用自动配置IP,但用IPCONFIG查看IP却不是我range规定的。掩码也不对/?
能指点一下吗?错在哪里?
发表于 2004-8-27 15:21:18 | 显示全部楼层
你是写错了  你这样写
shared-network mynet {
subnet 192.168.210.0 netmask 255.255.255.0 {
range 192.168.211.122 192.168.211.144;
}
subnet 192.168.211.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.211.122 192.168.211.134;
default-lease-time 21600;
max-lease-time 43200;
}
}
你写错了很多的地方啊
这下试一试吧
应该可以的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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