A
A
AlizonJohn2017-09-19 09:24:09
Debian
AlizonJohn, 2017-09-19 09:24:09

How to connect to Debian via LAN and Internet via WIFI?

Hello! The task is this: there is a RaspberryPi 2 (a VNC server is enabled on the raspberry) and a laptop. They are directly connected by a network cable (laptop in raspberry, no router). In the PC, I configured that the network card would be given IP 192.168.10.11. On Raspberry, I added the following settings to the dhcpcd.conf file:
interface eth0
static ip_address=192.168.10.12/24
static routers=192.168.10.12 static domain_name_servers =
192.168.10.1 8.8.8.8
Wifi is working. If I plug the cable into the laptop and raspberry - locale is created, there is access from the laptop to raspberry via VNC. But! Internet stops working on raspberry. Wifi label shows connected but no internet.
As soon as I pull out the cable from the raspberry, the Internet immediately works. How to fix it?
PS: I just need to connect to the raspberry via VNC and access the Internet from it. Internet access is not required on the laptop.
Thanks for answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3vi1_0n3, 2017-09-19
@AlizonJohn

Perhaps this is the line:
You need to check the routes with the route command, see the priorities and configure the routing correctly. In particular default gateway. You can add the output of route to the question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question