We get lots and lots and lots of questions like this:
i unable to ping to RPi or SSH using Ubuntu Server 20.04. over wifi, but router assign ip to wlan0. when i plug the RPi with ethernet then wifi-ip is reachable for ping & ssh.
How to resolve this issue? (i want RPi shall respond over wifi without plugin to ethernet)
Please don't go and attack this; it's been closed and presumably the OP either solved the problem or asked again, hopefully taking my comment there into account:
Welcome. We need to be sure that what you are saying is correct. Paste the output of
ip routeinto your question when using wifi, and when using ethernet.
ip addr and
ip route) are two things it is probably worthwhile to see for almost any "networking doesn't work properly" question. A couple of other things would be
ip addr. The former, though, is somewhat distro dependent.1
So my goal with this question is to get answers that are distro/OS specific; if you are an Arch user reading this and you feel there are some differences between that and Raspbian/RpiOS, please write it up here -- there does not need to be one ginormous answer to rule-them-all, a collection of targeted, succinct ones would be more useful.
These answers, or the whole Q&A, can then be linked in comments to questions like the one above. This would hopefully save everyone some time, and they could also be linked in expanded tag info (eg., wifi).
Before that happens I will re-vamp this question to make it more on point for that audience (people who need the answers as opposed to those who can write them).
- And all of them are linux specific.