Use wireless network card to build wireless AP under Ubuntu20.04

Foreword:

外出实施服务器的时候,大多数客户都是纯内网+DHCP+只有一个显示器(多个厂商得轮着用......)。每次外出实施,真的是恶心。

Solution: Use a wireless network card of a certain network to build a wireless ap, connect it in and configure a static IP, after configuration, close the wireless ap service and unplug the wireless network card. Both safe and convenient.

One: Use git to pull down the network card driver and create_ap wireless service

使用命令:
	git clone https://github.com/morrownr/8821cu-20210118.git
	git clone https://github.com/oblique/create_ap.git

Two: Pre-tool installation

  sudo apt update
  sudo apt install -y hostapd dnsmasq network-manager
  git config --global http.sslverify false
  git config --global https.sslverify false

Three: Install a network card driver

Enter the network card driver folder

	cd 8821cu-20210118/

install driver

	sudo ./install-driver.sh

If you want to know more about this driver, you can take a look at the README:

insert image description here

Four: Install create_ap wireless ap service

Enter the network card create_ap folder

	cd create_ap/

install create_ap

	sudo make install

If you want to know more detailed information, you can view its introduction document

insert image description here

Five: Configure the configuration of create_ap, the following is my configuration:

WIFI_IFACE=wlx502b73141e43		# 无线网卡名称
INTERNET_IFACE=eno1						# 有线网卡名称
SSID=my_ap										# 无线ap名称
USE_PSK=0
PASSPHRASE=azqwtyralsl322			# 无线ap密码

Six: Restart create_ap

	sudo systemctl restart create_ap.service

Guess you like

Origin blog.csdn.net/weixin_43441262/article/details/130624544
Recommended