Objective. Students will configure a static IP address, subnet mask, default gateway, and DNS resolver on a Linux server using the distribution's standard tooling, then verify end-to-end connectivity with diagnostic commands.
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
In a production data center, every server must have a predictable, permanent network address. Dynamic addressing (DHCP) is convenient for workstations, but servers need static IP addresses so that other systems—monitoring tools, backup agents, load balancers, and administrators—can always reach them at the same address. Configuring and verifying that address correctly is one of the first hands-on tasks a data center technician performs when racking a new server.
Every Linux server connected to a network needs four pieces of information:
Without a correct gateway the server cannot reach anything outside its own subnet. Without a working DNS entry it cannot resolve hostnames, even if IP connectivity is fine.
Before changing anything, always check what is already configured. The `ip` command is the standard tool on modern Linux distributions.
Read the output carefully. The interface name (for example, `ens3`, `eth0`, or `enp3s0`) varies by system and driver.
Red Hat–family distributions use NetworkManager, controlled from the command line with `nmcli`. The connection name is typically the interface name or a profile name shown by `nmcli connection show`.
A typical sequence to set a static address on a connection named `ens3`:
```
nmcli connection modify ens3 ipv4.method manual \
ipv4.addresses 10.10.20.50/24 \
ipv4.gateway 10.10.20.1 \
ipv4.dns 10.10.20.5
nmcli connection up ens3
```
After running these commands, use `ip addr show ens3` and `ip route show` to confirm the settings took effect.
Ubuntu Server uses Netplan, which reads YAML configuration files stored in `/etc/netplan/`. Edit (or create) the file for your interface, being careful with indentation—YAML is whitespace-sensitive:
```yaml
network:
version: 2
ethernets:
ens3:
dhcp4: no
addresses:
routes:
via: 10.10.20.1
nameservers:
addresses:
```
Apply the configuration with `sudo netplan apply`. Then verify with `ip addr show` and `ip route show`.
Always verify in order from the most local to the most remote:
1. Ping the gateway (`ping 10.10.20.1`) – confirms Layer 3 connectivity on the local subnet
2. Ping a remote IP – confirms routing is working
3. Ping a hostname (`ping server2.lab.local`) – confirms DNS is resolving
4. Use `traceroute` – shows each hop to a destination; useful when a ping fails and you need to find where the path breaks
5. Use `nslookup` or `dig` – queries DNS directly; isolates name-resolution failures from general connectivity failures
6. Use `ss -tuln` – lists open TCP and UDP ports; confirms which services are listening and on which addresses
| Symptom | Likely Cause | First Check |
|---|---|---|
| Can ping gateway, cannot reach other subnets | Wrong gateway IP | `ip route show` |
| Can ping by IP, cannot ping by name | DNS misconfigured or unreachable | `nslookup hostname` or `dig hostname` |
| Ping blocked from outside, services running | Firewall blocking ICMP | Check firewall rules; use `ss` to confirm service is listening |
After configuring a server, document every setting in your lab log and, in a real facility, in the Data Center Infrastructure Management (DCIM) system. A complete record includes: hostname, interface name, IP address and mask, gateway, DNS servers, and open ports (from `ss -tuln`). Accurate records prevent IP conflicts, speed up troubleshooting, and are required by most data center operating procedures.
This lab uses live network switches on a dedicated VLAN. Do not change VLAN assignments or switch port settings without instructor approval—misconfiguration can disrupt other students' connectivity. When working inside server chassis to seat a network card, follow lockout/tagout procedures and wear appropriate PPE (ESD wrist strap, safety glasses). For cable work in overhead trays, use a ladder rated for the load and follow your facility's ladder safety policy.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.