0% found this document useful (0 votes)
55 views4 pages

Static IP NAGIOS Using Nmtui

Using nmtui provides a text-based GUI tool for configuring network interfaces. The tool can be installed via yum if internet access is available, or manual configuration of interfaces can be done by editing config files. nmtui allows selecting devices, editing connections to switch to manual IP configuration, and setting address, gateway, and DNS values. Changes are saved and the interface must be taken down and up for the new settings to take effect.

Uploaded by

Facez Book
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views4 pages

Static IP NAGIOS Using Nmtui

Using nmtui provides a text-based GUI tool for configuring network interfaces. The tool can be installed via yum if internet access is available, or manual configuration of interfaces can be done by editing config files. nmtui allows selecting devices, editing connections to switch to manual IP configuration, and setting address, gateway, and DNS values. Changes are saved and the interface must be taken down and up for the new settings to take effect.

Uploaded by

Facez Book
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Using nmtui

There's an easy way to perform these changes using nmtui (a text based GUI).

In your console session execute the command:

nmtui

If you receive the following error:

-bash: nmtui: command not found

Then you have two options:

Option 1)

Install the package using yum (which assumes your server has internet access via it's DHCP
address):

yum install -y net-tools

Once installed execute the command again and proceed with the next step.

Option 2)

Manually configure address in config file. Please follow the steps in the "Manual IP Configuration"
section that explains how to do this.

When you execute nmtui you will be prompted with a text based GUI:
Press Enter on Edit a connection

You will presented with a list of devices:

In this example eno16777728 is the default interface selected, press Enter

You will now be presented with the "Edit Connection" screen.

Press Tab on your keyboard until you are on <Automatic> selector next
to IPv4 CONFIGURATION

Press Enter, select Manual from the list and press Enter

Press Tab until you are on <Show> (for IPv4) and press Enter

More fields will be shown on the screen

Press Tab until you are on <Add> selector next to Addresses

Type a valid address with using CIDR notation, for example 10.25.40.70/16

Repeat these steps for the Gateway IP and DNS Servers fields

If you want to define a static IPv6 address, follow the same steps above for
the IPv6 CONFIGURATION section.

The following screenshot is an example configuration:


Press Tab until the OK button is selected press Enter to save the changes

You will be returned to the "Select A Device" screen.


Press Tab until the Quit button is highlighted and then press Enter

Now you will need to take the interface "down" and then back "up" again using the following
commands:

ifdown eno16777728
ifup eno16777728

Execute these commands to check your changes have been applied and that they are working:

ip addr
ping -c 4 www.nagios.com

You might also like