Template:NM CREATE AP CMDS: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
Use the following commands to create the initial AP setup
  # nmcli con add type wifi ifname {{{dev|<device>}}} mode ap con-name {{{name|<name>}}} ssid {{{ssid|<ssid>}}} && \
 
  nmcli con modify {{{name|<name>}}} 802-11-wireless.band {{{band|<band>}}} && \
  # nmcli con add type wifi ifname wlan0 mode ap con-name {{{name|<name>}}} ssid {{{ssid|<ssid>}}}
  nmcli con modify {{{name|<name>}}} 802-11-wireless.channel {{{channel|<channel>}}} && \
# nmcli con modify {{{name|<name>}}} 802-11-wireless.band {{{band|<band>}}}
  nmcli con modify {{{name|<name>}}} 802-11-wireless-security.key-mgmt {{{key-mgmt|<key-mgmt>}}} && \
# nmcli con modify {{{name|<name>}}} 802-11-wireless.channel {{{channel|<channel>}}}
  nmcli con modify {{{name|<name>}}} 802-11-wireless-security.proto {{{proto|<proto>}}} && \
# nmcli con modify {{{name|<name>}}} 802-11-wireless-security.key-mgmt {{{key-mgmt|<key-mgmt>}}}
  nmcli con modify {{{name|<name>}}} 802-11-wireless-security.group {{{group|<group>}}} && \
# nmcli con modify {{{name|<name>}}} 802-11-wireless-security.proto {{{proto|<proto>}}}
  nmcli con modify {{{name|<name>}}} 802-11-wireless-security.pairwise {{{pairwise|<pairwise>}}} && \
# nmcli con modify {{{name|<name>}}} 802-11-wireless-security.group {{{group|<group>}}}
  nmcli con modify {{{name|<name>}}} 802-11-wireless-security.psk {{{passphrase|<passphrase>}}} && \
# nmcli con modify {{{name|<name>}}} 802-11-wireless-security.pairwise {{{pairwise|<pairwise>}}}
  nmcli con modify {{{name|<name>}}} ipv4.method shared && \
# nmcli con modify {{{name|<name>}}} 802-11-wireless-security.psk {{{passphrase|<passphrase>}}}
  nmcli con up {{{name|<name>}}}
# nmcli con modify {{{name|<name>}}} ipv4.method shared
# nmcli con up {{{name|<name>}}}
</includeonly>
</includeonly>

Latest revision as of 20:51, 21 July 2023