D
D
Danil Tunev2020-12-02 11:07:14
Raspberry Pi
Danil Tunev, 2020-12-02 11:07:14

How to setup network interface on raspberry pi?

Hello! It works from the router and directly connects to the Internet cable too. But when connecting via a switch to another computer with this configuration /etc/network/interfaces:

auto eth0
iface eth0 inet static
address ...
gateway ...
netmask ...

systectl restart networking.service gives an error (I did not write numerical values, because they work on another machine), the error disappears if I comment out the auto eth0 line. In general, when entering the command: ip a, I noticed another wlan0 interface, as I understand it, this is a local network? But when replacing eth0 with wlan0, the error does not disappear. Who can face such a problem? Tell!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drno, 2020-12-02
@Drno

You would google how to set up a network on Linux))
wlan are wifi interfaces
I understand correctly - you connect the patch cord from the raspberry directly to the PC?
The settings, as I understand it, are manually driven in, and on the PC too?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question