- 论坛徽章:
- 0
|
我在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配置文件如下:
- ddns-update-style interim;
- ignore client-updates;
- option domain-name "test.com";
- subnet 10.10.10.0 netmask 255.255.255.0 {
- option routers 10.10.10.1;
- option subnet-mask 255.255.255.0;
- range dynamic-bootp 10.10.10.10 10.10.10.100;
- default-lease-time 21600;
- max-lease-time 43200;
- }
- subnet 10.10.11.0 netmask 255.255.255.0 {
- option routers 10.10.11.1;
- option subnet-mask 255.255.255.0;
- range dynamic-bootp 10.10.11.4 10.10.11.100;
- default-lease-time 21600;
- max-lease-time 43200;
- }
复制代码
sysctl.conf也配置了:
- [root@CentOS ~]#sysctl -p
- net.ipv4.ip_forward = 1
- net.ipv4.conf.default.rp_filter = 1
- net.ipv4.conf.default.accept_source_route = 0
- kernel.sysrq = 0
- kernel.core_uses_pid = 1
- net.ipv4.tcp_syncookies = 1
- kernel.msgmnb = 65536
- kernel.msgmax = 65536
- kernel.shmmax = 4294967295
- kernel.shmall = 268435456
- [root@CentOS ~]#
复制代码
执行dhcpd的结果:
- [root@CentOS ~]#dhcpd
- Internet Systems Consortium DHCP Server V3.0.5-RedHat
- Copyright 2004-2006 Internet Systems Consortium.
- All rights reserved.
- For info, please visit http://www.isc.org/sw/dhcp/
- Wrote 6 leases to leases file.
- No subnet declaration for eth2 (192.168.137.3).
- ** Ignoring requests on eth2. If this is not what
- you want, please write a subnet declaration
- in your dhcpd.conf file for the network segment
- to which interface eth2 is attached. **
- Listening on LPF/eth0/00:0c:29:0f:67:7a/10.10.10/24
- Sending on LPF/eth0/00:0c:29:0f:67:7a/10.10.10/24
- Listening on LPF/eth1/00:0c:29:0f:67:84/10.10.11/24
- Sending on LPF/eth1/00:0c:29:0f:67:84/10.10.11/24
- Sending on Socket/fallback/fallback-net
- [root@CentOS ~]#There's already a DHCP server running.
- 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.
复制代码
请各位大哥大姐帮忙看看这是怎么回事?哪里出错了?
|
|