Page 1 of 1

How to create a static ip address

Posted: Sun Mar 29, 2020 8:28 pm
by Beorn_Bear
How does one setup a static ip address for a raspberry pi?!

Re: How to create a static ip address

Posted: Sun Mar 29, 2020 8:43 pm
by wh7qq
The easy way is to set it up in your router.

Re: How to create a static ip address

Posted: Sun Mar 29, 2020 8:56 pm
by DougieLawson
There's some arcane incantations in /etc/dhcpcd.conf. Take a look at your version of that file.

But, if your router has reserved addresses use that.

Re: How to create a static ip address

Posted: Sun Mar 29, 2020 10:23 pm
by deepo

Re: How to create a static ip address

Posted: Sun Mar 29, 2020 10:29 pm
by JohnsUPS
It might be easier/more convenient to create a reservation on your router instead. You will need to know the MAC address of the Pi (either the wired or the wireless MAC depending on how you're connecting).
The router will then always hand out that particular IP address to the device with the corresponding MAC.

Re: How to create a static ip address

Posted: Mon Mar 30, 2020 12:32 am
by stan_qaz
If using the GUI the network widget on the task bar offers IP settings as an option. Right-click the up/down arrow widget.
net-widget.png
Widget Menu
net-widget.png (18.11 KiB) Viewed 437 times
pref-menu.png
IP Menu
pref-menu.png (23.31 KiB) Viewed 437 times