RedHat 8 – How to Fix Network IP Address using nmcli

Learn how to define a static address on Red Hat 8 using Network Manager command line tool. Secure your network defining statis addresses based on MACs.

Verify Red Hat System Interfaces

ip a

Set static IP Address and Gateway

nmcli con mod enp0s3 ipv4.addresses 192.168.1.100/24 ipv4.gateway 192.168.1.1

Change to static config

nmcli con mod enp0s3 ipv4.method manual

Set DNS Addresses

nmcli con mod enp0s3 ipv4.dns "8.8.8.8"

Reload the Interface

nmcli con up enp0s3 
Leave a Reply