Creating a keyfile Connection Profile Using the Text Based User Interface

If not already installed, install the NetworkManager-tui package.

sudo dnf install -y NetworkManager-tui
  1. Open NetworkManager's text-based user interface.
    sudo nmtui

    Figure 2-3 TUI Main Menu


    The figure shows the NetworkManager TUI general menu, where you can select to edit a connection, activate the connection, or to set the system hostname.

    Navigate the tool using the up and down arrow keys, then press Enter to make a selection.

  2. To add a connection, select Edit a connection, then select Add.
  3. Select a connection type.

    The Edit Connection window opens.

    Figure 2-4 Edit Connection


    The figure shows the window for configuring a network interface, with a floating menu that expands to display added selections, depending on the selections that you make.
  4. As an option, specify a preferred profile name and the name of the device.
  5. By default, IPv4 and IPv6 configurations are set to Automatic. To change the setting, select the Automatic field and press Enter. From the drop down list, select the type of IP configuration that you want to implement, such as Manual. Then, select the corresponding Show field.

    The fields that are displayed depend on the type of IP configuration that's selected. For example, to manually configure an IP address, selecting Show displays an address field, where you would enter an IP addresses for the interface, as the following figure illustrates.

    Figure 2-5 Adding IP Addresses


    The figure shows the window for editing a connection.
  6. Navigate through all the fields on the screen to ensure that the required information is specified.
  7. After you have edited the connection, select OK.