Jump to content

Trying to tether a pineapple to a pineapple...


Scrag
 Share

Recommended Posts

Rather than buy a new ALFA wireless NIC, I figured id just buy a new pineapple. My first pineapple connects to any available open wireless LAN, thanks to Sympac's script. I figured to tether my new pineapple to this one, Id have to disable the bridge (172.16.42.1) on it and setup a static IP on it as if it was like my laptop. Ive attached a JPEG showing my basic configuration. I edited /etc/config/network (i think I have that right) to the following below:

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

#config interface lan
#       option ifname   eth0
#       option type     bridge
#       option proto    static
#       option ipaddr   172.16.42.1
#       option netmask  255.255.255.0
#       option gateway  172.16.42.42
#       option dns      8.8.8.8

config interface wan
       option ifname        eth1
#       option proto        dhcp
        option proto    static
        option ipaddr   172.16.42.42
        option netmask  255.255.255.0
        option gateway  172.16.42.1
        option dns      8.8.8.8
                                   
                                   
                                   
#config switch eth0                
#       option enable_vlan        1
                                 
#config switch_vlan              
#       option device        eth0
#       option vlan        1     
#       option ports        "0 1"
                      
config interface usb  
    option ifname usb0
    option proto dhcp

Anyway, now my first pineapple, the one that connects automatically to the internet, doesnt boot up fully.

Please tell me what I did wrong.

Thank You Very Much!!!

Scrag

post-43836-0-25906700-1377922910_thumb.j

Link to comment
Share on other sites

Maybe an easier way to put this question would be - How do I turn one of my pineapples (the LAN Client) into a normal "PC" so to speak. Since im tethering another pineapple (the AP) to it, im trying to remove the bridge and setup a static IP on eth1 with an IP of 172.16.42.42 on the LAN Client pineapple. This is what im trying to accomplish above in my network config, but since my pineapple doesnt come up, im assuming i did somethng wrong.

Thanks again.

Scrag

Link to comment
Share on other sites

To tether one pineapple to the other all you need to do is the following. 1st Pineapple everything is default. 2nd Pineapple set your ipaddr to 172.16.42.2 and gateway to 172.16.42.1. That's it.

You have to connect PoE/Lan to PoE/Lan

http://www.youtube.com/watch?v=DHBd-2yI6M0

Edited by deathdealerxx
Link to comment
Share on other sites

Actually it looks like im still having issues. Ive gone through the video a few times that Deathdealerxx provided. Its seems very simple. Ive tried this as the video instructed and it didint work. See Below:

uci set network.lan.ipaddr=172.16.42.2
uci set network.lan.gateway=172.16.42.1
uci commit network

<reboot>

I re-flashed my Pineapples and tried again - still no go. My first pineapple (172.16.42.1) uses wlan0 to connect to the closest open Access Point it can. This so far works fine. It connects and I have internet access on the pineapple. This pineapple I just intend to use as a wireless NIC to get internet. The 2nd pineapple (172.16.42.2.), as set with the uci commands, will not get to the internet. Both pineapples can ping one another, but the 2nd one has no internet. And of course, If I connect to the wireless on the 2nd pineapple (as its my AP pineapple) clients have not internet access.

Do I need to setup a route statement on one of these pineapples?

Do I need to run the wp4.sh script on the 172.16.42.1 pineapple?

Thanks,

Scrag

Edited by Scrag
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...