|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
configuring wireless connection?
Spent yesterday searching, finding, & trying to use what little info there is about wifi setup., but it would appear that wifi still doesn't work - 7.0.1 (i386/amd64)
__________________
Linux since 1999, & also a BSD user. |
|
|||
My 7.0.1/i386 wireless setup, based on a now missing tutorial, is still working. I recall the tutorial provided dhcp vs dhclient options. dhclient did not work for me but dhcp did. I will drag out and post my redacted configs shortly.
I'm using an ralink usb dongle (rum). Replace rum with your driver, ie ath0 /etc/rc.conf Code:
dhcpcd_flags="-q -b" wpa_supplicant=YES wpa_supplicant_flags="-B -i rum0 -c /etc/wpa_supplicant.conf" # wpa_passphrase your_SSID your_key > /etc/wpa_supplicant.conf With dhcp you also need. /etc/ifconfig.rum0 Code:
up dhcp Last edited by shep; 21st August 2016 at 09:56 PM. Reason: Forgot /etc/ifconfig.rum0 |
|
|||
Thanks Shep, I'll give that a try, mine also comes up as rum interface.
The 2002 laptop I'm trying NetBSD on has worked with every other O/S that I've thrown at it, (MS Vista came on it), various Linux, FreeBSD, (PC-BSD), OpenBSD. But not NetBSD - & there is a dearth of info for setting up wifi. EDIT: Gave it a try - but still doesn't come up.
__________________
Linux since 1999, & also a BSD user. Last edited by bsd-keith; 22nd August 2016 at 12:15 PM. |
|
|||
/etc/wpa_supplicant.conf
Code:
network={ ssid="******" scan_ssid=1 key_mgmt=WPA-PSK psk="**************" } 1) uhub 2) rum0 3) network start 4) dhcp lease acquired Watching the messages should help narrow where the problem is. I'm OK with forking this to a NetBSD wireless thread. |
|
|||
Discussion on configuring wireless connections on NetBSD has been separated from its parent thread:
http://daemonforums.org/showthread.php?t=1882 ...as it is the general laptop configuration thread. We encourage discussion on this site, but we do ask members to restrict threads to a single topic to help promote clarity and understanding. Besides, starting new threads is cool... |
|
|||
@ocicat
Sorry boss - it started out as a comment - I was a bit frustrated with NetBSD as I have never been able to get wifi working on it. Hopefully this thread will end up helping others to get theirs working too.
__________________
Linux since 1999, & also a BSD user. |
|
|||
@shep
I don't think I've got a key_mgmt statement - will go & check. ( Narrowing it down - I do get uhub, rum0, & a network statement, but definately no dhcp lease acquired.)
__________________
Linux since 1999, & also a BSD user. |
|
|||
Still no joy - can you see any glaring faults in my setup?
rc.conf Code:
# $NetBSD: rc.conf,v 1.97 2014/07/14 12:29:48 mbalmer Exp $ # # See rc.conf(5) for more information. # # Use program=YES to enable program, NO to disable it. program_flags are # passed to the program on the command line. # # Load the defaults in from /etc/defaults/rc.conf (if it's readable). # These can be overridden below. # if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf fi # If this is not set to YES, the system will drop into single-user mode. # rc_configured=YES # Add local overrides below. # wscons=YES # sshd=NO postfix=NO inetd=NO # #wlan dhcpcd_flags="-q -b" wpa_supplicant=YES wpa_supplicant_flags="-B -i rum0 -c /etc/wpa_supplicant.conf" ifconfig_rum0="dhcp" #dhclient=YES Code:
up dhcp Code:
#ctrl_interface=/var/run/wpa_supplicant #ctrl_interface_group=wheel #network={ #ssid="name" #psk="phrase" #} network={ ssid="name" scan_ssid=1 key_mgmt=WPA-PSK #psk="phrase" psk=huge-number } Code:
rum0 at uhub6 port 1 rum0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 2 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:1d:92:12:51:08 rum0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps rum0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
__________________
Linux since 1999, & also a BSD user. |
|
|||
On start up screen I get :-
Starting network. /etc/rc: WARNING: $hostname not set. IPv6 mode: host Configuring network interfaces: rum0. Adding interface aliases:. Waiting for DAD completion for statically configured addresses... Starting wpa_supplicant. Succesfully initialised wpa_supplicant Building databases: dev, utmp,utmpx. etc.
__________________
Linux since 1999, & also a BSD user. |
|
|||
Do you have a hostname set? It can either be in /etc/rc.conf or /etc/myname. I have mine in /etc/rc.conf.
https://www.netbsd.org/docs/network/ You can manually bring up networking with # /etc/rc.d/network (re)start It should spit out error messages |
|
|||
(Thanks for your time shep.)
Put nbsd.km.net into /etc/myname. Tried to bring it up with /etc/network start Code:
Starting network. Hostname: nbsd.km.net IPv6 mode: host Configuring network interfaces: rum0. Adding interface aliases:. Waiting for DAD completion for statically configured addresses... edit: Rebooted just in case it made any difference - but still no network with/in ifconfig edit2: Will check back in the morning.
__________________
Linux since 1999, & also a BSD user. Last edited by bsd-keith; 22nd August 2016 at 07:47 PM. |
|
|||
Are you getting an IP address lease. If not, I think you can manually request a dhcp lease via dhcpcd
# dhcpcd rum0 If that does not work, here are the differences between your posted configs and what I have: Code:
#wlan dhcpcd_flags="-q -b" wpa_supplicant=YES wpa_supplicant_flags="-B -i rum0 -c /etc/wpa_supplicant.conf" ifconfig_rum0="dhcp" #dhclient=YES Code:
#wlan hostname=nbsd.km.net dhcpcd_flags="-q -b" wpa_supplicant=YES wpa_supplicant_flags="-B -i rum0 -c /etc/wpa_supplicant.conf" #dhclient=YES It should generate entries in /etc/resolv.conf Code:
Eyore# cat /etc/resolv.conf # Generated by resolvconf domain home.yak nameserver 205.171.3.65 nameserver 96.90.175.167 nameserver 104.238.153.178 Last edited by shep; 23rd August 2016 at 01:58 AM. |
|
|||
I don't have or get a resolv.conf
I downloaded another install.img, md5 checked it, reinstalled, wrote all the files again, rebooted, & it still won't pick up any leases. Thanks for your time trying to help, shep - but I'm going to assign NetBSD to the bit bucket, & just go back to AntiX & OpenBSD. Someone on the NetBSD team needs to get wifi sorted out & working properly, & create a usable documentation for it.
__________________
Linux since 1999, & also a BSD user. |
|
||||
I'm sorry to hear you had to give up, but there can be limited time to try these things at one time. Unfortunately I was unable to respond at any length until now. Maybe the following along with shep's information can help in the future, or for someone else.
My approach to this problem would be to get wireless working, step-by-step, from the command line first. Only once everything succeeded that way would I possibly try to configure it automatically via the configuration files. This way you can beat on each step repeatedly and in isolation until it works, without trying to build on it. In fact, I haven't ever set up the config files to have the system do things automatically. So here is a bare bones summary of what little I know. First check the dmesg to make sure the wireless device is configured. I see you've done that. My examples will use rtwn0 which applies on my laptop. All commands are run as root. Code:
# ifconfig -a ... rtwn0: flags=0x8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 ssid "" powersave off address: 00:de:ad:be:ef:00 media: IEEE802.11 autoselect status: no network ... Code:
# ifconfig rtwn0 up # ifconfig rtwn0 list scan SSID BSSID CHAN RATE S:N INT CAPS SomeAccessPoint 00:50:07:e3:84:0 1 54M 172:0 100 EP RSN WME ... Code:
# wlanctl rtwn0 ...(tons of output)... Some sample configuration files: Code:
OPEN AP ------- ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid="Open AP SSID" scan_ssid=1 key_mgmt=NONE } WEP AP ------ ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid="WEP AP SSID" scan_ssid=1 key_mgmt=NONE wep_tx_keyidx=0 wep_key0=1234567890 } WPA2 AP ------- ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid="WPA AP SSID" scan_ssid=1 key_mgmt=WPA-PSK psk="passphrase" # ** OR ** psk=64 hex digits without quotes } Code:
# wpa_supplicant -Bd -c /path/to/wpa-supplicant.conf -i rtwn0 Check if the network is up: Code:
# ifconfig rtwn0 rtwn0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ssid "YourAP" nwkey 65536:"",0xb56f5d0192837465d086b54666dc606f5,"","" powersave off bssid 23:f7:34:23:de:34 chan 1 address: 00:de:ad:be:ef:00 media: IEEE802.11 autoselect (OFDM54 mode 11g) status: active inet6 fe80::d2df:9aff:fe7e:4461%rtwn0 prefixlen 64 scopeid 0x2 Code:
# tcpdump -ni rtwn0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on rtwn0, link-type EN10MB (Ethernet), capture size 262144 bytes 19:34:00.263402 ARP, Request who-has 192.168.1.134 (ff:ff:ff:ff:ff:ff) tell 192.168.1.23, length 28 19:34:00.263800 ARP, Request who-has 192.168.1.133 (ff:ff:ff:ff:ff:ff) tell 192.168.1.23, length 28 ... Code:
# dhclient -v [-1] rtwn0 Internet Systems Consortium DHCP Client 4.3.3 Copyright 2004-2015 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on BPF/rtwn0/00:de:ad:be:ef:00 Sending on BPF/rtwn0/00:de:ad:be:ef:00 Sending on Socket/fallback DHCPDISCOVER on rtwn0 to 255.255.255.255 port 67 interval 6 DHCPREQUEST on rtwn0 to 255.255.255.255 port 67 DHCPOFFER from 192.168.1.3 DHCPACK from 192.168.1.3 bound to 192.168.1.17 -- renewal in 37764 seconds. Code:
# ifconfig rtwn0 rtwn0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ssid "YourAP" nwkey 65536:"",0xb56f5d0192837465d086b54666dc606f5,"","" powersave off bssid 23:f7:34:23:de:34 chan 1 address: 00:de:ad:be:ef:00 media: IEEE802.11 autoselect (OFDM54 mode 11g) status: active inet 192.168.1.17 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::d2df:9aff:fe7e:4461%rtwn0 prefixlen 64 scopeid 0x2 Code:
# route -n show -inet Code:
# pkill dhclient # wpa_cli wpa_cli v2.4 Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi> and contributors This software may be distributed under the terms of the BSD license. See README for more details. Selected interface 'rtwn0' Interactive mode > term 19:37:39.515: OK 19:37:39.517: CTRL-EVENT-DISCONNECTED bssid=23:f7:34:23:de:34 reason=3 locally_generated=1 19:37:39.517: CTRL-EVENT-TERMINATING Connection to wpa_supplicant lost - trying to reconnect > quit Code:
# dhclient -r rtwn0 Hope that helps otherwise. ADDED #2: From the NetBSD Wiki, how to use wpa supplicant. Last edited by IdOp; 24th August 2016 at 11:22 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newbie - need help configuring wireless connection... | bobmarss | OpenBSD General | 4 | 3rd August 2012 03:05 AM |
OpenBSD 4.5 and wireless connection | sd1965 | OpenBSD Installation and Upgrading | 5 | 17th July 2011 02:57 AM |
Wireless Network Loses Connection | JMJ_coder | NetBSD General | 5 | 17th February 2009 09:14 PM |
Configuring a wireless access point | Serge | FreeBSD General | 6 | 6th June 2008 04:07 PM |
KDE app for easy Wireless connection | coppermine | FreeBSD Ports and Packages | 4 | 17th May 2008 07:33 PM |