Jump to content

Adding a USB NIC to WAN?


techiem2

Recommended Posts

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!

Link to comment
Share on other sites

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.

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.

  • Recently Browsing   0 members

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