Red_Hat_Enterprise_Linux-7-Networking_Guide-en-US.pdf

(6085 KB) Pobierz
Red Hat Enterprise Linux 7
Networking Guide
Configuration and Administration of networking for Red Hat Enterprise
Linux 7
Stephen Wadeley
Red Hat Enterprise Linux 7 Networking Guide
Configuration and Administration of networking for Red Hat Enterprise
Linux 7
Stephen Wadeley
Red Hat Engineering Co ntent Services
swadeley@redhat.co m
Legal Notice
Copyright © 2010–2014 Red Hat, Inc.
T his document is licensed by Red Hat under the
Creative Commons Attribution-ShareAlike 3.0 Unported
License.
If you distribute this document, or a modified version of it, you must provide attribution to Red
Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be
removed.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section
4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo,
and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux ® is the registered trademark of Linus T orvalds in the United States and other countries.
Java ® is a registered trademark of Oracle and/or its affiliates.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other
countries.
Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or
endorsed by the official Joyent Node.js open source or commercial project.
T he OpenStack ® Word Mark and OpenStack Logo are either registered trademarks/service marks or
trademarks/service marks of the OpenStack Foundation, in the United States and other countries and
are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or
sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Abstract
T he Red Hat Enterprise Linux 7 Networking Guide documents relevant information regarding the
configuration and administration of network interfaces, networks and network services in Red Hat
Enterprise Linux 7. It is oriented towards system administrators with a basic understanding of Linux and
networking. T his book is based on the Red Hat Enterprise Linux 6 Deployment Guide. T he chapters
related to networking were taken from the Deployment Guide to form the foundation for this book.
Table of Contents
Table of Contents
⁠
P . . . . . Networking
. .art .I. IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 . . . . . . . .
.
⁠
C . . . . . . . Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. .hapter. 1. . . . . . . . . . . . .to. Red. Hat .Enterprise .Linux. Networking . . . . . . . . . . . . . . . . . . . . . . . 5 . . . . . . . .
.
⁠
1.1. How this Book is Structured
5
⁠
1.2. IP Networks versus non-IP Networks
5
⁠
1.3. Introduction to NetworkManager
5
⁠
1.4. Installing NetworkManager
6
⁠
1.5. Network Configuration Using the Command Line Interface (CLI)
7
⁠
1.6. Network Configuration Using NetworkManager's CLI (nmcli)
7
⁠
1.7. Network Configuration Using a T ext User Interface (nmtui)
8
⁠
1.8. NetworkManager and the Network Scripts
8
⁠
1.9. Network Configuration Using sysconfig Files
9
⁠
1.10. Additional Resources
11
⁠
C . . . . . . . Configure . . . . . . . . . . .
. .hapter. 2. . . . . . . . . . .IP. Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 . . . . . . . .
..
⁠
2.1. Static and Dynamic Interface Settings
12
⁠
2.2. Using the T ext User Interface, nmtui
13
⁠
2.3. Using the NetworkManager Command Line T ool, nmcli
13
⁠
2.4. Using the Command Line Interface (CLI)
18
⁠
2.5. Using NetworkManager with the GNOME Graphical User Interface
23
⁠
2.6. Additional Resources
46
⁠
C . . . . . . . . . . . . . . . . . . . . . . . . .
. .hapter. 3. Configure .Host. Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 7 . . . . . . . .
..
⁠
3.1. Understanding Host Names
47
⁠
3.2. Configuring Host Names Using T ext User Interface, nmtui
47
⁠
3.3. Configuring Host Names Using hostnamectl
48
⁠
3.4. Configuring Host Names Using nmcli
49
⁠
3.5. Additional Resources
50
⁠
C . . . . . . Configure . . . . . . . . . . . . . .
. .hapter. 4 . . . . . . . . . . .Network .Bonding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 . . . . . . . .
..
⁠
4 .1. Understanding the Default Behavior of Master and Slave Interfaces
51
⁠
4 .2. Configure Bonding Using the T ext User Interface, nmtui
51
⁠
4 .3. Using the NetworkManager Command Line T ool, nmcli
53
⁠
4 .4. Using the Command Line Interface (CLI)
54
⁠
4 .5. Creating a Bond Connection Using a GUI
55
⁠
4 .6. Additional Resources
59
⁠
C . . . . . . . Configure . . . . . . . . . . . . .
. .hapter. 5. . . . . . . . . . .Network .T.eaming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 . . . . . . . .
..
⁠
5.1. Understanding Network T eaming
60
⁠
5.2. Understanding the Default Behavior of Master and Slave Interfaces
60
⁠
5.3. Comparison of Network T eaming to Bonding
61
⁠
5.4. Understanding the Network T eaming Daemon and the "Runners"
61
⁠
5.5. Install the Network T eaming Daemon
62
⁠
5.6. Converting a Bond to a T eam
62
⁠
5.7. Selecting Interfaces to Use as Ports for a Network T eam
63
⁠
5.8. Selecting Network T eam Configuration Methods
63
⁠
5.9. Configure a Network T eam Using the T ext User Interface, nmtui
63
⁠
5.10. Configure a Network T eam Using the Command Line
65
⁠
5.11. Controlling teamd with teamdctl
71
⁠
5.12. Configure teamd Runners
73
⁠
5.13. Creating a Network T eam Using a GUI
79
⁠
5.14. Additional Resources
81
⁠
C . . . . . . . Configure . . . . . . . . . . . . . .
. .hapter. 6. . . . . . . . . . .Network .Bridging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 . . . . . . . .
..
⁠
6.1. Configure Bridging Using the T ext User Interface, nmtui
83
⁠
6.2. Using the NetworkManager Command Line T ool, nmcli
84
1
Zgłoś jeśli naruszono regulamin