December 5, 2013

Managing Network in RHEL 6

Tools

The simplest way to manage network settings is to use the system-config-network tool or the non-graphical variant system-config-network-tui

To start, stop, status all our network devices

Other useful tools are:

ifconfigDisplay our network settings.
pingUsed for check network connectivity
route -nDisplay routing and Gateway
tracerouteDisplay network routing to a host.
netstat -nrDisplay open ports.

Configuration

Main network configuration file is /etc/sysconfig/network-scripts/ifcfg-<name>.

Hostname

Routing

Local routing for e.g. localhost, but also for static routing.

Main routing configuration file. Any changes will be overwritten, unless disabled in above sysconfig network-scripts with PEERDNS=no.

Reference

  • network-scripts: /usr/share/doc/initscripts-<version>/sysconfig.txt

No comments: