Eu resolvi o problema
Eu removi o ip como este
sudo nano /etc/dhcpcd.conf
interface wlan0
static ip_address=10.0.20.1/24
static routers=10.0.20.0
E eu dei ip para interfaces como esta.
sudo nano /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto wlan0
iface wlan0 inet static
address 10.0.20.1
netmask 255.255.255.0
auto eth0
iface eth0 inet dhcp