How to setup static IP address on MK3S+ PrusaLink raspberry pi zero 2 w
 
Notifications
Clear all

How to setup static IP address on MK3S+ PrusaLink raspberry pi zero 2 w  

  RSS
jamdog2477
(@jamdog2477)
Active Member
How to setup static IP address on MK3S+ PrusaLink raspberry pi zero 2 w

My router often needs rebooting and when it does I loose any IP reservations, and my printer gets a new IP address each time. meaning I keep having to edit my prusaslicer physical printer IP address each time.

Really annoying...

can someone tell me how to setup my PrusaLink raspberry pi zero 2 w with a static IP address please?

 

Posted : 06/12/2023 4:18 am
karl-herbert
(@karl-herbert)
Illustrious Member
RE: How to setup static IP address on MK3S+ PrusaLink raspberry pi zero 2 w

https://www.tomshardware.com/how-to/static-ip-raspberry-pi

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Posted : 06/12/2023 5:17 am
_KaszpiR_
(@_kaszpir_)
Honorable Member
RE:

You should set static address reservation per MAC address on the router, most modern devices allow it.

Another option worth to check is setting time for DHCP lease, for example 24h is usually enough.

If your router needs rebooting often then maybe better replace it, network devices should be able to run for weeks without reboots (usually only because of firmware updates of the router).

More advanced option would be to make router to disable DHCP server on it and set RPI as DHCP server ( using for example pihole project), but this is the most complex setup.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 06/12/2023 8:53 am
Nikhil S.
(@nikhil-s)
Trusted Member
RE: How to setup static IP address on MK3S+ PrusaLink raspberry pi zero 2 w

Just a quick comment here. A lot of devices in the past few years have been getting lazy with their network user interfaces and just relying on DHCP only.  A good network configuration **should** allow setting a true static IP on the device side.  Relying on static leases is a suboptimal strategy typically started by IoT devices and crappy home assistants without proper setup like Amazon Alexa.

Brand new to 3D printing and my 5-tool XL is my first 3D Printer!Check out my Multi-Tool fork of PrusaSlicer to mix and match nozzle sizes.

Posted : 03/01/2024 4:41 pm
_KaszpiR_
(@_kaszpir_)
Honorable Member
RE:

I would rather be on the other side, which is:
- let devices use DHCP and obey what it offiers
- let DHCP server control every aspect of the network (adress/routing/time servers etc)

With Pi-hole this is really trivial to set DHCP static leases as you want.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 03/01/2024 7:59 pm
Tojik
(@tojik)
Member Moderator
RE: How to setup static IP address on MK3S+ PrusaLink raspberry pi zero 2 w

Yeah, you can call it lazy. But the other option is to modify system settings from PrusaLink running on the pi. So either PrusaLink gets the rights to modify system settings which makes it a while lot less secure (the passwordless sudo on pis already makes it bad tho, should probably disable that) or there will be another app runing besides PrusaLink communicating with it on what it needs to set. This is not trivial to do reliably as PrusaLink can be installed on any linux device running different networking software. I'd much rather leave that on the user. "Just" log in over ssh and set it in the appropriate settings yourself. I am not able to do this reliably in any reasonable amount of time by myself, sorry :/

Posted : 04/01/2024 4:03 pm
Share: