EHOSTUNREACH after changing ips

Hi,

I'm setting up 2 x pi's to read values from RS232 scales.
I've used the waveshare RS232 to ethernet converters
https://www.waveshare.com/rs232-485-to-eth.htm
And followed the this link to get the ethernet and wifi working
Easy Raspberry Pi WiFi Bridge - Pi My Life Up
All this worked well and was saving the data into influx and I could access it from Grafana on another machine.
I have to have a static IP to maintain the links between the devices and that worked yesterday but today I could see the pi's on the router devices but could not access node red on the browser or via SSH.
I then changed it back to a dynamic IP and bound the IPs from the router.
After doing that I cant install nodes from the palette, previously installed nodes such as influx returns errors and I cant even update the pi in the cli.
I have rebooted several times and unbound the IPs from the router but still the same problem.

It is difficult to make suggestions based on such a vague description. Focus on one problem and work out what is going on. For example you you can't update from the cli. What sort of update is that? Show us what happens when you try. Copy/paste the result please, not a screen shot.

Have you restarted your router modem?

Can you check ping from PI to other local IP addresses?

Can you check ping from PI to 8.8.8.8?

Can you check ping from PI to www.npmjs.com?

What exactly does CLI show when you try to perform updates?

Hi Steve,
I can ping from other devices also i can access node-red via 192.168.8.106:1880
It seems the LAN is working but no internet connection to the PI's
I'm currently replying to you from the network so the internet is good.
I have rebooted the router and the pi shows its connected to the network
This is what I get when running Sudo apt-get update

Cannot initiate the connection to raspbian.raspberrypi.org:80 (2a00:1098:0:80: 1000:75:0:3). - connect (101: Network is unreachable) Could not connect to raspb ian.raspberrypi.org:80 (93.93.128.193). - connect (113: No route to host)
Err:2 https://packages.grafana.com/oss/deb stable InRelease
Cannot initiate the connection to packages.grafana.com:443 (2a04:4e42:4::729). - connect (101: Network is unreachable) Could not connect to packages.grafana.c om:443 (151.101.18.217). - connect (113: No route to host)
Err:3 https://repos.influxdata.com/debian buster InRelease
Cannot initiate the connection to repos.influxdata.com:443 (2600:9000:219c:b80 0:7:7790:e740:93a1). - connect (101: Network is unreachable) Cannot initiate the connection to repos.influxdata.com:443 (2600:9000:219c:c400:7:7790:e740:93a1).

pi@raspberrypi:~ $ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.0.10 icmp_seq=1 Destination Host Unreachable
From 192.168.0.10 icmp_seq=2 Destination Host Unreachable
From 192.168.0.10 icmp_seq=3 Destination Host Unreachable
From 192.168.0.10 icmp_seq=4 Destination Host Unreachable
From 192.168.0.10 icmp_seq=5 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
9 packets transmitted, 0 received, +5 errors, 100% packet loss, time 300ms
pipe 4


2021-04-09T07:22:13.277Z Install : node-red-contrib-telegrambot 9.2.1

2021-04-09T04:35:43.326Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-telegrambot@9.2.1
2021-04-09T04:35:48.336Z [err] npm
2021-04-09T04:35:48.337Z [err]
2021-04-09T04:35:48.337Z [err] ERR! code
2021-04-09T04:35:48.337Z [err] EHOSTUNREACH
2021-04-09T04:35:48.337Z [err] npm
2021-04-09T04:35:48.337Z [err]
2021-04-09T04:35:48.337Z [err] ERR!
2021-04-09T04:35:48.338Z [err] errno
2021-04-09T04:35:48.338Z [err] EHOSTUNREACH
2021-04-09T04:35:48.363Z [err] npm
2021-04-09T04:35:48.363Z [err] ERR! request to https://registry.npmjs.org/node-red-contrib-telegrambot failed, reason: connect EHOSTUNREACH 104.16.23.35:443
2021-04-09T04:35:48.378Z [err]
2021-04-09T04:35:48.378Z [err] npm
2021-04-09T04:35:48.378Z [err] ERR!
2021-04-09T04:35:48.378Z [err] A complete log of this run can be found in:
2021-04-09T04:35:48.378Z [err] npm
2021-04-09T04:35:48.378Z [err] ERR!
2021-04-09T04:35:48.378Z [err] /home/pi/.npm/_logs/2021-04-09T04_35_48_366Z-debug.log
2021-04-09T04:35:48.392Z rc=1

I've seen something similar - was an issue related to ipv6. Try temporarily disabling IPv6

To disable IPv6 input 3 commands...

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

You can check if it worked using...

ip a

(uou should not see any IPv6 entries)