0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu20.04 Raspberry Pi 4 IPアドレス固定方法

Posted at

ubuntu20.04をRaspiにインストールした際の,IPアドレス固定方法

step1. /etc/netplan/50-cloud-init.yamlを変更

変更前に念の為バックアップを取っておく

sudo cp /etc/netplan/50-cloud-init.yaml ~/

バックアップを取ったら以下のように書き換える

/etc/netplan/50-cloud-init.yaml
network:
    ethernets:
        eth0:
            dhcp4: false
            addresses: [192.168.0.233/24]
            gateway4: 192.168.0.1
            nameservers:
                addresses: [192.168.0.1]
    version: 2

step2. 設定を適用する

sudo netplan apply
sudo reboot
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?