Jump to content

Internet Connection Sharing not working


johnjdoe
 Share

Recommended Posts

Hi all,

I followed the instructions from here: http://wiki.wifipineapple.com/#!ics.md

The result is the following:

Pineapple Netmask [255.255.255.0]:
Pineapple Network [172.16.42.0/24]:
Interface between PC and Pineapple [eth0]:
Interface between PC and Internet [wlan0]:
Internet Gateway [192.168.1.1]:
IP Address of Host PC [172.16.42.42]:
IP Address of Pineapple [172.16.42.1]:

     _ .           ___          \||/   Internet: 192.168.1.1 - wlan0
   (  _ )_  <-->  [___]  <-->  ,<><>,  Computer: 172.16.42.42
 (_  _(_ ,)       \___\        '<><>' Pineapple: 172.16.42.0/24 - eth0

On the Pineapple, the internet connection is not working:

root@Pineapple:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.42.0     *               255.255.255.0   U     0      0        0 br-lan
root@Pineapple:~# ping www.google.de
ping: bad address 'www.google.de'

On the Linux machine it is:

root@Eniac:# route
Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
default         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
172.16.42.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 wlan0
root@Eniac:# ping www.google.De
PING www.google.De (173.194.66.94) 56(84) bytes of data.
64 bytes from we-in-f94.1e100.net (173.194.66.94): icmp_seq=1 ttl=46 time=39.9 ms
64 bytes from we-in-f94.1e100.net (173.194.66.94): icmp_seq=2 ttl=46 time=43.2 ms
64 bytes from we-in-f94.1e100.net (173.194.66.94): icmp_seq=3 ttl=46 time=43.5 ms

I always tried different methods to give clients access to internet (see my posting from yesterday): client mode WLAN1, client mode WLAN2 and now over sharing it from a computer via eth0. Nothing! :-(

Do you have perhaps an explanation for this behavior or some more tips? Thank you in advance!

Link to comment
Share on other sites

on the pineapple web UI try updating the default route

(this was my issue)

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.16.42.42    0.0.0.0         UG    0      0        0 br-lan
172.16.42.0     *               255.255.255.0   U     0      0        0 br-lan
Edited by Crazy52
Link to comment
Share on other sites

Thank you Crazy52! This worked fine. Here is the result:

root@Pineapple:~# route add default gw 172.16.42.42 br-lan
root@Pineapple:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.16.42.42    0.0.0.0         UG    0      0        0 br-lan
172.16.42.0     *               255.255.255.0   U     0      0        0 br-lan
root@Pineapple:~# ping www.google.de
PING www.google.de (194.78.99.158): 56 data bytes
64 bytes from 194.78.99.158: seq=0 ttl=57 time=26.155 ms
64 bytes from 194.78.99.158: seq=1 ttl=57 time=25.901 ms

And the clients have internet access too now. :-)

But now the question: Should this not work automaticly? It's nowhere documented ...

In view of the problems that I have (see my post from yesterday) with the network and after reading some other posts, I ask myself if there are possibly bugs in the firmware 2.2?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...