38 votes

Create wireless access point and share internet connection with nmcli

You can create a hotspot with: nmcli dev wifi hotspot ifname wlp4s0 ssid test password "test1234" where wlp4s0 is the name of your Wifi interface.
  • 1,738
12 votes
Accepted

Single wifi card, Connect to multiple access points simultaneously

Some(Most in 2021?) Wifi-chips can function in several modes at the same time, but all on the same frequency, because they use the same radio. Now, If you have 2 radios attached to your chip, you ...
11 votes

Create wireless access point and share internet connection with nmcli

On a Centos 7 it looks like this. Check if AP is possible at all: iw list | less and search for "AP" among supported interface modes. Browse your devices to find the name: nmcli d And setup and ...
8 votes
Accepted

Create wireless access point and share internet connection with nmcli

I created a Hotspot with the GNOME Network-Manager. The problem was, that I can not configure the SSID and password in GUI. If you create the Hotspot with the Network-Manager GUI, it creates the file /...
  • 1,713
7 votes
Accepted

Why can't we easily bridge over a wireless NIC

The problem is that wireless frames in the regular mode only have space for three MAC addresses. The details are a bit more complex, but roughly speaking, there's one MAC address for the external ...
  • 29.7k
6 votes

Create wireless access point and share internet connection with nmcli

I know this is an old question, but thought I would add my comments as this may help someone in the future. The whole process is just three commands as @Dzik has correctly mentioned. nmcli ...
  • 499
4 votes

Internet connection lost after installing dnsmasq

dnsmasq should read /etc/resolv.conf and use the DNS servers there. In case that doesn't work for some reason, you can manually specify what DNS servers to use. To do that, in /etc/dnsmasq.conf, add ...
  • 1,293
4 votes
Accepted

"nmcli nm wifi on" stops hostapd

After the commands above, restarting the hostapd did the trick. sudo service hostapd restart Now the internal wifi works as an access point and the usb dongle is connected to another access point ...
  • 81
4 votes

Can't start isc-dhcp-server because of the Error : Not configured to listen on any interfaces!

The message Not configured to listen on any interfaces! is your clue. When starting isc-dhcp-server it will not start unless there is a network device configured to be on the same subnet(s) that your ...
  • 4,750
4 votes

How do I create a persistant (ad hoc) access point?

The point is, it is creating an wireless adhoc access point because you are asking it to create an adhoc access point. You need to create an AP in BSS (infrastructure mode) with hostapd. see: ...
3 votes

DHCP Server IP Conflict Detection

Routers (or your DHCP server) keeps a table of leased out IP addresses and refers to that table when a device requests a new IP address from your router/dhcp server. Unless the DHCP server is ...
  • 409
3 votes
Accepted

Access Point configurable via Linux

You'll (almost certainly) need to flash a custom firmware on the AP to enable this functionality. The two most common firmwares to use for this are OpenWRT and DD-WRT. They're very similar but have ...
  • 3,119
3 votes

How to build a bridge between 2 networks?

In your network configuration, your network, netmask, and broadcast configuration do not agree... they are wrong. iface br0 inet static bridge_ports eth0 wlan1 address 10.10.1.1 network 10....
3 votes

Single wifi card, Connect to multiple access points simultaneously

As close as you may seem to getting this to work, I am going to go out on a limb and suggest that this is not possible. You do have the virtual interfaces set up correctly, giving you both a valid ...
  • 4,306
3 votes

Create wireless access point and share internet connection with nmcli

Just nmcli dev wifi hotspot will generate a password and start a hotspot with SSID Hotspot-<YOUR_HOSTNAME> on the default wifi interface. To show the Wi-Fi name and password (and a QR code): ...
  • 96
2 votes
Accepted

wpa_supplicant doesn't auto-change AP

To debug what wpa_supplicant is doing, wpa_cli status will give information about whether wpa_supplicant still thinks it's connected to an AP, or searching for a new AP. Wpa_supplicant needs to be in ...
  • 29.7k
2 votes

starting hostapd fails -- ACS: Unable to collect survey data

FWIW I'm currently troubleshooting what I believe is a similar problem. I am using the built-in wireless interface on a RPi4 (2GB RAM) with hostapd + dnsmasq. It seems to work fine when I specify a ...
  • 213
2 votes

hostapd: Failed to set channel (freq=2417): -16 (Device or resource busy)

Solution one: You could try sudo rfkill unblock wlan and repeat sudo hostapd /etc/hostapd/hostapd.conf as proposed here and tested on my raspberry pi, where I received the same error message as ...
  • 303
2 votes

Can I get dnsmasq to drop/reject/redirect any address queries except one?

First I would focus in the solution working normally with the client writing a simple name URL as http://lime to make debugging easier. As you might not need to provide Internet access, you might not ...
2 votes

Why can't hostapd service start AP configured in 5 GHz band using Intel AX200 based adapter?

i checked the list and Intel® Wi-Fi 6 AX200 160MHz shows: AP mode on 2.4GHz (on devices driven by iwlmvm) https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
  • 1,713
2 votes
Accepted

Why can't hostapd service start AP configured in 5 GHz band using Intel AX200 based adapter?

To my surprise, the solution was installing the network-manager package. No additional configuration was required, not even setting the wireless interface as managed by NetworkManager. I replicated ...
1 vote
Accepted

hostapd clients don't get ipv4 addresses

A.B's comment is actually right. My raspi and the current raspbian on it do load the br_netfilter module. Upon removing it and after restarting hostapd all my clients do now get valid IPv4 adresses. ...
1 vote

How to connect to the internet, via a bluetooth access point, from command line

You could use nmcli # to list available connections nmcli connection show # to connect to abcd nmcli connection up "abcd"
  • 11
1 vote
Accepted

Hostapd doesn't work for one of my device

It seems that you need a driver for tp-link USB dongle soft-AP. I resolve this problem by installing this driver. You can find it : here
1 vote
Accepted

How can I (re-)connect DNS for gmail on Linux Mint?

(update: 2015-12-16) These last few days I had occasion to use-up the remaining MB-s on the USB modem. I have had exactly zero DNS issues. At one point I lent the USB wireless broadband modem to ...
  • 469
1 vote

Hostapd nl80211 failed to set interface -19

You should change the driver=nl80211 to driver=rtl871xdrv on your /etc/hostapd/hostapd.conf file : Wifi chips like RT8188C and RT8192C, recognized as RTL8188CUS (or variants thereof) do not support ...
  • 59.3k
1 vote

Failed to add new connection: (2) A 'wireless' setting with a valid SSID is required if no AP path was given

Probably the issue is with your hostname. Give some name with a period in it. eg: "localhost.mine" or simply "localhost" You can set hostname via GNOME Control Center -> Details -> Overview -> Set ...
1 vote

Hostapd and nl80211

According to Arch-wiki, you need to use the deprecated wext driver, to connect you can type the following command: wpa_supplicant -B -i wlan0 -D wext -c /etc/wpa_supplicant/example.conf
  • 59.3k

Only top scored, non community-wiki answers of a minimum length are eligible