I have just setup a hEX S and cAP ac. cAP connect to hEX via port 5 with PoE. I’m using the out the box config for the cAP with static ip defined.
I want to update the packages and firmware on the cAP. When requesting package updates I get ERROR: could not resolve dns name. I can’t ping 8.8.8.8 from the terminal on the cAP either. Assume that means no internet connection.
I’ve added DNS settings on the cAP (/IP DNS) but something else is obviously missing.
Any help appreciated.
My first guess is missing route to 0.0.0.0/0 which would be created automatically, if you use DHCP client with add-default-route=yes. With manual IP, you have to create this route by yourself. You can confirm this by reading what does the ping to 8.8.8.8 show. If it is “no route to host” then it is pretty self-explanatory
Second guess would be some misconfiguration of hEX but then, you would have no internet at any device around so i guess you would mention that.
Thanks. That would be what I need.
Can you please help with the right route settings.
Add a new route:
Dst. Address: ???
Gateway: ???
Edit: Hacking around I added:
Dst. Address: 0.0.0.0/0
Gateway:
And it now works, would that be correct?
yes, this way it is correct. Simply said, it is same as setting “gateway” on windows computer. But a bit more powerful as you can specify different gateways for different addresses, prioritize them etc etc…
There are obviously more ways to do it but you ended up with exactly same setting like DHCP client creates.
To explain what you did: You told your cAP to use HEX as gateway for every other IP (/0 range) except from your network (because your local network should already have dynamic route with distance 0).
Thank you for explaining!