1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

概要

[設定内容]

  • インターフェース名:ens1
  • IPアドレス:192.168.0.1
  • サブネット:255.255.255.0
  • ゲートウェイ:192.168.0.254
  • DNS:1.1.1.1(クラウドフレア)

インターフェース名については、"ip a" で確認

設定方法

以下のファイルに、それぞれの環境に合わせた内容を書き込みます。

/etc/systemd/network/”任意の名前”
[Match]
Name=ens1
[Network]
Address=192.168.0.1/24
Gateway=192.168.0.254
DNS=1.1.1.1

設定反映

bash
sudo systemctl restart systemd-networkd
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?