Page 1 of 1

Share Laptop Internet through ethernet

Posted: Sun Aug 27, 2017 12:28 pm
by GPereira
I have Arch Linux on my laptop and I would like to share its internet connection through my raspberry which will be under water.
I've assigned a static IP address to both my laptop and raspberry's ethernet interface, this way I don't need a dhcp server, editing my /etc/dhcpcd.conf file with:

interface enxb827eba5a5d4
static ip_address=192.168.0.2/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 8.8.8.8

Next I've allowed ip forwarding on my laptop using: sysctl net.ipv4.ip_forward=1

So my laptop's ip is: 192.168.0.1
Raspberry's: 192.168.0.2

What am I missing out?

Re: Share Laptop Internet through ethernet

Posted: Sun Aug 27, 2017 12:31 pm
by DirkS

Re: Share Laptop Internet through ethernet

Posted: Sun Aug 27, 2017 12:33 pm
by GPereira
I've read that to no use, can you explain to me what do I need more? (I've further detailed my post, please read again)

Re: Share Laptop Internet through ethernet

Posted: Sat Sep 02, 2017 1:03 am
by cydz
GPereira wrote:
Sun Aug 27, 2017 12:33 pm
I've read that to no use, can you explain to me what do I need more? (I've further detailed my post, please read again)
After you get this to work you should go 1 step further set an access point on the pi so you can share internet from the pi to the laptop, via wifi :)

https://bbs.archlinux.org/viewtopic.php?id=217363