How To Configure Static IP Address On Ubuntu 22.042 min read
In this tutorial how to configure static ip address on ubuntu 22.04 server. Ubuntu 22.04 is latest release April 2022.
My server info: ###################################### IP address : 10.66.10.7 Operating System: Ubuntu 22.04 RAM : 2 GB Disk : 25 GB vCPU : 2 CPU op-mode(s) : 64-bit Service : Static IP Hostname (FQDN) : ubuntu.technologyrss.local ######################################
Step #01: Server update and upgrade.
[email protected]:~# apt update && apt upgrade -y
Then ssh enable for remote connect.
[email protected]:~# nano /etc/ssh/sshd_config [email protected]:~# service sshd restart [email protected]:~# reboot
Step #02: Open netplan config file.
[email protected]:~# vi /etc/netplan/00-installer-config.yaml
Insert below all lines into 00-installer-config.yaml and must be replace as your interface name, ip address and gateway etc.
network: ethernets: enp0s3: addresses: - 10.66.10.7/16 dhcp4: false routes: - to: default via: 10.66.10.1 nameservers: addresses: - 8.8.8.8 - 8.8.4.4 search: - workgroup version: 2
Then run below command for update netplan
[email protected]:~# netplan apply
or you can use debug command if any error.
[email protected]:~# netplan --debug apply
If any error show please see YouTube channel for more videos. Don’t forget subscribe my channel or share to your friends.
- How To Install Odoo 16 on Ubuntu 22.04 - May 14, 2023
- 12 Steps to Organize Photos on Your Computer - March 20, 2023
- 9 Ways to Speed Up Your MacBook Yosemite - February 21, 2023
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!