From LedHed's Wiki
Revision as of 08:41, 15 June 2021 by Ledhed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

Sometimes you want to change your Raspberry Pi's IP without having to reboot, here's how!


IP ADDR

So in newer versions of Raspbian and RaspberryPi OS (Jessie and above) when you make changes to:

/etc/dhcpcd.conf

The changes don't take effect upon service restart.

sudo service dhcpcd restart

Here's what you need to do: Edit:

/etc/dhcpcd.conf

Run:

sudo ip addr flush dev eth0

Then:

sudo service dhcpcd restart

DONE!!!


Reference

https://raspberrypi.stackexchange.com/questions/76655/change-static-ip-without-rebooting