A workable network configuration could be already provided by an automatic
procedure, like cloud-init
. If you are running a cloud VPS, do not
change the node network settings, and read the cloud provider
documentation before changing the node host name.
Also the OS installation procedure can help to set up a working network setup for your node. In this case refer to the OS documentation.
In any other case, if the node cannot be reached from the network, enter the system console and try to fix the network configuration with one of the following methods.
The basic parameters to fix the node network configuration are:
- The public network interface name, for example
eth0
- A static IP address and network mask to assign, for example
192.168.12.3/24
- The network default gateway IP address. It is an IP address in the same
network of your node, for instance
192.168.12.1
- The DNS server address. It can be a public DNS service, like Google
8.8.8.8
or8.8.4.4
, Cloudflare1.1.1.1
, or a private DNS server. In small environments it could be the gateway host itself.
The nmtui
(Text User Interface for controlling NetworkManager) is
available on EL distributions, like CentOS Stream, Alma and Rocky Linux.
Launch the text interface to edit network connections with:
nmtui edit
This is a summary of keyboard functions:
- Arrows and tab keys move between interface elements (like buttons and form fields)
Enter
, button clickEsc
, cancel, back to previous screenSpace
, modify checkbox, selectionCtrl+C
, abort