LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My ethernet didn't work. Please help! (https://www.linuxquestions.org/questions/linux-newbie-8/my-ethernet-didnt-work-please-help-4175482589/)

applehalf 10-29-2013 02:37 AM

My ethernet didn't work. Please help!
 
Hello my friends. Help me please.
I have oracle linux server release 6.2
On it i have a problem:
# ifconfig eth0
shows status: UP BROADCAST MULTICAST (not RUNNING)
Of corse i have default gateway in 'netstat -rn'.
Command route perfomed in 20 seconds, all this time i'm waiting for line with default gateway.
I can ping only localhost from server.
What can i change in my settings to resolwe my problem?

ericson007 10-29-2013 02:44 AM

Well if it is not running, turn it on.

Code:

ifconfig eth0 up
Check your ifcfg-eth0 file and add
Code:

onboot=yes
If i am not mistaken, it is Oracle linux is RHEL based. This would as such also appear in the supplied online manuals.

applehalf 10-29-2013 02:52 AM

I changed that position using GUI, but it didnt change nothing except one line in ifcfg-eth0.
Status of eth0 UP but not RUNNING, and i can't ping gateway.

ericson007 10-29-2013 06:43 PM

Do you have dhcp running somewhere?

frankbell 10-29-2013 08:36 PM

What is the output of ifconfig -a from the terminal?

Also, what are the contents of /etc/sysconfig/network-scripts/ifcfg-ethX, where X = the ethernet interface in use? (See this link for more: http://www.cyberciti.biz/faq/redhat-...configuration/.)

applehalf 11-06-2013 04:25 AM

Thanks everybody, i founded my problem.

Firerat 11-06-2013 04:44 AM

please elaborate , it may help someone in the future

applehalf 11-06-2013 05:19 AM

my ethernet swith eth0 was out of service, so I set as default eth1.


All times are GMT -5. The time now is 11:32 AM.