Linux Manual Network Config: Farm Server Guide

By tjohnson , 21 May, 2025

Manual Internet Configuration on Debian Using Only ip and Low-Level Tools

This guide explains how to manually configure an internet connection on a Debian-based system using only low-level tools — perfect for headless setups, stripped systems, or recovery environments where NetworkManager or higher-level tools aren’t available.

1. Identify Your Network Interface

ip link show

Look for a device that resembles a wired Ethernet interface — often named something like eth0, enpXsY, or enx....

2. Bring the Interface Up

ip link set dev enp4s0 up

Replace enp4s0 with your actual interface name.

3. Assign a Static IP Address

Let’s assume we want:

  • IP: 192.168.1.100
  • Gateway: 192.168.1.1
  • Subnet: 255.255.255.0 or CIDR /24
ip addr add 192.168.1.100/24 dev enp4s0

4. Set the Default Gateway

ip route add default via 192.168.1.1

5. Add DNS Servers

echo 'nameserver 192.168.1.9' > /etc/resolv.conf
echo 'nameserver 8.8.8.8' >> /etc/resolv.conf

6. Test Connectivity

ping -c 3 8.8.8.8
ping -c 3 debian.org

Optional: Reset/Undo

ip addr flush dev enp4s0
ip route flush dev enp4s0

7. Making the Configuration Persistent with /etc/network/interfaces

If your system uses the classic ifupdown stack (most minimal or older Debian installs do), you can make your settings permanent by editing /etc/network/interfaces like this:

auto enp4s0
iface enp4s0 inet static
  address 192.168.1.100
  netmask 255.255.255.0
  gateway 192.168.1.1
  dns-nameservers 192.168.1.9 8.8.8.8

Then bring it up with:

ifdown enp4s0 || true
ifup enp4s0

This will restore the configuration automatically on every reboot without needing to manually use ip commands again.

Done!

You’ve now gone from a bare interface to a working network connection using only the most essential tools — and optionally made it permanent the Debian way.

Triple "5" Farms – Networking the hard way, because that’s the fun way.

Field Notes and Search Focus

We keep this guide practical for folks running real farms. The focus here is farm networking and iot deployment, with clear steps and neighbor-tested lessons from day-to-day work. 🌱

Related Topics We Cover

farm automation setup, rural network reliability, sensor deployment, camera uptime planning, off grid farm tech.

Questions Folks Ask Us

  • how to automate daily farm tasks with low cost hardware
  • best networking design for large rural properties
  • how to keep farm cameras online in harsh weather
  • step by step farm sensor network setup
  • how to scale farm tech without enterprise budgets

Related Farm Guides

FAQ

How to automate daily farm tasks with low cost hardware?

Start with a phased setup, validate in field conditions, and document maintenance as you go. That approach keeps farm networking and iot deployment reliable and easier to scale.

Best networking design for large rural properties?

Start with a phased setup, validate in field conditions, and document maintenance as you go. That approach keeps farm networking and iot deployment reliable and easier to scale.

How to keep farm cameras online in harsh weather?

Start with a phased setup, validate in field conditions, and document maintenance as you go. That approach keeps farm networking and iot deployment reliable and easier to scale.

Step by step farm sensor network setup?

Start with a phased setup, validate in field conditions, and document maintenance as you go. That approach keeps farm networking and iot deployment reliable and easier to scale.

How to scale farm tech without enterprise budgets?

Start with a phased setup, validate in field conditions, and document maintenance as you go. That approach keeps farm networking and iot deployment reliable and easier to scale.

How much should we budget before starting?

Use phased budgeting with a contingency buffer. Focus first on reliability, then optimize performance after baseline stability is proven.

Keep Exploring Triple 5 Farms