Linux Ubuntu: Set Static IP Address with nmcli (Terminal & GUI)
HardReset.InfoJanuary 2, 20267 min14 views
8 connections·11 entities in this video→Setting a Static IP Address on Ubuntu Linux
- 💡 This video demonstrates how to set a static IP address on Ubuntu Linux, primarily using the
nmclicommand-line tool, with a brief mention of the graphical Settings GUI. - 📌 While the GUI offers a quick option, the terminal method using
nmcliis presented as a more universally applicable solution across Ubuntu distributions.
Checking Current Network Configuration
- 🔍 Before making changes, you can check your current IP address and gateway using
ip aornmcli device show. - 📄 To identify the network connection name, which is crucial for modification, use
nmcli connection show.
Modifying Network Settings with nmcli
- 🎯 The core process involves using
nmcli connection modifyfollowed by the connection name. - 🏠 To set a static IP address, use
ipv4.addresseswith your desired IP and subnet mask (e.g.,192.168.88.100/24). - ➡️ Configure the gateway using
ipv4.gatewayand DNS servers usingipv4.dns(e.g.,8.8.8.8and8.8.4.4). - ⚙️ Crucially, change the
ipv4.methodfrom automatic (DHCP) tomanual.
Activating and Verifying Changes
- 🚀 After modifying the settings, reactivate the connection using
nmcli connection up <connection_name>. - ✅ Verify the changes by checking your IP address again with
ip aornmcli device show, confirming the new static IP, gateway, and DNS settings. - 🖥️ The changes can also be visually confirmed in the Ubuntu Settings GUI under IPv4 configuration.
Alternative: Netplan YAML Configuration
- ⚠️ For newer Ubuntu releases, network configuration might be managed via Netplan YAML files located in
/etc/netplan/. - 📝 While this method is an alternative, editing these YAML files is presented as less straightforward for a general tutorial compared to
nmcli.
Knowledge graph11 entities · 8 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover · drag to explore
11 entities
Chapters3 moments
Key Moments
Transcript28 segments
Full Transcript
Topics13 themes
What’s Discussed
Static IP AddressUbuntu LinuxnmcliNetworkManagerIP ConfigurationGateway ConfigurationDNS ConfigurationDHCPNetplanYAML FilesCommand Line InterfaceTerminalNetwork Settings
Smart Objects11 · 8 links
Product· 1
Concepts· 8
Company· 1
Location· 1