Score:0

I can't use wifi and Ethernet at the same time

sa flag

I have a problem with my Wifi and Ethernet. Let me explain what's happening.

I'm using a laptop with Ubuntu 20.04. I'm connected to the Wifi with the default configuration (right now, it's 192.168.222.107). That works without problem, I can connect to the internet and some partners that are in the same network are able to ping me.

I'm also connected via network with others laptops, using a switch. I have enabled a static IP in the network config, because we're using VirtualBox and I need a special IP-range (192.168.50.x) to work with them (we're using Ubuntu Server in the VirtualBox and we're setting up some servers). I can ping the servers and others computers using 192.168.0.x.

The problem is when I have both connections at the same time. I get disconnected from the internet. Ubuntu shows as if I'm already connected to the wifi, but with a "?" in it, and I can't visit any website. I'm also unable to install anything using "sudo apt install".

I've bean searching for a while, and I found a post here about someone having a similar problem ([this one][1]). I saw the answer, so I decided to ping 8.8.8.8 (Google's DNS akaik), and I was able to do it. But I couldn't ping google.com.

The answer said that I should install dnsmasq, so I found another useful answer ([this one][2]). I did both things, but nothing changed.

I need to use both connections at the same time, but it looks as if it's impossible. Hope anyone here can help me, and if you need more info just tell me! Thanks. [1]: Problems with ethernet and wifi [2]: https://askubuntu.com/a/1243881

FedKad avatar
cn flag
Possibly a DNS problem. Try to set your DNS servers correctly on your WiFi connection and the Ethernet connection.
sa flag
Thanks! It resulted that there was a DNS conflict. The DNS server IP of the network was the same IP that we were using for one of out VirtualBox's servers. We changed of IP and everything worked. Thanks!
Score:0
sa flag

Alright, finally I found the problem.

The VirtualBox server's IP (50.4) was the same one as the DNS server of my network. That was causing a DNS conflict, so I wasn't able to browse throw the internet. I changed the IP range (55.4) and now everything works fine.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.