免费注册 查看新帖 |

Chinaunix

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

关于Linux DHCP 多作用域问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-01-08 18:16 |只看该作者 |倒序浏览
我在vmware8里面装了一台CentOS 5.5,WinXP_1和WinXP_2.

Cent OS 中设置了三张网卡,分三个网段:10.10.10.1/24 (Vmnet2) ,
                                                       10.10.11.1/24 (Vmnet3),
                                                       192.168.137.1/24 (Brided) ,方便在windows 7 中使用SecureCRT
搭建了DHCP服务,以10.10.10.1、24和10.10.11.1/24配置了多作用域。服务启动成功,WinXP_1得到10.10.10.99,WinXP_2得到10.10.11.100。
但是WinXP_1与WinXP_2之间不能Ping 通,linux主机Ping 不通WinXP_1和WinXP_2,但是两台客户机能ping通主机。

DHCP配置文件如下:

  1. ddns-update-style interim;
  2. ignore client-updates;
  3. option domain-name      "test.com";

  4. subnet 10.10.10.0 netmask 255.255.255.0 {


  5.         option routers                  10.10.10.1;
  6.         option subnet-mask              255.255.255.0;

  7.         range dynamic-bootp 10.10.10.10 10.10.10.100;
  8.         default-lease-time 21600;
  9.         max-lease-time 43200;

  10.         }



  11. subnet 10.10.11.0 netmask 255.255.255.0 {


  12.         option routers                  10.10.11.1;
  13.         option subnet-mask              255.255.255.0;


  14.         range dynamic-bootp 10.10.11.4 10.10.11.100;
  15.         default-lease-time 21600;
  16.         max-lease-time 43200;

  17.         }
复制代码


sysctl.conf也配置了:
  1. [root@CentOS ~]#sysctl -p
  2. net.ipv4.ip_forward = 1
  3. net.ipv4.conf.default.rp_filter = 1
  4. net.ipv4.conf.default.accept_source_route = 0
  5. kernel.sysrq = 0
  6. kernel.core_uses_pid = 1
  7. net.ipv4.tcp_syncookies = 1
  8. kernel.msgmnb = 65536
  9. kernel.msgmax = 65536
  10. kernel.shmmax = 4294967295
  11. kernel.shmall = 268435456
  12. [root@CentOS ~]#
复制代码



执行dhcpd的结果:
  1. [root@CentOS ~]#dhcpd
  2. Internet Systems Consortium DHCP Server V3.0.5-RedHat
  3. Copyright 2004-2006 Internet Systems Consortium.
  4. All rights reserved.
  5. For info, please visit http://www.isc.org/sw/dhcp/
  6. Wrote 6 leases to leases file.

  7. No subnet declaration for eth2 (192.168.137.3).
  8. ** Ignoring requests on eth2.  If this is not what
  9.    you want, please write a subnet declaration
  10.    in your dhcpd.conf file for the network segment
  11.    to which interface eth2 is attached. **

  12. Listening on LPF/eth0/00:0c:29:0f:67:7a/10.10.10/24
  13. Sending on   LPF/eth0/00:0c:29:0f:67:7a/10.10.10/24
  14. Listening on LPF/eth1/00:0c:29:0f:67:84/10.10.11/24
  15. Sending on   LPF/eth1/00:0c:29:0f:67:84/10.10.11/24
  16. Sending on   Socket/fallback/fallback-net
  17. [root@CentOS ~]#There's already a DHCP server running.

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

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

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

  30. exiting.
复制代码


请各位大哥大姐帮忙看看这是怎么回事?哪里出错了?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2012-01-08 21:00 |只看该作者
linuxping不通Xp,可能是客户端禁止ping了
Xp之间ping不通,检查下linux是否开启ip转发了

论坛徽章:
0
3 [报告]
发表于 2012-01-08 21:02 |只看该作者
回复 2# chenyx


    谢谢。已经解决了,是XP防火墙打开了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP