DropVPS Team
Writer: Cooper Reagan
How To Configure Static IP On Debian 12 ?

Table of Contents
What you will read?
Setting a static IP on Debian 12 ensures your system always uses the same network address, which is useful for servers or devices that require a fixed connection. Debian 12 uses Netplan or traditional interfaces depending on the setup.
Step 1: Identify Your Network Interface
Check your network interfaces using:
ip a
Look for names like eth0, enp0s3, or ens33.
Step 2: Edit Netplan Configuration
Open your Netplan YAML file. Usually located in /etc/netplan/:
sudo nano /etc/netplan/01-netcfg.yaml
Step 3: Configure a Static IP
Modify the file to set a static IP. Example configuration:
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
addresses:
- 192.168.1.50/24
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
Replace enp0s3 with your interface name and adjust the IP, gateway, and DNS servers as needed.
Step 4: Apply the Configuration
Save the file and apply the changes with:
sudo netplan apply
Step 5: Verify the Static IP
Check that your interface now uses the assigned IP:
ip a
You should see your static IP listed for the chosen interface. Your Debian 12 system now has a static IP configured and ready for consistent network use.