Last active
September 11, 2023 04:36
-
-
Save ppdouble/6600126e44792b85c855b851c0ed3fb4 to your computer and use it in GitHub Desktop.
Create Hotspot with WEP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user@fdr-lnx ~]$ nmcli connection down MyFedoraHotspot | |
Connection 'MyFedoraHotspot' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/16) | |
[user@fdr-lnx ~]$ nmcli connection delete MyFedoraHotspot | |
Connection 'MyFedoraHotspot' (076c78bf-9e91-4779-832e-7306adb7b277) successfully deleted. | |
[user@fdr-lnx ~]$ ls -lh /etc/NetworkManager/system-connections/ | grep MyFedoraHotspot | |
[user@fdr-lnx ~]$ nmcli con add type wifi ifname wlp0s30f4 con-name MyFedoraHotspot autoconnect yes ssid MyFedoraHotspot | |
Connection 'MyFedoraHotspot' (9ec71f65-881b-43b3-b666-710a21d5c6a9) successfully added. | |
[user@fdr-lnx ~]$ nmcli con modify MyFedoraHotspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared | |
[user@fdr-lnx ~]$ nmcli con modify MyFedoraHotspot wifi-sec.key-mgmt none | |
Warning: WEP encryption is known to be insecure. | |
[user@fdr-lnx ~]$ nmcli con up MyFedoraHotspot | |
Passwords or encryption keys are required to access the wireless network 'MyFedoraHotspot'. | |
Warning: password for '802-11-wireless-security.wep-key0' not given in 'passwd-file' and nmcli cannot ask without '--ask' option. | |
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/18) |
You can use nmcli device
or ifconfig
to see your device name, which is used for ifname
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/gowrav/f45e334acc3be1bca3ef5a46786052f2
https://gist.github.com/narate/d3f001c97e1c981a59f94cd76f041140
https://unix.stackexchange.com/questions/234552/create-wireless-access-point-and-share-internet-connection-with-nmcli/310699#310699