LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2011, 11:51 AM   #1
iftikhar.tutul
LQ Newbie
 
Registered: Sep 2011
Location: Bangladesh
Posts: 22

Rep: Reputation: Disabled
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???
 
Old 09-16-2011, 08:31 PM   #2
linjoy42
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 09-17-2011, 12:40 AM   #3
iftikhar.tutul
LQ Newbie
 
Registered: Sep 2011
Location: Bangladesh
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-08-2013, 09:22 PM   #4
wujiatongsir
LQ Newbie
 
Registered: Dec 2012
Posts: 11

Rep: Reputation: Disabled
Smile centos ifcfg-eth0

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

Last edited by Tinkster; 10-09-2013 at 01:08 AM. Reason: mod_edit
 
Old 10-10-2013, 10:13 PM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
ifconfig should give you the name of your ethernet. With fedora 19, p3p1 is the new name on my computer.
 
Old 10-10-2013, 10:52 PM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by iftikhar.tutul View Post
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.

Last edited by JJJCR; 10-10-2013 at 10:53 PM. Reason: edit
 
Old 10-10-2013, 11:11 PM   #7
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Quote:
Originally Posted by iftikhar.tutul View Post
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.

Last edited by SAbhi; 10-10-2013 at 11:15 PM.
 
Old 10-11-2013, 12:01 AM   #8
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
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
 
Old 10-11-2013, 12:05 AM   #9
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
D'oh! its 2011 post...
 
Old 10-11-2013, 12:48 AM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,159

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Red face

Quote:
Originally Posted by mddesai View Post
D'oh! its 2011 post...
hmmmm... 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..
 
Old 10-11-2013, 01:02 AM   #11
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
lolzzzz me too and Yes learned to check the date first!!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Network eth0 activated upon boot in ifcfg-eth0; but no network connection after login TomRaaijmakers Linux - Networking 1 06-17-2010 08:29 AM
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 03:25 PM
eth0 not coming up at bootup even when configured in ifcfg-eth0 djcham Linux - Networking 1 12-04-2006 08:09 PM
editing ifcfg-eth0 nkeever Linux - Newbie 4 05-05-2005 02:46 PM
ifcfg-eth0 configuration problem shyam Linux - Networking 2 08-06-2003 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration