[Debian] 静的ネットワークの設定と設定ファイル

[Debian] 静的ネットワークの設定と設定ファイル

設定ファイルの作成

vi /etc/network/interfaces.d/if-eho0


auto eth0
iface eth0 inet static
        address         192.168.0.10
        netmask         255.255.0.0
        gateway         192.168.0.1
        dns-nameservers 192.168.0.2

再起動

systemctl restart network
技術ブログ一覧へ戻る