LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ifcfg-eth0 not found (https://www.linuxquestions.org/questions/linux-newbie-8/ifcfg-eth0-not-found-903401/)

iftikhar.tutul 09-16-2011 11:51 AM

Ifcfg-eth0 not found
 
I installed RHEL6 and want to configured the network graphically. after that I found my ethernet connection which was dhcp mood. then i delete this and configure this manually.bt i didnt find anything /etc/sysconfig/network-scripts/ifcfg-eth0...bt i ping all connections and it works without any error...so whr is ifcfg-eth0???

linjoy42 09-16-2011 08:31 PM

It's my understanding that RHEL 6 uses a completely different naming convention than previous versions of RedHat. I did some quick Googling and found a few references to this from Dell, but nothing really conclusive to pin down the actual convention they have adopted, but here are the links if you want to look into it. The first link says this about reverting to the older names.

Quote:

The new naming scheme can be disabled by passing ‘biosdevname=0’ kernel command line parameter during install time and retaining it through runtime.
Dell Blog entry

Another Dell Reference

There was also something on LQ about it here, but again, I didn't spend but a few moments looking into it. I'm sure if you're interested, you can get more detailed and accurate information.

iftikhar.tutul 09-17-2011 12:40 AM

I found all of command like that /etc/sysconfig/network and etc/resolve.conf & it works properly and also ifconfig shows the ip info. so whr is ifcfg-eth0?plz help

wujiatongsir 10-08-2013 09:22 PM

centos ifcfg-eth0
 
[mod_edit]Please try English - the forum rules clearly state that this is an English-only forum[/edit]

Doug G 10-10-2013 10:13 PM

ifconfig should give you the name of your ethernet. With fedora 19, p3p1 is the new name on my computer.

JJJCR 10-10-2013 10:52 PM

Quote:

Originally Posted by iftikhar.tutul (Post 4474176)
I found all of command like that /etc/sysconfig/network and etc/resolve.conf & it works properly and also ifconfig shows the ip info.
so whr is ifcfg-eth0?plz help

if you have deleted a previous connection which was assigned as ifcfg-eth0, and you install a new network connection system will increment it to the next digit.

Example: previous was ifcfg-eth0 (then deleted)
after you configure a new network it will be:
ifcfg-eth1 or ifcfg-eth2 whatever is the next number prior to the previous configuration.

if you want to really, really, really want ifcfg-eth0. then you need to do some manual editing.

go to /etc/sysconfig/network-scripts/ifcfg-<interface-name> —> edit this one to ifcfg-eth0

System does keep track of the network configuration, that's why it's incremental.

SAbhi 10-10-2013 11:11 PM

Quote:

Originally Posted by iftikhar.tutul (Post 4473780)
I installed RHEL6 and want to configured the network graphically. after that I found my ethernet connection which was dhcp mood. then i delete this and configure this manually.bt i didnt find anything /etc/sysconfig/network-scripts/ifcfg-eth0...bt i ping all connections and it works without any error...so whr is ifcfg-eth0???

I am unsure of certain things mentioned in above replies... however i found a hit with what @JJJCR mentioned...

but still just to share what i tried on my own when i deleted the ifcfg-eth0 intentianally and made it again:

it doesnt make's any difference, if you cant find it make it :) ... if you want ifcfg-eth0 to be there make a new file with name at the concerned location.
get your mac address copied.
insert these lines:
Code:

DEVICE="eth0"
HWADDR="mac_address-of-the-device"
NM_CONTROLLED="no"                  # if you want NetworkManager to control them then "yes"
ONBOOT="yes"
BOOTPROTO="dhcp"

restart.

*** here i pre-assumed you can at-least see something in system-config-network.

Madhu Desai 10-11-2013 12:01 AM

RHEL6/CentOS uses both NetworkManager/network services. This, some times create problems. So its better off to disable NetworkManager and just keep network service only.

Code:

# service NetworkManager stop
# chkconfig NetworkManager off
# service network start
# chkconfig network on

And, then create ifcfg-eth0 file by running,
Code:

# system-config-network

Madhu Desai 10-11-2013 12:05 AM

:doh: D'oh! its 2011 post...

JJJCR 10-11-2013 12:48 AM

Quote:

Originally Posted by mddesai (Post 5043768)
:doh: D'oh! its 2011 post...

hmmmm... :o never noticed it, saw someone reply.. i just added..hahaha... hope someone can learn through this.. or if the original poster might bump with LQ again and an update this post.. :scratch:

SAbhi 10-11-2013 01:02 AM

lolzzzz me too and Yes learned to check the date first!!!!


All times are GMT -5. The time now is 01:57 PM.