LoginSignup
3
6

More than 5 years have passed since last update.

Raspberry Pi 固定IP設定

Posted at

Raspberry Piに固定IPを設定する方法です。

固定IP:192.168.1.2
サブネットマスク:255.255.255.0
デフォルトゲートウェイ:192.168.1.1
の場合

sudo vi /etc/network/interfaces
interfaces
auto lo

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

address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6