For When You Can't Have The Real Thing
[ start | index | login ]
start > Fedora > Server > 28 > Example nmcli Commands

Example nmcli Commands

Created by dave. Last edited by dave, one year and 203 days ago. Viewed 1,822 times. #8
[diff] [history] [edit] [rdf]




Some recently discovered examples:

# nmcli con

# nmcli con show enp0s25 | grep dns

# nmcli con modify "System ens192" ipv4.dhcp-hostname "wiki2"

# nmcli con modify enp0s25 ipv4.dns-search klondike.xdroop.local
# nmcli con mod em1 ipv4.dns-search "domain1.local,domain2.local,domain3.local"

# nmcli con modify enp0s25 ipv4.dns

# nmcli con add con-name ens1-static ifname ens1 type ethernet ip4

# nmcli con add type vlan ifname enp4s0.2023 dev enp4s0 id 2023
# nmcli con delete vlan-enp4s0.2023

# nmcli con mod enp9s0 ipv4.method manual ipv4.addresses


# nmcli dev wifi connect My-SSID --ask
# nmcli con mod My-SSID connection.autoconnect no

# nmcli connection add 
  type wifi con-name "MySSID" ifname wlan0 ssid "MySSID" -- 
  wifi-sec.key-mgmt wpa-eap 802-1x.eap peap 
  802-1x.phase2-auth mschapv2 802-1x.identity "dave"
# nmcli con mod My-SSID connection.autoconnect no
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt