ここではネットワークの設定を行う. またここでは PCI のネットワークデバイスを使用する.
/etc/hosts, /etc/resolv.conf, /etc/network/interfaces
をそれぞれ以下のように編集する.
※入れ替え日までは IP アドレスは予備機 usuzumi のものである 133.50.160.52 に設定すること
127.0.0.1 localhost 133.50.160.52 usuzumi.ep.sci.hokudai.ac.jp usuzumi # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
search ep.sci.hokudai.ac.jp nameserver 133.87.45.70 nameserver 133.87.45.66 nameserver 133.87.1.11
# 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 static
address 133.50.160.52
netmask 255.255.254.0
network 133.50.160.0
broadcast 133.50.161.255
gateway 133.50.160.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 133.87.45.70 133.87.45.66 133.87.1.11
dns-search ep.sci.hokudai.ac.jp
# # deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 NETINST Binary-1 20150906-11:09]/ jessie main #deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 NETINST Binary-1 20150906-11:09]/ jessie main deb http://dennou-h.gfd-dennou.org/debian/ jessie main deb-src http://dennou-h.gfd-dennou.org/debian/ jessie main deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main # jessie-updates, previously known as 'volatile' deb http://dennou-h.gfd-dennou.org/debian/ jessie-updates main deb-src http://dennou-h.gfd-dennou.org/debian/ jessie-updates main
設定を有効にする(変更がない場合は以下のコマンドは必要ない).
# ifup eth0 # aptitude update # aptitude upgrade
| 最終更新日: 2015/11/24 三上 峻 | Copyright © 2000-2015 epcore |