Linux Network Route and Gateway Checklist

halfbrain_logo512adminJune 19, 2026
3 lượt xem

Linux Network Route and Gateway Checklist

A Linux server needs correct IP addressing, routes, gateway and DNS to communicate with the internet and private networks. A service can be healthy but unreachable if routing is wrong.

Core principle

Networking is a path problem. The server needs to know where traffic should go, and return traffic must find its way back.

Checklist

  1. Check IP addresses on interfaces.
  2. Check default route.
  3. Check gateway reachability.
  4. Check DNS resolver configuration.
  5. Test outbound internet access.
  6. Test target domain resolution.
  7. Check firewall rules.
  8. Check whether the service listens on the expected address.
  9. Separate local network issues from DNS issues.
  10. Document the network path.

Reusable lesson

This applies to VPS migrations, private networks, database separation, webhook delivery, API calls, package updates and monitoring agents.

Checklist Type Technical Setup
Level Intermediate
Risk Level High Risk
Estimated Time 30–75 minutes

When to Use This Checklist

Use this checklist when a Linux server cannot reach the internet, cannot resolve domains or services are unreachable despite running.

Required Tools

SSH or console access, ip, ping, dig, resolvectl, ss, firewall access, provider network information

Before You Start

Do not change remote network settings without console access or a rollback plan.

Structured Checklist Steps

  1. Check IP address.
  2. Check default route.
  3. Ping gateway.
  4. Check DNS resolver.
  5. Test outbound internet.
  6. Resolve domain.
  7. Check firewall.
  8. Check listening address.
  9. Separate DNS from routing.
  10. Document path.

Verification Steps

  1. Server has expected IP.
  2. Default route exists.
  3. DNS works.
  4. Outbound access works.
  5. Service reachability issue is localized.

Common Mistakes

  • Confusing DNS failure with route failure.
  • Changing IP remotely without console recovery.
  • Ignoring default gateway.
  • Service listening only on localhost.
  • Firewall blocking expected traffic.

Related Commands

ip addr
ip route
ping -c 3 1.1.1.1
dig example.com
resolvectl status
sudo ss -tulpn
sudo ufw status numbered

Share:

Disclaimer: The guides, checklists, commands, and examples on HalfBrain.net are provided for educational and operational reference only. Server environments, hosting providers, software versions, security settings, and WordPress configurations can vary, so you should always review commands before running them on your own system. We do our best to keep the content accurate and useful, but we cannot guarantee that every command, configuration, or recommendation will fit every environment. Always back up your website, database, and server configuration before making changes. HalfBrain.net is not responsible for data loss, downtime, security incidents, misconfiguration, or other issues that may result from applying the information on this website. Use the material at your own discretion.

Leave a Reply

Your email address will not be published. Required fields are marked *