Chapter 3. Configuring Your Network

The recipes we'll be covering in this chapter are as follows:

  • Creating a VLAN interface
  • Creating a teamed interface
  • Creating a bridge
  • Configuring IPv4 settings
  • Configuring your DNS resolvers
  • Configuring static network routes

Introduction

This chapter will attempt to explain how to use NetworkManager, which is the default network configuration tool and daemon in RHEL 7. It is a set of tools that makes networking simple and straightforward.

Configuring your network can be hard at times, especially when using the more exotic configuration options in combination with well-known configuration scripts. The NetworkManager allows you to easily configure your network without needing to edit the configuration files manually.

Tip

You can still edit the network configuration files located in /etc/sysconfig/network-scripts using your preferred editor; however, by default, NetworkManager does not notice any changes you make. You'll need to execute the following after editing the files located in the preceding location:

~]# nmcli connection reload

This is not enough to apply the changes immediately. You'll need to bring down and up the connection or reboot the system.

Alternatively, you can edit /etc/NetworkManager/NetworkManager.conf and add monitor-connection-files=yes to the [main] section. This will cause NetworkManager to pick up the changes and apply them immediately.

Within these recipes, you will get an overview on how to configure your network using the NetworkManager tools (nmcli and nmtui) and kickstart files.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset