Beorn_Bear
Posts: 154
Joined: Tue Feb 27, 2018 6:04 pm
Location: Vancouver, Canada

How to create a static ip address

Sun Mar 29, 2020 8:28 pm

How does one setup a static ip address for a raspberry pi?!

wh7qq
Posts: 1480
Joined: Thu Oct 09, 2014 2:50 am

Re: How to create a static ip address

Sun Mar 29, 2020 8:43 pm

The easy way is to set it up in your router.

User avatar
DougieLawson
Posts: 40126
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to create a static ip address

Sun Mar 29, 2020 8:56 pm

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.
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

deepo
Posts: 611
Joined: Sun Dec 30, 2018 8:36 pm
Location: Denmark

Re: How to create a static ip address

Sun Mar 29, 2020 10:23 pm


JohnsUPS
Posts: 188
Joined: Fri Jul 06, 2018 2:13 am
Location: USA

Re: How to create a static ip address

Sun Mar 29, 2020 10:29 pm

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.

stan_qaz
Posts: 57
Joined: Sun Sep 30, 2012 6:53 am
Location: Sunny Arizona

Re: How to create a static ip address

Mon Mar 30, 2020 12:32 am

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 391 times
pref-menu.png
IP Menu
pref-menu.png (23.31 KiB) Viewed 391 times

Return to “General discussion”