88 - How to setup Static IP address in Ubuntu Linux 22.04 with netplan 2022
43.2 هزار بار بازدید -
3 سال پیش
-
Here I show how to
Here I show how to set a static IP on Ubuntu 22.04 (among other distro's using netplan).
and here are the commands
lsb_release -a
ip link show
sudo nano /etc/netplan/01-network-manager-all.yaml
sudo netplan apply
ip address show
and the contents of the file (for example)
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
addresses:
- 192.168.122.150/24
nameservers:
addresses: [192.168.122.1, 1.1.1.1]
routes:
- to: default
via: 192.168.122.1
netplan.io/examples/#configuration
------------------------------------------ Get Social ------------------------------------------
Facebook: www.facebook.com/crazylogica
Twitter: twitter.com/crazy__logic
Instagram: www.instagram.com/crazy__logic
Github: github.com/crazy-logic
Twitch: www.twitch.tv/crazy__logic
Webby: www.crazy-logic.co.uk/.
------------------------------------------ Go Shopping ------------------------------------------
Amazon affiliate links
► Raspberry Pi kit - amzn.to/3ebdtQJ
3 سال پیش
در تاریخ 1401/01/21 منتشر شده
است.
43,298
بـار بازدید شده