LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   ping: unknown host error (https://www.linuxquestions.org/questions/linux-from-scratch-13/ping-unknown-host-error-4175525915/)

aashil16 11-19-2014 02:18 PM

ping: unknown host error
 
1 Attachment(s)
I get a "ping: unknown host" error when I try to ping.

etc/resolv.conf:
Quote:

domain search
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 209.18.47.61 dns4.rr.com
nameserver 209.18.47.62
etc/sysconfig/ifconfig.eth0:
Quote:

ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.2
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
etc/hosts:
Quote:

127.0.0.1 localhost
192.168.1.2 aashil
Can anyone check the attachment to see if eth0 is booted up correctly ? eth0 is up but before that there is some patch error.
Btw, every output has [OK] at the right end which cannot be seen in the attachment.

smallpond 11-19-2014 03:14 PM

"link down" is the opposite of up.

stoat 11-19-2014 08:55 PM

I would try providing that firmware it's trying to load. Have you tried that? It's not hard to find a firmware file named rtl8168g-2.fw on the Internet. If this were happening to me, I would compile the kernel with the Ethernet driver not built in (module instead) and copy that firmware file to /lib/firmware/rtl_nic (or whatever dir the realtek stuff is in). It's a harmless and reversible thing to try anyway.

aashil16 11-20-2014 12:27 AM

Thank you stoat. I will do that. But for now I have solved the problem. I was using the wrong ip address for my interface.


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