0
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 5 の ip 固定/解除

Posted at

概要

Raspberry Pi 5 (Raspberry Pi OS 12.7)
NetworkManager(nmcli) を用いて ip 固定 / 解除を行う
今回 Wired connection 1 を対象として行う

状態確認

$ sudo nmcli con show
NAME                UUID      TYPE      DEVICE
Wired connection 1  hogehoge  ethernet  eth0
...

変更の適用

$ sudo nmcli con down "Wired connection 1"
$ sudo nmcli con up "Wired connection 1"

固定(192.168.10.21/24 に固定)

$ sudo nmcli con modify "Wired connection 1" ipv4.method manual ipv4.address 192.168.10.21/24 ipv4.gateway 192.168.10.1 ipv4.dns 8.8.8.8

固定解除

$ sudo nmcli con modify "Wired connection 1" ipv4.method auto
0
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
0
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?