Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

access point with 2 wifi usb

by G0ku5 on Tue Sep 17, 2013 1:28 pm

hello,
I need a help, to the creation of my wifi access point
I want to create an access point where with one usb wifi I connect to a wifi network and then use with other usb wifi access point

instead of being a regular access point, which uses a port other eth and wlan, I want to use wlan 2

is possible to do this?

if so would appreciate some help because I am newbie

thank you
G0ku5
 
Posts: 8
Joined: Tue Sep 17, 2013 1:22 pm

Re: access point with 2 wifi usb

by adafruit_support_mike on Tue Sep 17, 2013 3:27 pm

I don't know if it's possible, but you can try.

Follow the instructions in this tutorial: http://learn.adafruit.com/setting-up-a- ... cess-point , using wlan0 as the access point and wlan1 as the network wlan0 connects to.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 7135
Joined: Thu Feb 11, 2010 1:51 pm

Re: access point with 2 wifi usb

by G0ku5 on Tue Sep 17, 2013 3:58 pm

before I want to thank for the reply and the help

but I wanted to ask, how to proceed the setting, /etc/network/interfaces for this situation?

greetings
G0ku5
 
Posts: 8
Joined: Tue Sep 17, 2013 1:22 pm

Re: access point with 2 wifi usb

by adafruit_support_mike on Thu Sep 19, 2013 2:08 pm

You'd need to set up the wlan0 interface so it accepts an address from the wireless network that will provide your internet connection:

Code: Select all
iface wlan0 inet dhcp
    wpa-ssid "ssid"
    wpa-psk "password"

or if you want to use a static IP address:

Code: Select all
iface wlan0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.1

Then you'd configure wlan1 according to the instructions in the tutorial.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 7135
Joined: Thu Feb 11, 2010 1:51 pm

Re: access point with 2 wifi usb

by G0ku5 on Sat Sep 21, 2013 3:55 am

is already running the access point with 2 usb wifi

so I have one more question, how do I connect wifi1 to a network without password?

Code: Select all
iface wlan0 inet dhcp
    wpa-ssid "ssid"



thank you
G0ku5
 
Posts: 8
Joined: Tue Sep 17, 2013 1:22 pm

Re: access point with 2 wifi usb

by G0ku5 on Sat Sep 21, 2013 10:15 am

I wanted Connecting to open network,

and I'm using:

Code: Select all
auto wlan1
allow-hotplug wlan1
iface wlan1 inet dhcp
wireless-essid NETWORK_NAME


but I can not access the internet, what am I doing wrong?

:?:
G0ku5
 
Posts: 8
Joined: Tue Sep 17, 2013 1:22 pm

Re: access point with 2 wifi usb

by adafruit_support_mike on Sat Sep 21, 2013 7:48 pm

I generally set up access to open networks in /etc/wpa_supplicant/wpa_supplicant.conf, but IIRC you can turn off the requirement for a password using this in /etc/network/interfaces using this line:

Code: Select all
   wpa-key-mgmt NONE
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 7135
Joined: Thu Feb 11, 2010 1:51 pm

Re: access point with 2 wifi usb

by G0ku5 on Sat Oct 19, 2013 6:41 am

Hello, I think my problem is because I have repeaters, so I have 2 mac adress

I found this:
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ap_scan=1

network={
        bssid=00:50:17:31:1a:11
        ssid="YourSSID"
        psk="your-secret-key"
        scan_ssid=1
        proto=WPA2
        key_mgmt=WPA-PSK
        group=CCMP TKIP
        pairwise=CCMP TKIP
        priority=5
}


but do not know how I am newbie to configure my case, can you help me please
G0ku5
 
Posts: 8
Joined: Tue Sep 17, 2013 1:22 pm

Re: access point with 2 wifi usb

by G0ku5 on Sun Oct 20, 2013 4:23 pm

problem solved

thank you very much friend

regards :D
G0ku5
 
Posts: 8
Joined: Tue Sep 17, 2013 1:22 pm

Re: access point with 2 wifi usb

by adafruit_support_mike on Mon Oct 21, 2013 12:01 am

Glad to hear you got it working. Happy hacking!
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 7135
Joined: Thu Feb 11, 2010 1:51 pm