I am trying to set static local ip
on ubuntu 20.04 server by disabling cloud-init,
then set my 50-cloud-init.yaml
This is on a Raspberry Pi 4 with wired connection.
network: ethernets: eth0: addresses: [192.168.1.11/24] dhcp4: false gateway4: 192.168.1.1 nameservers: addresses: [220.127.116.11, 18.104.22.168] version: 2
executed netplan generate and then netplan try.
It works, and successfully set static local IP.
However, this causes "sleeps".
When i ssh to it, then leave it for a moment, input would take seconds to respond again.
This is not only on SSH, i also ran a TCP server and same thing happens, it seems to sleep if left for a while.
It only happens after setting static ip.
Can anyone suggest what is going on?