LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   WHAT IS THIS: ifcfg-eth0 (ifup <device name> ?? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-this-ifcfg-eth0-ifup-device-name-4175491398/)

Ribo01 01-15-2014 12:26 PM

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

littleblueallie 01-15-2014 12:45 PM

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!

SAbhi 01-15-2014 08:49 PM

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

Ribo01 01-16-2014 02:20 AM

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


All times are GMT -5. The time now is 04:40 PM.