Ubuntu 18.04/18.10 Set Static IP

Опубликовано: 28 Сентябрь 2024
на канале: Tate A
14,877
99

How to set a static IP on Ubuntu on 18.04 LTS or 18.10 Bionic Beaver

CLI

sudo nano /etc/netplan/50-cloud-init.yaml

```
network:
ethernets:
ens3:
addresses: [10.10.0.5/8]
gateway4: 10.0.0.1
nameservers:
addresses: [10.10.0.1]
dhcp4: no
version: 2

```

sudo netplan apply

Please like and subscribe!

#TateA