Header Shadow Image


Set Static IP on Ubuntu Server

Via the CLI:

root@tom-G73Sw:~# cd /etc/netplan/
root@tom-G73Sw:/etc/netplan# cat 01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
enp5s0:
dhcp4: no
addresses: [192.168.0.15/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.224,192.168.0.46,192.168.0.51]
root@tom-G73Sw:/etc/netplan#

Then issue:

netplan try

so changes take effect.  Via UI, go to Activities then Settings, select Network or WiFi, based on which interface you wish to set the IP on.  Typically leaving the WiFi as DHCP might make some sense for redundancy.  Your choice:

Ubuntu Static IP Configuration via GUI

Ubuntu Static IP Configuration via GUI

Cheers,

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

     
  Copyright © 2003 - 2025 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License

 

0
Would love your thoughts, please comment.x
()
x
The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.