Skip to content

Articles about misc

Thoughts on software development, games, design, and the things I learn along the way.

Advertisement Talescape
Assign a Static IP Address in a Local Area Network

Assign a Static IP Address in a Local Area Network

You can change the assigned IP address of your computer by editing the file /etc/network/interfaces. Search there for your primary Ethernet controller (usually eth0). Change the value from dhcp to static. Then you can specify address (IP address) and gateway (usually your router). Then restart the network or computer. Tested under Ubuntu and Rasbperry Pi OS.