Octoprint connects to router but not internet

What is the problem?

I just set up octoprint on a raspberry pi connected to my printer by USB. Things generally seem good - I can connect to the device and see through the connected camera via my router. However, I can't connect to the internet. If I SSH into the pi, I can't ping google and on the web interface the connectivity test cannot reach the server. Based on these observations, I assume that it's connected to the router fine but can't then connect to the internet. Other devices connected to the same network on this router can access the internet without issue. I'm not very knowledgeable on network stuff so I'm trying my hardest to figure out the problem but I'm not making much progress - does anyone have any ideas? I tried to add my ifconfig log but this site thought it had a bunch of links and wouldnt let a new user submit.

What did you already try to solve it?

Router and device restarts, testing described above

Logs (syslog, dmesg, ... no logs, no support)

Additional information about your network (Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ...)

On the Pi, run:

ifconfig
route

Copy/paste the output here, select it and then press the button above this that looks like </> to format the text as code. Here is my example:

...
# The wifi connection includes RUNNING and the RX/TX errors are zero
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.20.30.35  netmask 255.255.255.0  broadcast 10.20.30.255
        inet6 2601:648:8701:18c0:f2f4:f036:7ccb:830c  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::cbcb:6e9a:e7da:a26f  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:08:84:ad  txqueuelen 1000  (Ethernet)
        RX packets 573  bytes 113104 (110.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 379  bytes 53862 (52.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.20.30.1      0.0.0.0         UG    303    0        0 wlan0
10.20.30.0      0.0.0.0         255.255.255.0   U     303    0        0 wlan0

In my case, the route command suggests that my default route points to my .1—addressed router and that it's attached to my wifi connection. I confirm that the netmask looks reasonable for this range of addresses.