You are not logged in.

#1 2016-08-06 10:02:05

emergence
Member
Registered: 2016-08-06
Posts: 1

Connecting RPi via Ethernet to Laptop

Hi everybody,

I recently switched to Arch from XUbuntu, and now I'm having troubles setting up my enp0s25 so that I can ssh into the connected Raspberry Pi. I know that the connection works in principle, because if I assign a static ip adress to the Raspberry Pi, I can ssh into it via "crossover" link. But then the RPi has no internet connection. I set the gateway, tried to configure a network bridge on my laptop, and so on, but the thing is there must be a way without changing any configuration on the RPi, because in Ubuntu the whole configuration was basically a checkbox to share my internet connection over the ethernet interface, and it got 10.42.0.77, and everything worked.

If I now plug the RPi directly in my Router, it gets an ip and everything, but I'm kind of in the dark how to set up my laptop interface to enable the RPi to automatically connect to the network via my laptop.

net.ipv4.ip_forward = 1
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 18:5e:0f:39:d8:1b brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.42/24 brd 192.168.178.255 scope global dynamic wlp4s0
       valid_lft 856212sec preferred_lft 856212sec
    inet6 fe80::1a5e:fff:fe39:d81b/64 scope link 
       valid_lft forever preferred_lft forever
3: enp0s25: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 50:7b:9d:67:e2:c5 brd ff:ff:ff:ff:ff:ff

Adding an address to enp0s25 and then nmap -sP over the subnet doesn't show anything...

edit: I'm not sure, maybe I should have posted this in the newbie corner, but I believe I have a good understanding of the network basics and I'm curious how this stuff works in practice...

Last edited by emergence (2016-08-06 10:18:26)

Offline

#2 2016-08-06 14:20:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,769

Re: Connecting RPi via Ethernet to Laptop

Welcome to the Arch Linux forums.

Have you seen these articles?
https://wiki.archlinux.org/index.php/Internet_sharing
https://wiki.archlinux.org/index.php/Router

The second may be a bit of an overkill for your problem.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB