RaspbianでIPアドレスを固定する方法
1. /etc/dhcpcd.confを編集。
... #固定したいインターフェース interface eth0 #固定したいIPアドレス static ip_address=192.168.xxx.xxx/24 #ルータのIPアドレス static routers=192.168.xxx.xxx #ここもルータのIPアドレス static domain_name_servers=192.168.xxx.xxx
2. 再起動
sudo reboot
これで反映されます。