Linux 設定 ネットワーク etc network interfaces - git0331-lgtm/Knowledge GitHub Wiki
# 静的IP
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
# DHCP
auto eth0
iface eth0 inet dhcp