免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1835 | 回复: 2
打印 上一主题 下一主题

请教关于DHCP的问题 [复制链接]

nemopang 该用户已被删除
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-16 22:42 |只看该作者 |倒序浏览
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
2 [报告]
发表于 2008-03-16 22:58 |只看该作者
option routers                  192.168.1.1;


设置在上面这个地方: option routers                  192.168.1.33;


文件名是dhcpd.conf

论坛徽章:
4
IT运维版块每日发帖之星
日期:2015-09-01 06:20:00IT运维版块每日发帖之星
日期:2015-10-09 06:20:00操作系统版块每日发帖之星
日期:2015-10-20 06:20:00IT运维版块每日发帖之星
日期:2015-11-03 06:20:00
3 [报告]
发表于 2008-03-17 09:56 |只看该作者
[core]
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {                 //这是网络地址,这个网络最大有254台机器
        range 192.168.1.10 192.168.1.30;                          //IP地址可分配的范围
# --- default gateway
        option routers                  192.168.1.33;   //这里就是让你选择路由
        option subnet-mask              255.255.255.0;  //这里让你选择网络掩码

#       option nis-domain               "local.com";
        option domain-name              "local.com";  //选择DNS
        option domain-name-servers      202.96.128.86,202.96.134.133;
        option broadcast-address        192.168.1.255;

        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;

#       range dynamic-bootp 192.168.1.2  192.168.1.254;
        default-lease-time 86400;
        max-lease-time 172800;

        # we want the nameserver to appear at a fixed address
        host pc {
                next-server www.163.com;
                hardware ethernet 12 34 56 78 9A BC;
                fixed-address 192.168.1.28;
        }
}
[/core]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP