LoginSignup
4
5

More than 5 years have passed since last update.

Raspbian Stretch(2017/8/16リリース版)でIP固定にする

Last updated at Posted at 2017-08-20

これまではeth0だったが、enxb827eba2dfe7に変更になった。
(Raspberry Pi 1にて確認。)
kernel 4.9.41+に上がったのが原因かと思われる。

$ ip a s | grep glo

にてどのインタフェース名で認識しているか確認。自分の場合はenxb827eba2dfe7だった。

/etc/dhcpcd.conf
- interface eth0
+ interface enxb827eba2dfe7
  static ip_address=192.168.0.115/24
  static routers=192.168.0.1
  static domain_name_servers=192.168.0.1

上記を /etc/dhcpcd.conf に記述しOS再起動すればよい。

4
5
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
4
5