当前位置: 技术问答>linux和unix
No DHCPOFFERS received
来源: 互联网 发布时间:2016-04-18
本文导语: 系统: CentOS-5.2-i386 Linux-2.6.18 采用system-config-netboot配置无盘工作站 启动过程: 工作站得到IP, LOAD内核和镜像并启动 初始化 然后就有问题了: ... FS-Cache: netfs 'nfs' registered for caching. Mounting / ... /etc/sysconfig/network-sc...
系统: CentOS-5.2-i386 Linux-2.6.18
采用system-config-netboot配置无盘工作站
启动过程:
工作站得到IP,
LOAD内核和镜像并启动
初始化
然后就有问题了:
...
FS-Cache: netfs 'nfs' registered for caching.
Mounting /
...
/etc/sysconfig/network-scripts/network-functions: line 10: /etc/init.d/functions: No such file or directory
Listening on LPF/eth0/00:e0:81:55:ce:99
Sending on LPF/eth0/00:e0:81:55:ce:99
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
Unable to obtain a lease on first try. Exiting.
ERROR!dhclient failed!
kernel panic - not syncing: Attempted to kill init!
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
我机子上的相关配置是这样的:
1、无盘工作站的根目录在/diskless/i386/centos/root/;
2、文件/diskless/i386/centos/root//etc/sysconfig/network-scripts/ifcfg-eth0的内容为:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
3、另外提示信息中提到的文件都存在,即以下文件存在:
/etc/sysconfig/network-scripts/network-functions
/etc/init.d/functions
4、/etc/dhcpd.conf内容如下:
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
max-lease-time -1;
default-lease-time -1;
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option broadcast-address 192.168.0.255;
option nis-domain "cluster.com";
option domain-name "localhost";
next-server 192.168.0.1;
class "pxeclients"{
match if substring(option vendor-class-identifier,0,9)="PXEClient";
filename "linux-install/pxelinux.0";
}
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.101 192.168.0.130;
}
# we want the nameserver to appear at a fixed address
host pc02 {
hardware ethernet 00:E0:81:55:86:8F;
fixed-address 192.168.0.102;
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
先谢谢各位!
采用system-config-netboot配置无盘工作站
启动过程:
工作站得到IP,
LOAD内核和镜像并启动
初始化
然后就有问题了:
...
FS-Cache: netfs 'nfs' registered for caching.
Mounting /
...
/etc/sysconfig/network-scripts/network-functions: line 10: /etc/init.d/functions: No such file or directory
Listening on LPF/eth0/00:e0:81:55:ce:99
Sending on LPF/eth0/00:e0:81:55:ce:99
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
Unable to obtain a lease on first try. Exiting.
ERROR!dhclient failed!
kernel panic - not syncing: Attempted to kill init!
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
我机子上的相关配置是这样的:
1、无盘工作站的根目录在/diskless/i386/centos/root/;
2、文件/diskless/i386/centos/root//etc/sysconfig/network-scripts/ifcfg-eth0的内容为:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
3、另外提示信息中提到的文件都存在,即以下文件存在:
/etc/sysconfig/network-scripts/network-functions
/etc/init.d/functions
4、/etc/dhcpd.conf内容如下:
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
max-lease-time -1;
default-lease-time -1;
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option broadcast-address 192.168.0.255;
option nis-domain "cluster.com";
option domain-name "localhost";
next-server 192.168.0.1;
class "pxeclients"{
match if substring(option vendor-class-identifier,0,9)="PXEClient";
filename "linux-install/pxelinux.0";
}
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.101 192.168.0.130;
}
# we want the nameserver to appear at a fixed address
host pc02 {
hardware ethernet 00:E0:81:55:86:8F;
fixed-address 192.168.0.102;
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
先谢谢各位!
|
应该是你的dhcp服务器有问题吧
看看有什么设备或者防火墙把dhcp包拦截了
看看有什么设备或者防火墙把dhcp包拦截了
|
我有点看不懂你的问题。
你的配置文件对吗?
请检查下。
你的配置文件对吗?
请检查下。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。