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