BrianOBrien
Posts: 9
Joined: Sat Apr 09, 2016 7:55 pm

Connecting to Wifi

Sat Apr 09, 2016 8:00 pm

I have a USB Wifi adaptor connected to my r pi 2
(NETGEAR WNDA3100 USB Wireless-N Dual Band)

I just loaded raspbian and powered it up.

I haven't connected the ethernet port or the keyboard or mouse..

What am I going to have to do to get a Wifi connection to my home WiFi?
(Yes I have a HDMI TV, an ethernet cable, usb keyboard and mouse.

I'm assuming I have to begin by connecting this to my home router (hardwired)
and connect it to my TV with keyboard and mouse...

Not sure what root password is but I bet it's easy to find.

BrianOBrien
Posts: 9
Joined: Sat Apr 09, 2016 7:55 pm

Re: Connecting to Wifi

Sun Apr 10, 2016 4:01 pm

I connected the PI to my router by cable, ssh'd in, then plugged in the USB stick.
dmesg seemed recognise stick and two wlan interfaces were added to the /etc/network/interfaces file.
I added the ssids and passwords to the /etc/wpa_supplicant/wpa_supplicant.conf configuration files and rebooted.
ifconfig only saw eth0 and lo.

I tried changing the connection type from manual to dhcp and auto.. no go.
============================================================================
$ lsusb
Bus 001 Device 004: ID 0846:9011 NetGear, Inc. WNDA3100v2 802.11abgn [Broadcom BCM4323]
============================================================================
$cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

allow-hotplug wlan1
iface wlan1 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

======================================================

cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

allow-hotplug wlan1
iface wlan1 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

pi@raspberrypi:~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="ssid1"
psk="passwd1"
key_mgmt=WPA-PSK
}
network={
ssid="ssid2"
psk="passwd2"
key_mgmt=WPA-PSK
}
=======================================================================

$ifconfig
Last edited by BrianOBrien on Sun Apr 10, 2016 6:38 pm, edited 1 time in total.

MrEngman
Posts: 3828
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Connecting to Wifi

Sun Apr 10, 2016 4:49 pm

BrianOBrien wrote:I connected the PI to my router by cable, ssh'd in, then plugged in the USB stick.
dmesg seemed recognise stick and two wlan interfaces were added to the /etc/network/interfaces file.
I added the ssids and passwords to the /etc/wpa_supplicant/wpa_supplicant.conf configuration files and rebooted.
ifconfig only saw eth0 and lo.

I tried changing the connection type from manual to dhcp and auto.. no go.
Two wlan interfaces are NOT added to the /etc/network/interfaces file. That is the default set up for that file and with current versions of the kernel do NOT edit file /etc/network/interfaces to configure the wifi interface.

There are three different versions of the Netgear WNDA3100 - v1, v2 and v3, and each version uses a different driver. Which version is yours as you almost certainly need to install a driver to get it to work as ifconfig does not show wlan0. The output of command lsusb should show the USB ID for the wifi which will identify which version it is. Also post the output of command uname -a as if it needs a driver installing I then may be able to point you to the right one to download.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3828
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Connecting to Wifi

Sun Apr 10, 2016 7:51 pm

MrEngman wrote:
BrianOBrien wrote:I connected the PI to my router by cable, ssh'd in, then plugged in the USB stick.
dmesg seemed recognise stick and two wlan interfaces were added to the /etc/network/interfaces file.
I added the ssids and passwords to the /etc/wpa_supplicant/wpa_supplicant.conf configuration files and rebooted.
ifconfig only saw eth0 and lo.

I tried changing the connection type from manual to dhcp and auto.. no go.
Two wlan interfaces are NOT added to the /etc/network/interfaces file. That is the default set up for that file and with current versions of the kernel do NOT edit file /etc/network/interfaces to configure the wifi interface.

There are three different versions of the Netgear WNDA3100 - v1, v2 and v3, and each version uses a different driver. Which version is yours as you almost certainly need to install a driver to get it to work as ifconfig does not show wlan0. The output of command lsusb should show the USB ID for the wifi which will identify which version it is. Also post the output of command uname -a as if it needs a driver installing I then may be able to point you to the right one to download.



MrEngman
BrianOBrien wrote:
$lsusb
Bus 001 Device 004: ID 0846:9011 NetGear, Inc. WNDA3100v2 802.11abgn [Broadcom BCM4323]

$uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
Not a good idea to PM your reply. Far more useful to post on the forum.

Anyway, sorry but I cannot help with this version of the WNDA3100. Uses a Broadcom driver that I do not compile and it appears it may not work without modification, anyway. More info here saying it will not be supported.




MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “Beginners”