• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How do I set a static IP in Debian Linux?

NogginBoink

Diamond Member
My newly installed Debian box is working with a DHCP lease, but I need it to have a static IP address.

I managed to change the IP address with ifconfig but the machine reverted back to a dynamic IP address after a reboot.

I'm a Linux newbie; how do I set my machine to use a static IP address?
 
/etc/network/interfaces

Or you can set a static reservation on your DHCP server so it gets the same address every time.
 
also, man interfaces

with that statement, I'll also comment about how I love that all the commands have a man page (if they are installed via apt) and that more then 95% of those man pages are good enough to get you through anything you need.
 
Ya, I have my router give my machines a static IP based on MAC addresses, that saves me from having to put that in any OS configurations.
 
Back
Top