LinuxSir.cn,穿越时空的Linuxsir!

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

dhcp3 server 出现subnet错误

[复制链接]
发表于 2004-8-12 22:00:14 | 显示全部楼层 |阅读模式
以下是错误信息和我的配置,请高手指点一下。
debian woody


samba:/etc/dhcp3# dhcpd3 restart

Internet Software Consortium DHCP Server V3.0.1rc9

Copyright 1995-2001 Internet Software Consortium.

All rights reserved.

For info, please visit http://www.isc.org/products/DHCP

Wrote 1 leases to leases file.



No subnet declaration for restart (0.0.0.0).

** Ignoring requests on restart.  If this is not what

   you want, please write a subnet declaration

   in your dhcpd.conf file for the network segment

   to which interface restart is attached. **





Not configured to listen on any interfaces!





samba:/etc/dhcp3# dhcpd3 restart eth0

Internet Software Consortium DHCP Server V3.0.1rc9

Copyright 1995-2001 Internet Software Consortium.

All rights reserved.

For info, please visit http://www.isc.org/products/DHCP

Wrote 1 leases to leases file.

Listening on LPF/eth0/00:10:5c:ac:38:5e/192.168.0.0/24

Sending on   LPF/eth0/00:10:5c:ac:38:5e/192.168.0.0/24



No subnet declaration for restart (0.0.0.0).

** Ignoring requests on restart.  If this is not what

   you want, please write a subnet declaration

   in your dhcpd.conf file for the network segment

   to which interface restart is attached. **



Sending on   Socket/fallback/fallback-net

samba:/etc/dhcp3# There's already a DHCP server running.



samba:/etc/dhcp3# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:10:5C:AC:38:5E  

          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:36073 errors:0 dropped:0 overruns:0 frame:0

          TX packets:3647 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:100

          RX bytes:2728125 (2.6 MiB)  TX bytes:356815 (348.4 KiB)

          Interrupt:10 Base address:0xe000



lo        Link encapocal Loopback  

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:254 errors:0 dropped:0 overruns:0 frame:0

          TX packets:254 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:16782 (16.3 KiB)  TX bytes:16782 (16.3 KiB)





route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

localnet        *               255.255.255.0   U     0      0        0 eth0


我的配置文件。
# dhcpd.conf

#

# Sample configuration file for ISC dhcpd

#



# option definitions common to all supported networks...

#option domain-name "bpnc.com";

#option domain-name-servers domain.bpnc.com;





#option subnet-mask 255.255.255.0;

default-lease-time 6000;

max-lease-time 72000;



subnet 192.168.0.0 netmask 255.255.255.0 {

  range 192.168.0.10  192.168.0.120;

#  option broadcast-address 192.168.0.255;

  default-lease-time 6000;

  max-lease-time 72000;

}



#host passacaglia {

#  hardware ethernet 0:0:c0:5d:bd:95;

#  filename "vmunix.passacaglia";

#  server-name "toccata.fugue.com";

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

本版积分规则

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