1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Raspberry Pi OS の IP アドレス固定方法

Last updated at Posted at 2025-02-25

■ 概要
Raspberry Pi Imager にて、IPアドレスを設定し忘れた or Raspberry Pi Imager を使用せずにインストール後、/etc/dhcpcd.conf を使用せずにIPアドレスを固定する方法のメモ。
dhcpcd.confにてIP アドレスを固定する記事はたくさんありますが、NetworkManager を使用した方法はあまり見つからなかったので、メモとして記載します。


■ コマンド

sudo vi /etc/NetworkManager/system-connections/preconfigured.nmconnection

■ 設定内容

[ipv4]
method=manual  # method=auto を修正
address=192.168.1.1
gateway=192.168.1.254
dns=192.168.1.254;192.168.1.253 # DNS サーバを複数設定する場合は、 ; で区切る
1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?