我正在尝试设置一个新的 PXE 启动设置,一切似乎都正常,但是当它尝试获取 kickstart 文件时,它显示网络不可达
当我查看 dhcp 日志时,它说网络正在损坏
Jan 18 02:39:24 rhel7m dhcpd: DHCPDISCOVER from 00:0c:29:ae:dd:83 via eno16777736
Jan 18 02:39:25 rhel7m dhcpd: DHCPOFFER on 192.168.5.10 to 00:0c:29:ae:dd:83 via eno16777736
Jan 18 02:39:26 rhel7m dhcpd: DHCPREQUEST for 192.168.5.10 (192.168.5.111) from 00:0c:29:ae:dd:83 via eno16777736
Jan 18 02:39:26 rhel7m dhcpd: DHCPACK on 192.168.5.10 to 00:0c:29:ae:dd:83 via eno16777736
Jan 18 02:39:26 rhel7m in.tftpd[2912]: tftp: client does not accept options
Jan 18 02:39:35 rhel7m dhcpd: DHCPDISCOVER from 00:0c:29:ae:dd:83 via eno16777736
Jan 18 02:39:35 rhel7m dhcpd: DHCPOFFER on 192.168.5.10 to 00:0c:29:ae:dd:83 via eno16777736
Jan 18 02:39:35 rhel7m dhcpd: DHCPREQUEST for 192.168.130.128 (192.168.130.254) from 00:0c:29:ae:dd:83 via eno16777736: wrong network.
Jan 18 02:39:35 rhel7m dhcpd: DHCPNAK on 192.168.130.128 to 00:0c:29:ae:dd:83 via eno16777736
[root@rhel7m ~]# cat /etc/dhcp/dhcpd.conf
#option domain-name-servers 145.253.2.75, 193.174.32.18;
default-lease-time 86400;
max-lease-time 604800;
authoritative;
subnet 192.168.5.0 netmask 255.255.255.0 {
range 192.168.5.10 192.168.5.49;
filename "pxelinux.0";
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.5.255;
option routers 192.168.5.111;
}
有什么想法吗?
答案1
您的环境中有多个 DHCP 服务器提供 IP 地址。
第一个 DHCP 服务器 IP = 192.168.5.111
第二个 DHCP 服务器 IP = 192.168.130.254(可能是 VMware DHCP 服务器)
请记住,第一个 DHCP 请求是 PXE DHCP 请求,第二个 DHCP 请求(启动内核/initrd 后)是普通的 DHCP 请求