← Back to blog
bpdubuntu

Networking on Ubuntu: Understanding Static IP vs. DHCP

17 October 2025bpd · ubuntu

Take Control of Your Network Connection

When you connect your Ubuntu machine to a network, it typically gets an IP address automatically using a system called DHCP. But what if you need a consistent, unchanging address? The book ‘Ubuntu System Administration Guide’ explains how and why you might want to set a static (or manual) IP address.

When to Use a Static IP

Setting a static IP is particularly useful when you need to reliably connect to a specific device on your network, like an IP camera or a server, that doesn’t have a router to assign it an address. By setting your computer’s IP address to be on the same network range as the device, you can ensure a direct and stable connection.

How to Configure It

In Ubuntu, you can easily switch from DHCP to a manual IP configuration in your ‘Advanced Network Settings’. You will need to provide three key pieces of information:

  1. IP Address: A unique address on the network (e.g., 192.168.1.49).
  2. Netmask: Defines the size of the network (usually 255.255.255.0 for home networks).
  3. Gateway (Router): The address of your router that connects you to the internet.

This simple change gives you greater control and reliability for specific networking tasks.


This post is based from content of the book Ubuntu System adminstration guide. And the book can be found here https://www.amazon.com/stores/Mattias-Hemmingsson/author/B0FF5CQX13