Book Image

Red Hat Enterprise Linux Server Cookbook

By : Jakub Gaj, William Leemans
Book Image

Red Hat Enterprise Linux Server Cookbook

By: Jakub Gaj, William Leemans

Overview of this book

Dominating the server market, the Red Hat Enterprise Linux operating system gives you the support you need to modernize your infrastructure and boost your organization’s efficiency. Combining both stability and flexibility, RHEL helps you meet the challenges of today and adapt to the demands of tomorrow. This practical Cookbook guide will help you get to grips with RHEL 7 Server and automating its installation. Designed to provide targeted assistance through hands-on recipe guidance, it will introduce you to everything you need to know about KVM guests and deploying multiple standardized RHEL systems effortlessly. Get practical reference advice that will make complex networks setups look like child’s play, and dive into in-depth coverage of configuring a RHEL system. Also including full recipe coverage of how to set up, configuring, and troubleshoot SELinux, you’ll also discover how secure your operating system, as well as how to monitor it.
Table of Contents (17 chapters)
Red Hat Enterprise Linux Server Cookbook
About the Author
About the Reviewers

Configuring IPv4 settings

Changing your IP addresses is pretty straightforward in the old ifcfg-style files, and it's actually pretty simple using NetworkManager tools as well.

As kickstart is only used to set up a system, it is not relevant to go in depth into this matter in this recipe.

How to do it…

Let's change our current IPv4 address and gateway for eth1 to, with as the default gateway.

Setting your IPv4 configuration using nmcli

Perform the following steps:

  1. Set the ipv4 information by executing the following command line:

    ~]# nmcli connection modify eth0 ipv4.addresses ipv4.gateway
  2. Now, run the following to verify the information:

    ~]# nmcli connection show eth0

    Here is an example output of the preceding commands:

Setting your IPv4 configuration using nmtui

The nmtui tool takes a bit more work, but the end result remains the same. Perform the following steps:

  1. Start nmtui, select the interface that you wish to modify, and click on <Edit...>:

  2. Now,...