Skip to content

Instantly share code, notes, and snippets.

@ppdouble
Last active September 11, 2023 04:36
Show Gist options
  • Save ppdouble/6600126e44792b85c855b851c0ed3fb4 to your computer and use it in GitHub Desktop.
Save ppdouble/6600126e44792b85c855b851c0ed3fb4 to your computer and use it in GitHub Desktop.
Create Hotspot with WEP
[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)
@ppdouble
Copy link
Author

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