techiem2 Posted December 7, 2013 Share Posted December 7, 2013 I got my Pineapple and have been enjoying playing with it so far as a portable hostpot router (connect WAN to the network I'm at and connect my devices to my Pineapple's LAN). I have a little Trendnet TU2-ET100 USB ethernet adapter that I would like to be able to use as the WAN interface, but I don't know the proper commands to run to make the Pineapple route through it. It does see the NIC and I can use udhcpc to get an address, but that's as far as I get. :) Could someone tell me the proper commands/procedure to swith the WAN to eth1 from Wlan1 for the outside connection? Ideally I think I'd have a little script stored on the sd card to switch the WAN back and forth between eth1 and Wlan1 (or even better an infusion that shows the wired and wireless connections and allows selecting which one(s) is/are the WAN side and does the changes right from the web panel). On that note it would also be great if the WiFi Manager infusion would save network configurations for easily switching WAN Client mode between networks. :) Thanks! Quote Link to comment Share on other sites More sharing options...
techiem2 Posted December 14, 2013 Author Share Posted December 14, 2013 Well, that turned out to be simple (I finally had a chance to sit down and look around the console). In /etc/config/network, there is already a definition for wan2. I just made it match the definition for wan, except I used eth1 instead of wlan1. It even worked after rebooting without the USB NIC connected and then plugging it in after boot. I don't know what would happen if I connected wlan1 to a network as well, but now that I know how it's configured it would be easy enough to change at will. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.