Vairetz
Posts: 41
Joined: Wed Apr 27, 2016 4:54 pm

Share WiFi to Ethernet cable

Wed Dec 05, 2018 7:49 pm

Hi everyone, I'd like share the WiFi connection of my Pi trought the ethernet cable. I try to configure it but with bad results :( I follow this guide (https://raspberrypi.stackexchange.com/q ... ernet-port) but have no internet connection on my PC. I need to repeat wifi with address 100.92.xxx.xxx and mask 255.255.192.0 I set the new ethernet connection with:

in /etc/network/interfaces:

allow-hotplug eth0
iface eth0 inet static
address 100.92.64.1
netmask 255.255.192.0
network 100.92.64.0
broadcast 100.92.127.255

in sudo nano /etc/dnsmasq.conf:

interface=eth0 # Use interface eth0
listen-address=100.92.64.1 # listen on
# Bind to the interface to make sure we aren't sending things
# elsewhere
bind-interfaces
server=8.8.8.8 # Forward DNS requests to Google DNS
domain-needed # Don't forward short names
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Assign IP addresses between 100.92.64.2 and 100.92.64.100 with a
# 12 hour lease time
dhcp-range=100.92.64.2,100.92.64.100,12h

What I did wrong?
Hope you can help me, thanks a lot!
I made a site with a raspi projects' collection, my idea is sharing my projects with other person.
My web site is https://raspiproject.altervista.org/ I hope you like it and you want work with me


Return to “Networking and servers”