Thank you @nmcc, I am connected now. The issue is the DNS setting (or, more specifically, the lack of DNS setting).
There are five lines at the bottom of the dhcpcd.conf file which say:
# WARNING:Do not delete or modify the following 5 lines!!!
(the xxx’s are mine!)
The reason you can’t edit these lines manually is that they are edited automatically by the
gateway-config utility which is supplied as part of the SD card image (when you select option 6):
The problem seems to be that when you use Option 6 it sets
dhcpcd.conf but does not set the dns address (
domain_name_servers). There is nothing else in the
dhcpcd.conf file which sets
domain_name_servers either, so I assume all dns requests are unresolved, hence my ability to ping 188.8.131.52 and 184.108.40.206 but not google.com or bbc.co.uk.
To fix this I have added a line earlier in the
dhcpcd.conf file which sets the dns address to the IP address of another Pi in my network, which is running pi-hole:
I assume I could equally set this to 220.127.116.11 or 18.104.22.168 or any other public dns server.
As soon as I did that and rebooted the RAK2287, the TTN page reported “Connected” for my gateway almost immediately.
I have used my node to send a message successfully through my RAK2287 and I can see it on my TTN console for both my gateway and my node.
Thanks to you all for you help. Have RAK forgotten about the dns server in their SD card image and