ラズベリーパイ 固定IP設定(wheezy)

/etc/network/interfacesを編集。dhcpをstaticに変え、IPアドレス・ネットマスク・ゲートウェイを指定。設定の反映のさせ方がようわからなんのでreboot。これでおk

auto lo
iface lo inet loopback
# iface eth0 inet dhcp
iface eth0 inet static

address 192.168.x.100
netmask 255.255.255.0
gateway 192.168.x.1