Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Chapter 5. Networking - Pg. 149

CHAPTER 5 Networking One of the key elements of connecting to different systems is the network con- figuration involved. In this chapter, we look at how to configure both DHCP and static IP addresses, troubleshoot network issues, and resolve client DNS problems. Networking is an important foundation because without it, you aren't able to communicate with the outside world or the rest of your network, or share files with your users. This book is not a primer on networking, so an un- derstanding of subnetting, default gateways, and other basic networking con- cepts is vital before reading this chapter. Setting Up Networking Network management is fairly easy when it comes to Red Hat. Most of the net- work configuration is kept in files; therefore, adjusting these settings is simple. To start, you can use three management commands: ifconfig Displays the IP address and other interface-related informa- tion Enables you to view or change the routing information on the system Provides a menu-driven utility for network configuration route system-config-network- tui When you're working with network interfaces, there are two additional files you need to know: / etc/sysconfig/network /etc/sysconfig/ network-scripts This file contains gateway and hostname information. This directory contains all the interface config files for your system. Let's start by looking at the hostname and networking information: # cat /etc/sysconfig/network NETWORKING=yes