Raspberry Pi 環境構築 - 固定IP -
1. インターネット設定ファイルを開く
$sudo emacs -nw /etc/network/interfaces
2. 以下の内容に変更(適せん数値等変更)
auto lo iface lo inet loopback iface eth0 inet static address 192.168.0.230 netmask 255.255.255.0 gateway 192.168.0.1 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp
3. DNSサーバ設定ファイルを開く
$sudo emacs -nw /etc/resolv.conf
4. 以下の内容に変更(適せん数値等変更)
nameserver 192.168.0.1
5. ネットワーク設定の適用
$sudo /etc/init.d/networking reload