From LedHed's Wiki
Jump to: navigation, search
(Created page with "== 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 (J...")
 
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
  sudo service dhcpcd restart
 
  sudo service dhcpcd restart
  
Here's what you need to do:
+
Here's what you need to do: <br>
 
Edit:
 
Edit:
 
  /etc/dhcpcd.conf
 
  /etc/dhcpcd.conf
 
Run:
 
Run:
 +
sudo service dhcpcd stop
 
  sudo ip addr flush dev eth0
 
  sudo ip addr flush dev eth0
Then:
+
  sudo service dhcpcd start
  sudo service dhcpcd restart
+
  
 
DONE!!!
 
DONE!!!

Latest revision as of 08:45, 15 June 2021

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 service dhcpcd stop
sudo ip addr flush dev eth0
sudo service dhcpcd start

DONE!!!


Reference

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