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 ipv4.gateway

Change to static config

nmcli con mod enp0s3 ipv4.method manual

Set DNS Addresses

nmcli con mod enp0s3 ipv4.dns ""

Reload the Interface

nmcli con up enp0s3 
Leave a Reply