Oracle® Linux 7

Setting Up Networking

Oracle Legal Notices
Oracle Documentation License

F32794-04

September 2020


Table of Contents

Preface
1 Configuring the System's Network
1.1 About Network Interface Names
1.2 About Network Interface Names
1.3 About Network Configuration Files
1.3.1 About the /etc/hosts File
1.3.2 About the /etc/nsswitch.conf File
1.3.3 About the /etc/resolv.conf File
1.3.4 About the /etc/sysconfig/network File
1.4 Command-Line Network Configuration Interfaces
1.5 Configuring Network Interfaces Using Graphical Interfaces
1.6 About Network Interface Bonding
1.6.1 Configuring Network Interface Bonding
1.7 About Network Interface Teaming
1.7.1 Configuring Network Interface Teaming
1.7.2 Adding Ports to and Removing Ports from a Team
1.7.3 Changing the Configuration of a Port in a Team
1.7.4 Removing a Team
1.7.5 Displaying Information About Teams
1.8 Configuring VLANs with Untagged Data Frames
1.8.1 Using the ip Command to Create VLAN Devices
1.9 Configuring Network Routing
2 Configuring Network Addressing
2.1 About the Dynamic Host Configuration Protocol
2.2 Configuring a DHCP Server
2.3 Configuring a DHCP Client
2.4 About Network Address Translation
3 Configuring the Name Service
3.1 About DNS and BIND
3.2 About Types of Name Servers
3.3 About DNS Configuration Files
3.3.1 /etc/named.conf
3.3.2 About Resource Records in Zone Files
3.3.3 About Resource Records for Reverse-name Resolution
3.4 Configuring a Name Server
3.5 Administering the Name Service
3.6 Performing DNS Lookups
4 Configuring Network Time
4.1 About the chronyd Daemon
4.1.1 Configuring the chronyd Service
4.2 About the NTP Daemon
4.2.1 Configuring the ntpd Service
4.3 About PTP
4.3.1 Configuring the PTP Service
4.3.2 Using PTP as a Time Source for NTP
5 Configuring the Apache HTTP Web Service
5.1 About the Apache HTTP Server
5.2 Installing the Apache HTTP Server
5.3 Configuring the Apache HTTP Server
5.4 Testing the Apache HTTP Server
5.5 Configuring Apache Containers
5.5.1 About Nested Containers
5.6 Configuring Apache Virtual Hosts
6 Email Service Configuration
6.1 About Email Programs
6.2 About Email Protocols
6.2.1 About SMTP
6.2.2 About POP and IMAP
6.3 About the Postfix SMTP Server
6.4 About the Sendmail SMTP Server
6.4.1 About Sendmail Configuration Files
6.5 Forwarding Email
6.6 Configuring a Sendmail Client
7 Configuring High Availability Features
7.1 About Oracle Linux High Availability Services
7.2 Installing Pacemaker and Corosync
7.3 Configuring an Initial Cluster and Service
7.4 Fencing Configuration
7.5 More Information
8 Configuring Load Balancing
8.1 About HAProxy
8.2 Installing and Configuring HAProxy
8.2.1 About the HAProxy Configuration File
8.3 Configuring Simple Load Balancing Using HAProxy
8.3.1 Configuring HAProxy for Session Persistence
8.4 About Keepalived
8.5 Installing and Configuring Keepalived
8.5.1 About the Keepalived Configuration File
8.6 Configuring Simple Virtual IP Address Failover Using Keepalived
8.7 Configuring Load Balancing Using Keepalived in NAT Mode
8.7.1 Configuring Firewall Rules for Keepalived NAT-Mode Load Balancing
8.7.2 Configuring Back-End Server Routing for Keepalived NAT-Mode Load Balancing
8.8 Configuring Load Balancing Using Keepalived in DR Mode
8.8.1 Configuring Firewall Rules for Keepalived DR-Mode Load Balancing
8.8.2 Configuring the Back-End Servers for Keepalived DR-Mode Load Balancing
8.9 Configuring Keepalived for Session Persistence and Firewall Marks
8.10 Making HAProxy Highly Available Using Keepalived
8.11 About Keepalived Notification and Tracking Scripts
8.12 Making HAProxy Highly Available Using Oracle Clusterware
9 Configuring the VNC Service
9.1 About VNC
9.2 Configuring a VNC Server
9.3 Connecting to VNC Desktop