How to Configure a Static IP Address on Ubuntu Desktop

c

Identify your Ethernet interface name. Open a terminal and run:

nmcli device status

Since you’re already using NetworkManager (confirmed by the renderer and nmcli device status), this is the most direct and cleanest way:

nmcli con show  # Get the actual connection name for enp3s0

You’ll probably see Wired connection 1 associated with enp3s0.

Then set the static IP:

nmcli con mod "Wired connection 1" \
  ipv4.addresses 192.168.0.61/24 \
  ipv4.gateway 192.168.0.1 \
  ipv4.dns "8.8.8.8 8.8.4.4" \
  ipv4.method manual

Bring it up:

nmcli con down "Wired connection 1" && nmcli con up "Wired connection 1"

That’s it. You can confirm with:

ip a show enp3s0

Leave a Reply

Your email address will not be published. Required fields are marked *