I must have a static ip address.
I changed /etc/dhcpcd.conf in this way:
Code: Select all
# this stuff was here already hostname clientid persistent option rapid_commit option domain_name_servers, domain_name, domain_search, host_name option classless_static_routers option ntp_servers option interface_mtu require dhcp_server_identifier slaac private #i added this line allow hotplug eth0 # this was set up by the graphical configuration tool interface eth0 inform 192.168.115.31 static routers=192.168.115.1 static domain_name_servers=192.168.115.1 184.108.40.206 220.127.116.11 noipv6
trying to ping 18.104.22.168 gives 'network is unreachable'
WiFi is disabled
I have seen some people using a bash script that checks connection and then use ifup --force eth0, but that command yields me
ifup: unknown interface eth0
also ifconfig still shows me the static ip I assigned (on eth0), despite the pi being physically unplugged