#StackBounty: #networking #raspberry-pi #netplan When setting netplan static ip, connection seems to sleep if left for a while

Bounty: 150

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.

            addresses: []
            dhcp4: false
                addresses: [,]
    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?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.