No DHCP response (Multiple VLAN setup)
-
@mhanna Anyway, for now, to separate the vlan and allow just the FOG Server and clients to communicate initially? This really seems, to me, to indicate the fog server is inaccessible to the Client machine.
FOG, during boot, will attempt to use a curl request after obtaining the IP to validate that it can communicate with the FOG Server. It would seem, too me, that this is where the problem is occurring. It simply has no way to communicate to the FOG Server at this point.
If you’d like, you can recreate the tasking, or append isdebug=yes to the registration menu item parameters to have the FOS Engine drop into a terminal so we can run more direct tests.
-
I’ll double check all my firewall rules and routing one more time to make sure I didnt miss something there. If I find nothing I’ll do as suggested and report my finding.
-
@Tom-Elliott said in No DHCP response (Multiple VLAN setup):
isdebug=yes
Ok, I’ve verified I have no firewall rules at all in place that would block clients that are both on the 192.168.91.x subnet from communicating. Where is exactly do I add the isdebug=yes… in the boot options for the registration? If so are the options comma seperated? Once added what are my next steps?
-
@mhanna they’re space separated.
The “easiest” but applies to ALL things (menu, taskings, etc…) would be to add
isdebug=yes
to:FOG Configuration Page->FOG Settings->General Settings->FOG_KERNEL_ARGS
Save and restart your client machine and you should see it load into debug mode (after failing to do the ip stuff).
-
Ok, I am sitting at debug windows now… any steps you suggest I perform. ifconfig looks as it should. Its on the same vlan as fog server with correct netmask. No errors, no drops.
-
@mhanna Can you run:
curl -Ifso /dev/null http://fogserverip/fog/management/index.php --connect-timeout 5
Change fogserverip with your fogserver’s IP address.
What comes back?
-
The command executed. Didn’t generate anything… just ran and nothing. I’m not able to ping from the client to fog server or the other way around. Which is odd because I can ping from the fog serve to every other IP on the VLAN that I’ve attempted.
-
@mhanna But
ifconfig
returns with a valid IP Address?You could try:
udhcpd -i eth0
(I don’t remember the syntax off the top of my head sorry). -
@Tom-Elliott While I understand this will not help right now. I was able to duplicate this condition in my home dev environment last week. I was able to also correct it, it was simple and stupid. I’m sure I communicated with you via chat what I found. But at this point I can’t remember for the life of me what it was.
I was using a virtual box vm and pxe booting it going to test either uefi of dnsmasq and I got that boot loop in FOS. It was a fos thing where it would get the address and then deallocate it and then try again, eventually giving up with the message the OP posted.
-
Yes, valid IP and netmask.
-
@mhanna now if you run the curl command followed immediately by:
echo $?
it should print a number -
I added to the end of the curl command you sent me and it still just drops me back at the command line with no output.
-
@mhanna so you did:
curl request echo $?
Or you did:
curl request echo $?
The first form is what I mean sorry for the confusion.
-
Sorry, I did the second… after doing it the correct way the number 7 was returned.
-
@mhanna Well your ping command seems to indicate an issue here as well.
And for reference:
CURLE_COULDNT_CONNECT (7) Failed to connect() to host or proxy.
So both sides seem to point in the same direction. For whatever reason, this vlan is not able to locally communicate.
-
Useful for all I suppose:
Curl Error List is found here.
-
Based on what I see that would appear to be the case… except I know its not the case. When the system is pxe booting I am able to ping from the fog server to the client. While at the main fog menu I am able to ping from fog server to client. The moment I select full host registration I am no longer able to ping from fog server to client.
-
@mhanna said in No DHCP response (Multiple VLAN setup):
When the system is pxe booting I am able to ping from the fog server to the client. While at the main fog menu I am able to ping from fog server to client.
This is because the iPXE (fog menu kernel is running at this point in the booting process)
The moment I select full host registration I am no longer able to ping from fog server to client.
At this point, the FOS engine is running and not able to pick up (or think’s it can’t pick up) a dhcp address.
-
Understood. I was trying to illustrate that there did not appear to be a communication issue between devices on the vlan in question by stateing that they communicate just fine up to a certain point.
-
The question here, is more about if the client can ping the FOG Server.
When you are at the FOG PXE Menu, IP Helpers within the route help direct the traffic on where to get an IP Address. This will typically work, but requires the route be accessible by the FOG Server. The Same, however, path must be setup in reverse.
So it’s fully possible to enable a DHCP server to receive dhcp, but the client side receiving that IP still needs a way to communicate to the fog server.
You’re certain the iPXE IP Address issued is the same scope the FOS Engine is receiving?
I ask the questions because, you state the FOG Server can ping the host machine when it’s in PXE mode, but in the FOS System, it’s unable to communicate to the Client Machine anymore. This leads me to think it’s getting an IP Address that can’t route anywhere.