GPereira
Posts: 5
Joined: Sat Jul 29, 2017 8:56 am

Share Laptop Internet through ethernet

Sun Aug 27, 2017 12:28 pm

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?
Last edited by GPereira on Sun Aug 27, 2017 12:32 pm, edited 3 times in total.


GPereira
Posts: 5
Joined: Sat Jul 29, 2017 8:56 am

Re: Share Laptop Internet through ethernet

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)

cydz
Posts: 5
Joined: Sat Jul 16, 2016 12:07 am

Re: Share Laptop Internet through ethernet

Sat Sep 02, 2017 1:03 am

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

Return to “Arch”

Who is online

Users browsing this forum: No registered users and 2 guests