1. Knowledge base
  2. Networking
  3. How to Configure Static IP on Debian…

How to Configure Static IP on Debian 10

Updated on 20 November 2025 3 min read Snel.com support team

Introduction

In a typical network, there are two ways to assign IP addresses. One is using DHCP and another is static IP assignment. DHCP or Dynamic Host Control Protocol dynamically assigns an IP address to an interface. It requires a DHCP server running in the network. In the static IP assignment, we manually assign the IP address, routing gateway, and DNS resolvers. Static IP assignment gives to more control on assigning an IP address and setting the DNS resolvers.

In this tutorial, we will learn how to assign static IP address on Debian 10 “Buster” server.

Prerequisites

But, if you would rather spare time and leave it up to our skilled IT-professionals, view our Managed Servers.

These are the steps to configure Static IP

Log in to shell using SSH

If you are not already logged into your remote server, login via SSH by following this guide.

Find Network Interfaces

Run the following command to get the active network interfaces.

Code
ip link show

As we can see in the above screenshot, lo is the loopback interface which is an internal virtual interface used by the computer to communicate with itself.

The second interface ens18 is the active Ethernet adapter, which our server is using to connect to the internet. Now that we have found the adapter interface, we will assign the static IP on this interface. In your case, the adapter name can be different.

Find the IP address assigned to the Interface

If you are a Snel user, you can go to the VPS dashboard and navigate to Network >> Interfaces.

Under interfaces, you will find the IP address assigned to the adapter.

Note that the example IP address is shown near 1, which is 192.168.0.2. The subnet mask will be 255.255.255.0 and Gateway will be 192.168.0.1. DNS resolver servers are marked at 2 and 3. In your actual case, these addresses will be different.

If you are unsure about these values, please feel free to contact Snel Support.

Assign Static IP Address

Edit the network configuration file by running the following command.

Code
sudo nano /etc/network/interfaces

This file may look like the following.

Edit the configuration as follows.

Code
auto ens18iface ens18 inet static  address 192.168.0.2  netmask 255.255.255.0  gateway 192.168.0.1  dns-nameservers 89.207.128.252 89.207.130.252

Make sure not to change the loopback adapter config. After the change, it will look something like the following screenshot.

Save the file and exit from the editor.

Restart Networking Service

Restart the networking service so that the updated configuration can be applied. Run the command.

Code
sudo systemctl restart networking

Conclusion

In this tutorial, we have learned how to configure a static IP address on Debian 10 “Buster” server. Your server is now configured to use static IP address.

Was this article helpful?

Spot a mistake in this article? Email us at support@snel.com

This article was last checked on 20 November 2025. · 453,525 views

Your own VPS online within 2 minutes

Windows or Linux, root access and hosted in Rotterdam.

View VPS from € 6.99

Support

Can't figure it out? We are happy to help

You always talk to a real engineer. We typically respond within 15 to 30 minutes, and 24/7/365 for outages.

Call us

+31 88 3 088 099

Create a ticket

Through the client area we immediately see which service it is about.

Email us

Send your question via the contact form, also outside office hours.