[opensuse] wireless access point
We want to set up a Linux and a Windows computer on a local wireless network. We would like to do this without using a dedicated access point. Having the Linux computer also be an access point would be the best solution. Is it possible for a single wireless port on Linux be both an access point and a regular wireless port at the same time? I have seen information on setting up openSUSE to be a wireless access point. Something like this: Ad-Hoc connection setup with YaST YaST -> Network devices -> Network Card select ifup, click Next select card, Edit select Static address setup and fill up the IP address, Next select Operating Mode Ad-Hoc and set ESSID to your domain id select authentication, Next, Finish Has anyone done this? The Linux wireless port currently reports: # iwconfig wlp2s0 wlp2s0 IEEE 802.11abgn ESSID:"RAMBOLL-GUEST" Mode:Managed Frequency:5.2 GHz Access Point: 84:3D:C6:B3:40:2D Bit Rate=300 Mb/s Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=65/70 Signal level=-45 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:612 Invalid misc:803 Missed beacon:0 -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/23/2017 09:51 AM, Roger Oberholtzer wrote:
We want to set up a Linux and a Windows computer on a local wireless network. We would like to do this without using a dedicated access point. Having the Linux computer also be an access point would be the best solution.
Is it possible for a single wireless port on Linux be both an access point and a regular wireless port at the same time?
I don't think so. It's either an access point or regular port, not both.
I have seen information on setting up openSUSE to be a wireless access point. Something like this:
Ad-Hoc connection setup with YaST
Network manager supports setting up a computer as an access point, in which case you'd connect to the Internet via Ethernet. However, if you read back a few days, you'll find I was unable to get this to work. Windows 10 supports the same feature and it works there. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/23/2017 07:02 AM, James Knott wrote:
On 08/23/2017 09:51 AM, Roger Oberholtzer wrote:
We want to set up a Linux and a Windows computer on a local wireless network. We would like to do this without using a dedicated access point. Having the Linux computer also be an access point would be the best solution.
Is it possible for a single wireless port on Linux be both an access point and a regular wireless port at the same time?
I don't think so. It's either an access point or regular port, not both.
I have seen information on setting up openSUSE to be a wireless access point. Something like this:
Ad-Hoc connection setup with YaST
Network manager supports setting up a computer as an access point, in which case you'd connect to the Internet via Ethernet. However, if you read back a few days, you'll find I was unable to get this to work. Windows 10 supports the same feature and it works there.
I didn't get that to work either. I'm not sure it does what I think it does. I have a raspberry-pi V3 set up as an AP, and that was drop dead simple. I used this guide: https://www.raspberrypi.org/documentation/configuration/wireless/access-poin... So i decided to try the exact same thing on my son's 42.2 machine because he only has a cat 5 drop from his upstream, and didn't want to buy a router. Installing dnsmasq and hostapd bridge-utils, etc per that page, it all worked fine and he was able to get his smartphone and tablet, and chromecast on wifi. I didn't test using a cheap wifi dongle as a second wifi device, while using the primary to connect to the existing wifi. That might work also. By the way, I've successfully streamed hours of video using the pi's built in wifi as a router. -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/23/2017 01:30 PM, John Andersen wrote:
and hostapd bridge-utils
That may be the missing link! I'll have to give it a try. I don't actually need this (I have a couple of portable APs), but I like to learn by doing. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/23/2017 01:34 PM, James Knott wrote:
On 08/23/2017 01:30 PM, John Andersen wrote:
and hostapd bridge-utils That may be the missing link! I'll have to give it a try. I don't actually need this (I have a couple of portable APs), but I like to learn by doing.
No. Still authentication problem. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/23/2017 01:45 PM, James Knott wrote:
On 08/23/2017 01:34 PM, James Knott wrote:
On 08/23/2017 01:30 PM, John Andersen wrote:
and hostapd bridge-utils That may be the missing link! I'll have to give it a try. I don't actually need this (I have a couple of portable APs), but I like to learn by doing.
No. Still authentication problem.
I came across this: https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.ref... However, the directions appear to be for Gnome. Is there anything similar for KDE? 28.3.3 Configuring Your Wi-Fi/Bluetooth Card as an Access Point Report Bug <https://bugzilla.opensuse.org/enter_bug.cgi?&product=openSUSE%20Distribution&component=Documentation&short_desc=[doc]+&comment=28.3.3%20%20Configuring%20Your%20Wi-Fi%2FBluetooth%20Card%20as%20an%20Access%20Point%0A%0Ahttps%3A%2F%2Fdoc.opensuse.org%2Fdocumentation%2Fleap%2Freference%2Fhtml%2Fbook.opensuse.reference%2Fcha.nm.html%23sec.nm.gnome.applet.accesspoint&assigned_to=fs%40suse.com&version=Leap%2042.2> # <https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.nm.html#sec.nm.gnome.applet.accesspoint> If your Wi-Fi/Bluetooth card supports access point mode, you can use NetworkManager for the configuration. 1. Open the Status Menu and click Wi-Fi. 2. Click Wi-Fi Settings to open the detailed settings menu. 3. Click Use as Hotspot and follow the instructions. 4. Use the credentials shown in the resulting dialog to connect to the hotspot from a remote machine. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/23/2017 01:45 PM, James Knott wrote:
On 08/23/2017 01:34 PM, James Knott wrote:
On 08/23/2017 01:30 PM, John Andersen wrote:
and hostapd bridge-utils That may be the missing link! I'll have to give it a try. I don't actually need this (I have a couple of portable APs), but I like to learn by doing.
No. Still authentication problem.
Even after installing and running hostapd, I get authentication errors. I can connect without encryption. Also, when it does connect, I get only a NAT IPv4 address and only link local IPv6. Since a subnet is available for both, I should get a valid address from my network, as my home AP provides. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Perhaps what I want is an Ad Hoc network? Just two devices communicating via their wireless fixed-address interfaces? Perhaps as this describes? as a root bring down the wireless interface # ip link set wlan0 down set the domain id and set the ad-hoc mode # iwconfig wlan0 essid test-adhoc mode Ad-Hoc bring up the interface # ip link set wlan0 up set the IP address manually # ip addr add 192.168.102.1/24 dev wlan0 -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 08/23/2017 01:45 PM, James Knott wrote:
Even after installing and running hostapd, I get authentication errors. I can connect without encryption. Also, when it does connect, I get only a NAT IPv4 address and only link local IPv6. Since a subnet is available for both, I should get a valid address from my network, as my home AP provides.
I have this running at home on a shuttle. What do you have in the encryption part of hostapd.conf? Mine looks like auth_algs=1 wpa=2 wpa_key_mgmt=WPA-PSK rsn_pairwise=CCMP wpa_passphrase=<......> (eth0 and wlan0 are set up as a bridge so you actually end up in the same network, but I assume that part works on your side?) But it also took me several attempts when I set it up last year... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I decided to set up an Ad-Hoc network. I used an up-to-date Tumbleweed (one was 32-bit and one was 64-bit). I got it working after a bit of fiddling. The basic idea was to use wicked, and to the following commands on each: ip link set wlan0 down iwconfig wlan0 essid myId mode Ad-Hoc ip link set wlan0 up ip addr add 10.1.1.ZZ dev wlan0 route add default gw 10.1.1.zz Only the ip address needs to be changed for each system. I could then access each machine. I noted this: 1. The essid did not get set the first time the command was run. Maybe I was impatient. But I had to run it more than once to see the essid in 'iwconfig wlan0'. 2. I got the feeling that the speed was slow. When both wireless interfaces are used in a Managed network I think they were faster. I need to set up some things to do a better test. 3. I tired to use a laptop with Leap 42.3, but that one would not work. I do not know if it was Leap or the laptop. I want to run this on Leap 42.3. So I hope it is the laptop. 4. I did not have security enabled. Obviously I will add that in a future test. Still, the basic functionality seems to work. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
James Knott
-
John Andersen
-
Peter Suetterlin
-
Roger Oberholtzer