Quote:
Originally Posted by brick2
Removing the switch was one of the first things I tried, didn t really help.
Any other suggestions?
|
Maybe I missed it but did you describe exactly what happens when you attempt to PXE boot the client?
Does it pick up an IP address or not? If it times out it could either be:
1. The device is on a network that cannot reach the "next-server" - e.g., the device is on a logical VLAN that is separated from the network the PXE server is on.
2. It has no DHCP relay (aka "ip helper" in Cisco parlance) or it has no proper gateway into other networks, including the network with the PXE server.
If you're on a completely flat network with a "dumb" (i.e., unmanaged) switch in place numbers 1 and 2 are not the culprits as the end device is on the same L2 network as the PXE server's DHCP and TFTP server. If it is a completely flat network and you definitely know the DHCP and TFTP servers are running on the same network make sure your IP network setup on the PXE/DHCP/TFTP server is correct (i.e., correct in the DHCP scope vs. the local IP configuration of the PXE server).
If it STILL never picks up an IP address watch the logs of the DHCP server (probably /var/log/messages) right as the client attempts to boot. The ISC DHCP server may reveal the reason(s) why it's not responding as you expect it to. Could come down to a configuration issue there. I did notice there is no "option routers" configuration option set in the DHCP scope in your example. IIRC that means the DHCP will send the client the IP of the DHCP server itself by default as the gateway. Unless the PXE/DHCP server actually is the router for your network, this is not desirable. If you have a network that is beyond the scope of a single subnet with a true router - even a small one - handling routing of packets between logical layer-2 networks then having the DHCP server acting as the gateway will probably send the packets off into the ether (again UNLESS the DHCP server is itself that router).
Explicitly setting the router/gateway in the DHCP configuration is generally a best practice.
If it does pick up an IP address does it time out on the TFTP receipt? The PXE client can still pick up the IP address - i.e., it's finding the "next-server" response from the DHCP server appropriately - but never boot because the TFTP server isn't working for whatever reason. If it's not picking up the bootstrap file (pxelinux.0 in this case) via TFTP then confirm the firewall isn't blocking, that port 69 on tcp/udp both is open (e.g., netstat -an | grep -i 69) and the TFTP server responds when the client attempts to download the file. You also may want to disable selinux "just in case."