How you set it can vary depending on what you’re running. Linux is all about choice, and choice means multiple ways to do a thing. Places to look:
raspi-config - catchall CLI tool on Raspbian, not sure if it covers both of the following, but it’s a good option to start with
/etc/network/interfaces - the Debian way to do things
Network Manager - usually used for desktops, but can be used by servers; if the first two don’t work, try this
But you could also have installed something different. If you post your OS and version and what you’re running on it, I can give better advice.
That said, normal networking rules apply:
don’t set a static lease in your DHCP range, or you could get conflicts, which can look like it’s not working
consider using DHCP and setting the static lease through your router; use the MAC address and you’ll never need to mess with network settings on the Pi
if you set on the pi, make sure everything is correct (netmask, gateway, interface)
Appoxo@lemmy.dbzer0.com 19 hours ago
I believe I tried the exact raspberry forum entry but it didnt catch on even with reboots and whatever I tried.
femtech@midwest.social 18 hours ago
If you can I would set static IPs from the router though. That’s what I do as another device can still take the IP and cause issues.
Appoxo@lemmy.dbzer0.com 14 hours ago
Too bad when the DHCP server is down with the proxmox host ;)
sugar_in_your_tea@sh.itjust.works 18 hours ago
At least set it outside your DHCP range.
I have my DHCP set to use from
.100
and up, and my static addressee are in the.1-99
range.I still set it through my router so I have a place to look up which one is which (they’re piling up), but they’re all in that range.
sugar_in_your_tea@sh.itjust.works 17 hours ago
How you set it can vary depending on what you’re running. Linux is all about choice, and choice means multiple ways to do a thing. Places to look:
raspi-config
- catchall CLI tool on Raspbian, not sure if it covers both of the following, but it’s a good option to start withBut you could also have installed something different. If you post your OS and version and what you’re running on it, I can give better advice.
That said, normal networking rules apply:
Appoxo@lemmy.dbzer0.com 10 hours ago
I will remember it for next time I need to set a static IP in Linux. Comment is saved and hopefully I can reference it.
I appreciate the effort you took to help me and anyone that is still looking for help :)
sugar_in_your_tea@sh.itjust.works 10 hours ago
No worries. Hopefully you have things sorted.