22 May 2020

Linode Static Networking Configurator

Here is a handy bash script for configuring static networking on a Linode server. This script works for Ubuntu 18.04 or later and assumes the server has been booted up with the Network Helper enabled, which is the default for Linode servers.

Linode has a Linux Static IP Configuration tutorial for manually configuring static networking that includes instructions for other OSes besides Ubuntu 18.04 and later. You can review that for additional information.

The Linode Network Helper works great and in many cases it is perfectly fine to leave it enabled. One example of where you’d want to switch to static networking is if you are configuring a High Availability environment. Linode has a NodeBalancer service, but there may be cases where you prefer to configure your own IP address failover with something like Keepalived. In that case you’ll need to disable the Network Helper and configure Static Networking otherwise you can end up with issues like having your VIP (Virtual IP) enabled on multiple servers and improper routing / gateway configurations.


Posted May 22, 2020 by msb in category "Linode

2 COMMENTS :

  1. By John on

    I need some help… I have Linode running Ubuntu 18.04, after package updates, network won’t come up. I’ve tried a bunch of things, with & without Network Helper. I can’t get email (Postfix) running .

    RTNETLINK answers: File exists
    Failed to start Raise network interfaces.

    Reply
  2. By msb (Post author) on

    I’m not certain what would cause this, but I do wonder if one of the network configs was modified by the updates. Do you have a list of what was updated? Look in /var/log/apt/ if you are not sure. Double check the /etc/netplan/01-eth0.yaml file and make sure it looks correct. If problems persist you may need to reach out to Linode support.

    Reply

Leave a Reply

Your email address will not be published.