How to Turn on Wifi Hotspot Centos 8
To turn on a hotspot in CentOS, you can use the `nmcli` command-line tool, which is a part of NetworkManager. Here are the steps to create a hotspot:
1. Open a terminal window.
2. Check if NetworkManager is running by running the following command:
```
sudo systemctl status NetworkManager
```
If it's not running, you can start it with:
```
sudo systemctl start NetworkManager
```
3. Create a new hotspot configuration using `nmcli`. Replace "HotspotSSID" with your desired hotspot name and "HotspotPassword" with your preferred password. You can adjust these values to your liking.
```
sudo nmcli connection add type wifi ifname '*' con-name Hotspot autoconnect yes ssid HotspotSSID
```
```
sudo nmcli connection modify Hotspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
```
```
sudo nmcli connection modify Hotspot wifi-sec.key-mgmt wpa-psk
```
```
sudo nmcli connection modify Hotspot wifi-sec.psk HotspotPassword
```
4. Activate the hotspot:
```
sudo nmcli connection up Hotspot
```
Your hotspot should now be active, and you can connect to it using the SSID you specified (HotspotSSID) and the password you set (HotspotPassword).
Remember to replace "HotspotSSID" and "HotspotPassword" with your preferred values. Also, please note that the steps mentioned here may require administrative privileges, so you may need to use `sudo` before each command or run them as the root user.
Comments
Post a Comment