cancel

[Technical Tips] How to set up static IP address on Debian

2026-08-25

In many industrial network environments, devices require a static IP address to ensure they retain the same IP address after a system reboot, DHCP lease renewal, or network reconnection. Using a static IP address helps improve network stability and simplifies remote management, device communication, and system maintenance.

This guide demonstrates two methods for configuring a static IP address on Debian:

  • DHCP Reservation (IP Binding) Verification
  • Manual static IP configuration (for environments without DHCP reservations)

 

Please select the appropriate method based on your network environment:

  • If DHCP Reservation (IP binding) is enabled on your network, the device will automatically obtain a static IP address; no manual configuration is required.
  • If your network does not support DHCP Reservation, please follow the instructions in this document to configure a static IP address.

 

banner
 

Preparation

Before you begin configuring a static IP address, please prepare the following equipment and network environment:

  • VDX3-6755 Embedded Single-Board Computer (supports VDX series through VEX2 series)
  • Storage device (this test uses a 16GB SATA DOM; a capacity of 8GB or more is recommended)
  • USB keyboard and mouse
  • Power supply
  • Monitor
  • Ethernet (RJ45) network cable
  • Available network connection (corporate or test network)
  • An account with sudo or root privileges
Tips28

Step 1: Identify the Network Interface

Before configuring a static IP address, identify the network interface to be configured.
Open Terminal and enter the following command: ip link
The command lists all available network interfaces.

ip link

Locate the network interface with the status UP, LOWER_UP.
In this example, the network interface name is: enp0s8
Please verify the actual name based on your system.

Step 2 : Check the Current Network Information

Before configuring a static IP, check the current network settings assigned by DHCP.
Record the current IP address, gateway, and DNS server for reference.

cat /etc/network/interfaces
  • Check the IP Address
    Enter the following command: ip addr
    Find the IP address assigned to the network interface. ip addr
  • Check the Gateway
    Enter the following command: ip route
    The default gateway is shown after default via. ip route
  • Check the DNS Server
    Enter the following command: cat /etc/resolv.conf
    You will typically see something like the following, where the IP address listed after “nameserver” is the DNS server currently in use. /etc/resolv.conf Record the current network information for the static IP configuration.
  • Check the Network Configuration File
    Enter the following command: cat /etc/network/interfaces
    Review the current network interfaces and configuration before modifying the network settings.

Step 3: DHCP Reservation (Verification)

If DHCP Reservation is enabled on your network, no additional network configuration is required. Simply keep the network interface configured for DHCP.

Verification:

  • Enter the following command: ip addr
  • Restart the system two or three times.
  • Verify that the same IP address is assigned after each reboot.

If the IP address remains the same after each reboot, DHCP Reservation is working correctly.

Step 4: Configure a Static IP Address (Without DHCP Reservation)

If your network does not support DHCP Reservation, configure a static IP address manually.

Open the network configuration file:

sudo nano /etc/network/interfaces

Locate the configuration for your network interface (for example, enp0s8). If a DHCP configuration already exists, comment it out, then add the following static IP configuration:

auto enp0s8
iface enp0s8 inet static
address 192.168.3.106
gateway 192.168.0.9
netmask 255.255.255.0
dns-nameservers 192.168.9.20 192.168.0.7 sudo nano /etc/network/interfaces

Note:

  • Replace enp0s8 with your actual network interface name.
  • Replace the IP address, gateway, subnet mask, and DNS server values according to your network environment.

 

Step 5 : Save the Configuration and Restart

After saving the configuration file, restart the system by running sudo reboot to apply the new network settings.

Step 6 : Verify the IP Configuration

After restarting the system, verify the IP address by running the following command: ip addr

If the displayed IP address matches the configured static IP address, the static IP configuration has been applied successfully.

ip_addr_test

Main features of VDX3-6755

  • DM&P SoC Vortex86DX3- 1GHz
  • 1GB / 2GB DDR3 onboard
  • 3S/2U/VGA/LVDS/GLAN/LAN/CAN/SATA
  • Isolated RS232 / 485
  • Single channel 24-bit LVDS
  • Optional: Isolated CANbus
  • Operation Temperature: -20 ~ +70°C / -40 ~ +85°C (Optional)

For more info and sample request, please write to info@icop.com.tw, call your nearest ICOP Branch, or contact our Worldwide Official Distributor.