Linux – Network Manager – change static IP via nmcli

1 . Display available network adapters

[root@HOST]# nmcli conn show
Wired connection 2 7d08ebcc-94a7-337f-9b74-edecb7cbfd37 ethernet ens192

2. Change the IP address, gateway and DNS:

[root@HOST]# nmcli connection modify 7d08ebcc-94a7-337f-9b74-edecb7cbfd37 ipv4.address
[root@HOST]# nmcli conn modify 7d08ebcc-94a7-337f-9b74-edecb7cbfd37 ipv4.gateway
[root@HOST]# nmcli conn mod 7d08ebcc-94a7-337f-9b74-edecb7cbfd37 ipv4.method manual
[root@HOST]# nmcli conn mod 7d08ebcc-94a7-337f-9b74-edecb7cbfd37 ipv4.dns
[root@HOST]# nmcli conn up 7d08ebcc-94a7-337f-9b74-edecb7cbfd37
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/11)

LINUX – Network Manager – How to get network adapter information

Here is short info how to get network adapter info for systems with network manager:
nmcli dev list iface wlan0

example output:

GENERAL.DEVICE:                         wlan0
GENERAL.TYPE:                           802-11-wireless
GENERAL.VENDOR:                         Broadcom Corporation
GENERAL.PRODUCT:                        BCM4313 802.11b/g/n Wireless LAN Controller
GENERAL.DRIVER:                         brcmsmac
GENERAL.DRIVER-VERSION:                 3.16.0-38-generic
GENERAL.HWADDR:                         00:26:82:9e:AF:11
GENERAL.STATE:                          100 (connected)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.3/0000:44:00.0/bcma0:0/net/wlan0
GENERAL.IP-IFACE:                       wlan0
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.CONNECTION:                     /org/freedesktop/NetworkManager/ActiveConnection/0
CAPABILITIES.SPEED:                     65 Mb/s
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{1}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   26d879c4-0d6f-4000-bf02-43c687416e1e | Auto IntoTheWild
WIFI-PROPERTIES.WEP:                    yes
WIFI-PROPERTIES.WPA:                    yes
WIFI-PROPERTIES.WPA2:                   yes
WIFI-PROPERTIES.TKIP:                   yes
WIFI-PROPERTIES.CCMP:                   yes
WIFI-PROPERTIES.AP:                     yes
WIFI-PROPERTIES.ADHOC:                  yes
AP[1].SSID:                             'WiFI-NamE'
AP[1].BSSID:                            CC:AB:BB:12:33:33
AP[1].MODE:                             Infrastructure
AP[1].FREQ:                             2412 MHz
AP[1].RATE:                             54 MB/s
AP[1].SIGNAL:                           37
AP[1].SECURITY:                         WPA WPA2
AP[1].ACTIVE:                           no
AP[2].SSID:                             'AnothErWiFi'
AP[2].BSSID:                            34:3E:1F:33:E2:33
AP[2].MODE:                             Infrastructure
AP[2].FREQ:                             2437 MHz
AP[2].RATE:                             54 MB/s
AP[2].SIGNAL:                           52
AP[2].SECURITY:                         WPA2
AP[2].ACTIVE:                           yes
IP4.ADDRESS[1]:                         ip =, gw =
IP4.DOMAIN[1]:                          home
DHCP4.OPTION[1]:                        domain_name = home
DHCP4.OPTION[2]:                        expiry = 1451147274
DHCP4.OPTION[3]:                        broadcast_address =
DHCP4.OPTION[4]:                        dhcp_message_type = 5
DHCP4.OPTION[5]:                        dhcp_lease_time = 604800
DHCP4.OPTION[6]:                        ip_address =
DHCP4.OPTION[7]:                        routers =
DHCP4.OPTION[8]:                        subnet_mask =
DHCP4.OPTION[9]:                        domain_name_servers =
DHCP4.OPTION[10]:                       network_number =
DHCP4.OPTION[11]:                       dhcp_server_identifier =