Network Helper: Auto-Configure Networking on Compute Instances
Traducciones al EspañolEstamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Network Helper is an optional tool that makes network configuration easier on Linode Compute Instances. It automatically adjusts the appropriate internal network configuration files for your distribution during each system boot. This enables you to start using (and connecting to) your instance right away, without needing to manually configure these files yourself.
Network Helper automatically configures the following network settings:
- Statically configures all assigned IPv4 addresses (public and private)
- Statically configures the IPv4 gateway
- Adds settings to enable IPv6 assignment through SLAAC
- Adds Linode’s DNS resolvers
For most common use cases, it is recommended to enable Network Helper. Here are some scenarios in which Network Helper automatically configures networking:
- Deploying a Compute Instance
- Adding a public or private IPv4 address
- Restoring from a backup
- Migrating to a different data center
- Cloning from another instance
However, there are some advanced use cases that require Network Helper to be disabled so that you can manually configure networking yourself:
- Installing a custom distribution on a Compute Instance
- Configuring failover
- Configuring addresses from an IPv6 routed range
- Using other DNS resolvers (not Linode’s)
- Other advanced use cases where custom network configuration is required
CautionIf you choose to manually edit your network configuration files, Network Helper must be disabled. If enabled, any configuration changes will be overwritten on the next system boot.
Enable or Disable Network Helper
Network Helper can be enabled or disabled for each Compute Instance. There is also a global setting that applies to all new Compute Instances.
Global (Account-Wide) Setting
When Network Helper is enabled globally, all new Compute Instances created on your account will have Network Helper enabled by default.
Log in to the Cloud Manager and click the Account link on the left sidebar.
Navigate to the Settings tab and scroll down to the Network Helper section.
Set the Enabled switch to the desired setting. Your selection is automatically saved.
Individual Compute Instance Setting
Network Helper can also be enabled or disabled on a specific Compute Instance, regardless of the global setting.
Follow the Editing a Configuration Profile instructions.
Within the Edit Configuration form, scroll down to the Filesystem/Boot Helpers section.
Set the Auto-configure networking switch to the desired setting. This toggles Network Helper on or off.
Once finished, click the Save Changes button.
Files Maintained by Network Helper
Network Helper automatically edits the appropriate network configuration files for the distribution you have installed. Here is a list of the network configuration files that are maintained by Network Helper for each supported distribution.
CentOS, CentOS Stream, AlmaLinux, and Rocky Linux:
/etc/sysconfig/network/ifcfg-eth0 /etc/sysconfig/network/routes /etc/resolv.conf
Ubuntu 16.04 LTS (and earlier)
Ubuntu 18.04 LTS (and later)
Restore Previous Network Configuration Files
Network Helper creates backups of the original distribution-supplied configuration file, as well as a backup each time it edits the networking configuration.
A copy of the interface and resolver file as the distribution provided it:
/etc/.resolv.conf.linode-orig. Note that Network Helper does not modify
/etc/resolv.confon all of our distributions.
A copy of the interface and resolver files from the previous boot:
/etc/.resolv.conf.linode-last. If you manually changed either of these file before the previous boot, you’ll find them saved there.
Use the following command to restore manual changes made before the previous reboot. Be sure to replace
/etc/network/interfaces with the network interface file for your distribution from above.
mv /etc/network/.interfaces.linode-last /etc/network/interfaces
This page was originally published on