I have a Raspberry Pi (RPi) 3 running Raspbian 8 (Jessie) which is connected to my PC running Linux Mint via the Ethernet port. The RPi has the static eth0 address and the PC has eth0 static address Both devices identify the network broadcast as and mask as The PC's wlan0 adress is

The problem is that I cannot share the Internet from PC wlan0 to RPi via the Ethernet. SSH works well, but my attempts to setup ip forwarding via iptables have failed. I have tried this and this but I have failed to setup network.

This is what I get when type "route" at RPi:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         UG    202    0        0 eth0   *      UH    202    0        0 eth0     *        U     202    0        0 eth0

1 Answer 1


If your WLAN network is and your wired network is, then on your RPI, having a 'default gateway' set to is wrong. Its gateway should be an IP on its network.

Depending on how you defined this route (maybe /etc/network/interfaces?), you should start by replacing references by


You must log in to answer this question.