network manager - How to connect to a WPA2 enterprise with nmcli in a non interactive mode? - Ask Ubuntu
i able connect nmcli wpa enterprise network in interactive mode launched by
nmcli con edit id myname nmcli refuses change 802-1x values while not in edit mode:
nmcli c modify myname wifi-sec.key-mgmt wpa-eap error: failed modify connection 'myname': 802-1x: 'wpa-eap' security requires '802-1x' setting presence how suggest connect without "setting presence" don't want since want automatize connection setting process.
kind of late response, maybe stumbles upon same problem , may looking solution:
this looks trying set wifi-sec.key-mgmt connection property before setting 802.1x values. put simplier, must put edits in specified order, 802.1x settings first, , wifi-sec keys later.
however, if not case - have connection added? can add empty template using following command:
nmcli con add type wifi [ifname <interface_name>] [con-name <connection_name_shown>] [ssid <ssid_of_wifi_connection>]
all parts (not sure con-name) in [] can skipped, need add them through modify command later on network run, unless have 1 wlan interface.
edit: looks wrong both solutions, since happened exact same error. found solution - set 802-1x settings in 1 line, e.g.:
nmcli c modify <connection_name> 802-1x.eap <eap_mode> 802-1x.identity <username> 802-1x.phase2-auth <auth_type>
for i've tested, these 3 settings minimum setting 802-1x property. leave previous answer, believe these still might applicable part of solution.
Comments
Post a Comment