I've just opened the pi for the first time, with Raspbian Buster Lite. When I type
route -n I get:
Destination Gateway Genmask Flags Metric Ref Use Iface
I would expect to see the gateway ip here.
If if try
sudo route add default gw 192.168.1.1 I get
SIOCADDRT: Network is unreachable.
Some context: I'm trying to ssh into the pi, without success so far even though ssh is enabled.
getting a ssh: connect to host xxx.xxx.x.xxx port 22: Connection refused)