Syntaxe
[nbsp]
: nmcli connection modify { ARGUMENTS | help }
ARGUMENTS := [id | uuid | path] <ID> ([+|-]<setting>.<property> <value>)+
Modifie une ou plusieurs des propriétés du profil de connexion.
Le profil est identifié par son nom, son UUID ou son D-Bus. Pour les propriétés aux valeurs multiples
vous pouvez utiliser en option le préfixe « + » ou «
[nbsp]
-» préfixe devant le nom de la propriété.
Le signe « + » permet l’ajout d’éléments au lieu d’écraser la valeur entière.
Le « -
[nbsp]
» signe permet de supprimer les éléments sélectionnés, plutôt que la valeur entière.
Exemples
[nbsp]
:
nmcli con mod home-wifi wifi.ssid rakosnicek
nmcli con mod em1-1 ipv4.method manual ipv4.addr "192.168.1.2/24, 10.10.1.5/8"
nmcli con mod em1-1 +ipv4.dns 8.8.4.4
nmcli con mod em1-1 -ipv4.dns 1
nmcli con mod em1-1 -ipv6.addr "abbe::cafe/56"
nmcli con mod bond0 +bond.options mii=500
nmcli con mod bond0 -bond.options downdelay