Unable to register host. DHCP failed or we were unable to access....
-
Hi all.
I am getting the below problem when trying to register devices. Not sure where to even begin on this as I have no idea what 192.168.0.3 is, as it is not an address being used to my knowledge at least, I presume this is just a basic configuration problem but I installed fog a few days ago and am trying it out so am mostly unfamiliar with the platform.My current setup is Poweredge R630, 24port HP Procurve and an old hp desktop running OPNsense.
Any advice is appreciated.
"Saving 256 bits of creditable seed for next boot Starting syslogd: OK Starting klogd: OK Running sysctl: OR Populating dev using udeu: done Starting haveged: haveged: connand socket is listening at fd 3 OK Starting expos13/03 interface and waiting for the link to come up udhcpc: started, v1.37.0 udhcpc: broadcasting discover udhcpc: broadcasting select for 192.168.1.14, server 192.168.1.148 udhcpc: lease of 192.168.1.14 obtained from 192.168.1.148, lease time 19536 adding dns 127.0.0.53 Either DHCP failed or we were unable to access https://192.168.0.3/fog//index.php for connection testing. adhcpc: started, v1.37.0 dhcpc: broadcasting discover adhcpc: broadcasting select for 192.168.1.14, server 192.168.1.148 dhcpc: lease of 192.168.1.14 obtained from 192.168.1.148, lease time 19535 adding dus 127.0.0.53 Either DHCP failed or we were unable to access https://192.168.0.3/fog//index.php for connection testing. dicpc: started, v1.37.0 dhcpc: broadcasting discover dhcpc: broadcasting select for 192.168.1.14, server 192.168.1.148 dhcpc: lease of 192.168.1.14 obtained from 192.168.1.148, lease time 19534 adding dus 127.0.0.53 Either DHCP failed or we were unable to access https://192.168.0.3/fog//index.php for connection testing. No DHCP response on interface empos13f0u3, skipping it. Failed to get an IP via DHCP? Tried on interface(s): enp0s13f0u3 Please check your network setup and try again!" -
@Mr_K This seems to be a routing issue:
Your fog server lives at 192.168.0.3
Your machine is getting an IP of 192.168.1.148
Your router providing 192.168.1.X is likely unable to route 192.168.1.X -> 192.168.0.X
-
@Mr_K
Thanks for the help Tom. You got me pointed in the right direction. Everything is working now.I did a complete Ubnutu and fog fresh install to make sure I wasn’t missing anything and noticed during the installation it was grabbing my WAN IP as the fog server IP and then somehow changing the fog server IP to my LAN IP. So when I clicked on the link from the terminal after it had finished it was 192.168.1.148 however everything was setup “certs, storage Ipxe” ect as my WAN IP 20.21.X.X.
All I had to do was just change the fog settings so the IP’s matched re ran the installer to grab the new files and everything is running perfect now.