LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-29-2013, 06:46 AM   #1
cnidup
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
ifcfg eth0 missing in network-scripts


I am using Redhat Linux 7.2 as a server for one system. I installed the linux OS but the ifconfig command didn't show any Eth information. And also the /etc/sysconfig/network-scripts didn't show ifcfg eth0 file.Can someone help me because I couldn't put my server up due to ethernet connection problem
 
Old 01-29-2013, 07:00 AM   #2
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
What was the output/error you get when you execute
Quote:
ifconfig -a
???
 
Old 01-29-2013, 08:24 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Are you sure its RHL7.2 (aka Enigma); that was issued in 2001 https://en.wikipedia.org/wiki/Red_Hat_Linux and is so obsolete its not funny.
Can you do
Code:
uname -a

cat /etc*release*
to check.
If it really is RHL7.2, you should either be using RHEL 6.3 (needs a paid subscription) or Centos 6.3, the free rebuild.
https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux
 
Old 02-01-2013, 01:03 PM   #4
Muhammad Hamid Ashraf
LQ Newbie
 
Registered: Dec 2012
Location: Islamabad, Pakistan
Distribution: centOS5, RHEL,centOS6.3, Fedora
Posts: 17

Rep: Reputation: Disabled
create the file again in the same directory with the name "ifcfg-eth0" and try putting these lines in the file:

#!/bin/sh
#>>>Device type: ethernet
#>>>Variable declarations:
DEVICE=eth0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=255.255.255.255
GATEWAY=192.168.0.1
ONBOOT=no
#>>>End variable declarations


Now edit it according to your network
After this go to /etc/resolv.conf and put there the following 2 lines:

nameserver= "Your dns server 1 ip"
nameserver= "Your dns server 2 ip"
 
Old 02-01-2013, 04:26 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
Quote:
I am using Redhat Linux 7.2 as a server for one system
RH7.2 ???
see chrism01 above post

think of it in MS windows terms
rh7 is like Win95 ( RH9 might be closer to win 98 )
try running win95 today and see just how far you get
and if you have a ipv6 dns ???????? forget about it


and if the server is newer than a 12 year old computer it will not have support for the hardware

Last edited by John VV; 02-01-2013 at 04:28 PM.
 
Old 02-03-2013, 07:43 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
... and indeed this
Quote:
and if the server is newer than a 12 year old computer it will not have support for the hardware
which I should have added

I'd also add that very few people run anything that old, so you'll struggle to get help...
 
Old 02-03-2013, 08:00 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
Well I do have a dell desktop from 2001 running Scientific linux 6.3 ( rebuild of RHEL 6.3 )

but it is repurposed for the net and libreoffice
 
Old 02-03-2013, 11:05 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Sorry, I meant the OS, not the HW
I had a computer that old, but it died after 10 yrs...
Some people do have old systems with RHL, but the OP is going to struggle as you point out.
 
Old 02-04-2013, 12:55 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
Quote:
Sorry, I meant the OS, not the HW
RH9 is bad enough to run , except in a VM ,when needed for legacy software.
Running a RH7 server ??? , that is NOT a task i would want .

but "cnidup" has not posted back in almost a week so until he/she dose post back there is not much that can be done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/etc/sysconfig/network-scripts/ifcfg-eth0 and 1 being rewritten on reboot smcracraft Linux - General 2 05-27-2012 02:19 AM
[SOLVED] Server Inaccessible Because of Duplicate /etc/sysconfig/network-scripts/ifcfg-eth0 JRomeo Linux - Newbie 7 04-18-2011 11:47 AM
[SOLVED] Network eth0 activated upon boot in ifcfg-eth0; but no network connection after login TomRaaijmakers Linux - Networking 1 06-17-2010 09:29 AM
what is "/etc/sysconfig/network-scripts/ifcfg-eth0" its counterpart in slackware b0nd Slackware 2 10-06-2005 01:50 AM
How to change /etc/sysconfig/network-scripts/ifcfg-eth0 ariana Linux - Networking 1 05-01-2005 02:37 PM


All times are GMT -5. The time now is 03:00 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration