LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-15-2014, 01:26 PM   #1
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Rep: Reputation: 5
WHAT IS THIS: ifcfg-eth0 (ifup <device name> ??


Hello y'all glad to be here again. i have a little problem as usual and am sure someone would be able to help out.

i tried configuring a static ip on my "Oracle Linux Server" and i keep getting this error message
Quote:
/sbin/ifup: configuration for eth0 not found"
usage: ifup <device name>
i know its something about configuring my device manually, this i would love to do but cant, or should i say properly, don't know what to do.

hope to read from someone soon with the easiest possible solution

cheers
 
Old 01-15-2014, 01:45 PM   #2
littleblueallie
LQ Newbie
 
Registered: Dec 2013
Location: Texas
Distribution: Fedora / RHEL
Posts: 4

Rep: Reputation: 1
What command are you trying to run?

You should be running it like this:

Code:
# ifup eth0
to bring up the interface manually. Also, please post your /etc/sysconfig/network-scripts/ifcfg-eth0 file if that command doesn't work.

A sample config on a RHEL-based distro (Fedora, CentOS, etc.) would be:

Code:
# /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE=eth0
BOOTPROTO=static
HWADDR=XX:XX:XX:XX:XX
IPADDR=X.X.X.X
NETMASK=X.X.X.X
ONBOOT=yes
Hope that helps a little!
 
Old 01-15-2014, 09:49 PM   #3
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 80
Quote:
i tried configuring a static ip on my "Oracle Linux Server" and i keep getting this error message
The information provided is'nt too good, so can you startup telling us how did you configured eth0 and what did you tried so far?
Quote:
hope to read from someone soon with the easiest possible solution
and for this we would need an easiest possible readable question.. :P :P
 
Old 01-16-2014, 03:20 AM   #4
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Hello y'all. first to "littleblueallie" thanks for the effort. Anyway, have been able to resolve the problem. i had to reconfigure the interface using the "neat" command , made a new interface and set up a static ip which gave me "ifcfg-eth0:1" since the OS could not find the original "ifcfg-eth0" file that was created with the installation.

After the interface has been created i used the "ifup ifcfg-eth0:1" and everything worked fine.

thanks again as always cheers
 
  


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
Debian - eth0 error: no such device on ifup eth0 svancouw Linux - Hardware 4 09-07-2011 05:32 PM
cannot activate eth1 using ifup or using ifcfg-eth1 akay Linux - Hardware 10 12-16-2010 06:10 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
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 04:25 PM
eth0 not coming up at bootup even when configured in ifcfg-eth0 djcham Linux - Networking 1 12-04-2006 09:09 PM


All times are GMT -5. The time now is 01:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration