Linux 7 Configuring a Network Interface: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux Network Configuration =Overview=")
 
No edit summary
Line 4: Line 4:


=Overview=
=Overview=
The configuration files corresponding to the network interfaces are located in <tt>/etc/sysconfig/network-scripts</tt>.
<tt>ifcfg-eth0</tt> example:
<pre>
DEVICE="eth0"
NAME="eth0"
TYPE="Ethernet"
ONBOOT="yes"
IPADDR="192.168.1.9"
PREFIX="24"
GATEWAY="192.168.1.1"
DNS1="192.168.1.1"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
</pre>

Revision as of 05:28, 7 August 2016

Internal

Overview

The configuration files corresponding to the network interfaces are located in /etc/sysconfig/network-scripts.

ifcfg-eth0 example:

DEVICE="eth0"
NAME="eth0"
TYPE="Ethernet"
ONBOOT="yes"
IPADDR="192.168.1.9"
PREFIX="24"
GATEWAY="192.168.1.1"
DNS1="192.168.1.1"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"