Part I. IP Networking

This part describes how to configure the network on Red Hat Enterprise Linux.

Table of Contents

1. Introduction to Red Hat Enterprise Linux Networking
1.1. How this Book is Structured
1.2. IP Networks versus non-IP Networks
1.3. Introduction to NetworkManager
1.4. Installing NetworkManager
1.4.1. The NetworkManager Daemon
1.4.2. Interacting with NetworkManager
1.5. Network Configuration Using a Text User Interface (nmtui)
1.6. Network Configuration Using NetworkManager's CLI (nmcli)
1.7. Network Configuration Using the Command-Line Interface (CLI)
1.8. NetworkManager and the Network Scripts
1.9. Network Configuration Using sysconfig Files
1.10. Setting the Wireless Regulatory Domain
1.11. Configuring netconsole
1.12. Additional Resources
2. Configure IP Networking
2.1. Static and Dynamic Interface Settings
2.1.1. When to Use Static Network Interface Settings
2.1.2. When to Use Dynamic Interface Settings
2.1.3. Selecting Network Configuration Methods
2.1.4. Using the Text User Interface, nmtui
2.1.5. Using the NetworkManager Command Line Tool, nmcli
2.1.6. Understanding the nmcli Options
2.1.7. Connecting to a Network Using nmcli
2.1.8. Configuring Static Routes Using nmcli
2.2. Editing Network Configuration Files
2.2.1. Configuring a Network Interface Using ifcfg Files
2.2.2. Configuring the Network Settings from the Kernel Command-line
2.2.3. Configuring a Network Interface Using ip Commands
2.2.4. Static Routes and the Default Gateway
2.2.5. Configuring Static Routes in ifcfg files
2.2.6. Configuring a VPN
2.3. Using NetworkManager with the GNOME Graphical User Interface
2.3.1. Connecting to a Network Using a GUI
2.3.2. Configuring New and Editing Existing Connections
2.3.3. Connecting to a Network Automatically
2.3.4. Common Configuration Options in nm-connection-editor
2.3.5. System-wide and Private Connection Profiles
2.3.6. Configuring a Wired (Ethernet) Connection
2.3.7. Configuring a Wi-Fi Connection
2.4. Establishing a VPN Connection
2.5. Establishing a Mobile Broadband Connection
2.6. Establishing a DSL Connection
2.7. Configuring Connection Settings
2.7.1. Configuring 802.3 Link Settings
2.7.2. Configuring 802.1X Security
2.7.3. Configuring Wi-Fi Security
2.7.4. Using MACsec with wpa_supplicant and NetworkManager
2.7.5. Configuring PPP (Point-to-Point) Settings
2.7.6. Configuring IPv4 Settings
2.7.7. Configuring IPv6 Settings
2.7.8. Configuring Routes
2.8. Additional Resources
3. Configure Host Names
3.1. Understanding Host Names
3.1.1. Recommended Naming Practices
3.2. Configuring Host Names Using Text User Interface, nmtui
3.3. Configuring Host Names Using hostnamectl
3.3.1. View All the Host Names
3.3.2. Set All the Host Names
3.3.3. Set a Particular Host Name
3.3.4. Clear a Particular Host Name
3.3.5. Changing Host Names Remotely
3.4. Configuring Host Names Using nmcli
3.5. Additional Resources
4. Configure Network Bonding
4.1. Understanding the Default Behavior of Master and Slave Interfaces
4.2. Configure Bonding Using the Text User Interface, nmtui
4.3. Network Bonding Using the NetworkManager Command Line Tool, nmcli
4.4. Using the Command Line Interface (CLI)
4.4.1. Check if Bonding Kernel Module is Installed
4.4.2. Create a Channel Bonding Interface
4.4.3. Creating SLAVE Interfaces
4.4.4. Activating a Channel Bond
4.4.5. Creating Multiple Bonds
4.5. Using Channel Bonding
4.5.1. Bonding Module Directives
4.6. Creating a Bond Connection Using a GUI
4.6.1. Establishing a Bond Connection
4.7. Additional Resources
5. Configure Network Teaming
5.1. Understanding Network Teaming
5.2. Understanding the Default Behavior of Master and Slave Interfaces
5.3. Comparison of Network Teaming to Bonding
5.4. Understanding the Network Teaming Daemon and the "Runners"
5.5. Install the Network Teaming Daemon
5.6. Converting a Bond to a Team
5.7. Selecting Interfaces to Use as Ports for a Network Team
5.8. Selecting Network Team Configuration Methods
5.9. Configure a Network Team Using the Text User Interface, nmtui
5.10. Configure a Network Team Using the Command Line
5.10.1. Configure Network Teaming Using nmcli
5.10.2. Creating a Network Team Using teamd
5.10.3. Creating a Network Team Using ifcfg Files
5.10.4. Add a Port to a Network Team Using iputils
5.10.5. Listing the ports of a Team Using teamnl
5.10.6. Configuring Options of a Team Using teamnl
5.10.7. Add an Address to a Network Team Using iputils
5.10.8. open an Interface to a Network Team Using iputils
5.10.9. Viewing the Active Port Options of a Team Using teamnl
5.10.10. Setting the Active Port Options of a Team Using teamnl
5.11. Controlling teamd with teamdctl
5.11.1. Add a Port to a Network Team
5.11.2. Remove a Port From a Network Team
5.11.3. Apply a Configuration to a Port in a Network Team
5.11.4. View the Configuration of a Port in a Network Team
5.12. Configure teamd Runners
5.12.1. Configure the broadcast Runner
5.12.2. Configure the random Runner
5.12.3. Configure the Round-robin Runner
5.12.4. Configure the activebackup Runner
5.12.5. Configure the loadbalance Runner
5.12.6. Configure the LACP (802.3ad) Runner
5.12.7. Configure Monitoring of the Link State
5.12.8. Configure Port Selection Override
5.12.9. Configure BPF-based Tx Port Selectors
5.13. Creating a Network Team Using a GUI
5.13.1. Establishing a Team Connection
5.14. Additional Resources
6. Configure Network Bridging
6.1. Configure Bridging Using the Text User Interface, nmtui
6.2. Using the NetworkManager Command Line Tool, nmcli
6.3. Using the Command Line Interface (CLI)
6.3.1. Check if Bridging Kernel Module is Installed
6.3.2. Create a Network Bridge
6.3.3. Network Bridge with Bond
6.4. Configure Network Bridging Using a GUI
6.4.1. Establishing a Bridge Connection
6.5. Ethernet Bridge Configuration Using iproute
6.6. Additional Resources
7. Configure 802.1Q VLAN tagging
7.1. Selecting VLAN Interface Configuration Methods
7.2. Configure 802.1Q VLAN tagging Using the Text User Interface, nmtui
7.3. Configure 802.1Q VLAN Tagging Using the Command Line Tool, nmcli
7.4. Configure 802.1Q VLAN Tagging Using the Command Line
7.4.1. Setting Up 802.1Q VLAN Tagging Using ifcfg Files
7.4.2. Configure 802.1Q VLAN Tagging Using ip Commands
7.5. Configure 802.1Q VLAN Tagging Using a GUI
7.5.1. Establishing a VLAN Connection
7.6. VLAN on Bond and Bridge Using ip Commands
7.7. VLAN on Bond and Bridge Using the NetworkManager Command Line Tool, nmcli
7.8. Configuring VLAN switchport mode
7.9. Additional Resources
8. Consistent Network Device Naming
8.1. Naming Schemes Hierarchy
8.2. Understanding the Device Renaming Procedure
8.3. Understanding the Predictable Network Interface Device Names
8.4. Naming Scheme for Network Devices Available for Linux on System z
8.5. Naming Scheme for VLAN Interfaces
8.6. Consistent Network Device Naming Using biosdevname
8.6.1. System Requirements
8.6.2. Enabling and Disabling the Feature
8.7. Notes for Administrators
8.8. Controlling the Selection of Network Device Names
8.9. Disabling Consistent Network Device Naming
8.10. Troubleshooting Network Device Naming
8.11. Additional Resources