DHCP Booting Fails and enters wrong IP Address
-
I have it setup on the DHCP so that option 66 goes to 172.24.100.200 (which is the fog server) and option 67 is undionly.kpxe. The issue is that if you look at this image, it connects to the fog server with tftp it gets the correct address, but once it goes to http it gets a different one and fails. I am quite certain this needs to be the same address as the tftp. Any ideas on how to fix this?
-
@ConJon said in DHCP Booting Fails and enters wrong IP Address:
It says 172.24.113.103
This is in line with what we are seeing on the http line of the network boot. The short answer is if you fix this value in the default.ipxe file you should boot into the iPXE menu.
-
-
inspect the contents of default.ipxe file in the /tftpboot directory. My bet is that is where your random IP address is coming from. If you changed the Ip address of the fog server after it was installed you have a bit of cleanup to do.
-
@george1421 I’m sorry, I used the command ls -la /tftpboot
and the file is there, however, I am not well experienced in Linux. What is the command to open and inspect the default.ipxe file? -
@ConJon
cat /tftpboot/default.ipxe
-
@george1421 It says 172.24.113.103
I wasn’t the one who set this server up (wish I was because I was able to do it pretty easily before without issues), it was a co-worker. I’ll ask if they changed the IP but I don’t think the IP was changed after the fact. -
@ConJon Ok there is a hidden file in the /opt/fog directory. This contains the answers to the questions when the FOG server was installed. It should have also captured the IP address of the FOG server when FOG was installed. The file is called
/opt/fog/.fogsettings
The dot at the beginning of the file name makes it hidden in unix. -
@ConJon said in DHCP Booting Fails and enters wrong IP Address:
It says 172.24.113.103
This is in line with what we are seeing on the http line of the network boot. The short answer is if you fix this value in the default.ipxe file you should boot into the iPXE menu.
-
@george1421 Is there a way to open that hidden file?
-
@george1421 How do I edit the text inside the default.ipxe?
-
@ConJon A lot depends on if your FOG server has a gui installed or not, as well as what linux distribution you are using. If you have a gui then use the text editor in your gui, if command line only there is a number of text editors like
nano
andvi
, I would not suggestvi
unless you used it before because it will drive you insane if you are not careful. I’m already there sovi
is my editor of choice.To look at the hidden file use
cat
likecat /opt/fog/.fogsettings
-
@george1421 I used nano to edit that file and changed that IP. That did fix the issue.
-
@george1421 It does seem to be working now. Thanks!!!
-
@ConJon said in DHCP Booting Fails and enters wrong IP Address:
It does seem to be working now. Thanks!!!
just changing that default.ipxe doesn’t fix the problem. There are a few other places where there is hard coded IP addresses.
in the fog server OS in /opt/fog/.fogsettings file
In the web ui
FOG Configuration -> FOG Settings->Expand All (search for the old IP address)
FOG Storage->Storage Node-> DefaultFix it there and save then back to the FOG Server command prompt and then rerun the fog installer to fix the remaining bits. If you don’t do these steps you will have a painful fog experience.