LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ifcfg-ech0 file (https://www.linuxquestions.org/questions/linux-newbie-8/ifcfg-ech0-file-861280/)

debbilynnjo 02-07-2011 07:17 PM

ifcfg-ech0 file
 
need the name of several settings that can be contained in the ifcfg-eth0 file

tommylovell 02-07-2011 11:08 PM

Here's an example of what was created when my Fedora 14 system was installed.
Code:

[root@athlon network-scripts]# cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=none
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.1.93
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
HWADDR=00:1F:D0:5A:36:58

My Fedora 10 system looks like this.
Code:

[root@athlonz network-scripts]# cat ifcfg-eth0
# nVidia Corporation MCP51 Ethernet Controller
DEVICE=eth0
BOOTPROTO=dhcp
# HWADDR=00:16:e6:1e:11:3a
ONBOOT=yes
DHCP_HOSTNAME=athlonz.tomlovell.com
NM_CONTROLLED=no
TYPE=Ethernet
USERCTL=yes
PEERDNS=yes
IPV6INIT=no

I don't know anywhere that these variables are explained. However, you can look at /etc/sysconfig/network-scripts/ifup-eth to see how some of those variables are used. And you can look there and ifdown-eth for references to other variables that can be coded in ifcfg-eth.

ps. edit your profile and add what distro or distros that you use. it makes answering questions easier. i'm assuming red hat, centos or fedora for my answer...


All times are GMT -5. The time now is 05:39 PM.