高田のあたりまえノート単語集
mindia高田のあたりまえノート単語集見出し語

interfacesファイル

medicalcloud · 2012-07-31 更新

/etc/network/interfaces

vbox上でホストOSのものを設定するときには、ゲストOSのipアドレスとネットマスクを確認して使う。

以下、ぼくの設定は、以下に。
人によって設定を変えなくてはいけないのは、最後に書いてある
addressとnetmaskだけかな。
普通なら、netmaskは、ホストと同じ。addressは、ネットワーク部はホストのaddressと同じ。ホスト部は、好きな数字でOK。

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0

iface eth0 inet dhcp
#NetworkManager#iface eth0 inet dhcp

#Secondary Host Only
auto eth1
allow-hotplug eth1
iface eth1 inet static

address 192.168.56.100
netmask 255.255.255.0