咸鱼

咸鱼是以盐腌渍后,晒干的鱼

0%

Ubuntu 18.04~20.04配置静态IP

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 查看IP信息
$ ip addr

$ sudo vim /etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
ens33:
dhcp4: false
addresses: [192.168.0.66/24]
optional: true
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8,4.4.4.4]
version: 2

# 应用修改
$ sudo netplan apply