access point with 2 wifi usb

Moderators: adafruit_support_bill, adafruit

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/
Locked
G0ku5
 
Posts: 8
Joined: Tue Sep 17, 2013 2:22 pm

access point with 2 wifi usb

Post by G0ku5 »

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

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: access point with 2 wifi usb

Post by adafruit_support_mike »

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.

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

Re: access point with 2 wifi usb

Post by G0ku5 »

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

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: access point with 2 wifi usb

Post by adafruit_support_mike »

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.

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

Re: access point with 2 wifi usb

Post by G0ku5 »

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 2:22 pm

Re: access point with 2 wifi usb

Post by G0ku5 »

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?

:?:

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: access point with 2 wifi usb

Post by adafruit_support_mike »

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

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

Re: access point with 2 wifi usb

Post by G0ku5 »

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 2:22 pm

Re: access point with 2 wifi usb

Post by G0ku5 »

problem solved

thank you very much friend

regards :D

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: access point with 2 wifi usb

Post by adafruit_support_mike »

Glad to hear you got it working. Happy hacking!

Locked
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/

Return to “Adafruit Raspberry Pi® accessories”