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.

ubuntu server 20.04 LTS IPアドレス固定

Last updated at Posted at 2021-06-05

Ubuntu 20.04 LTS
Ubuntu 22.04 LTS

インターフェイス eth0
ルーター 192.168.0.1
ネームサーバー 192.168.0.1
固定ipアドレス 192.168.0.6

/etc/netplan/50-cloud-init.yaml
network:
    ethernets:
        eth0:
            addresses: [192.168.0.6/24]
            dhcp4: false
            gateway4: 192.168.0.1
            nameservers:
                addresses: 
                - 192.168.0.1
    version: 2
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?