LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-19-2014, 02:18 PM   #1
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Rep: Reputation: Disabled
ping: unknown host error


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.
Attached Thumbnails
Click image for larger version

Name:	IMG_20141119_150907-compressed__1416428732_24.168.35.17.jpg
Views:	137
Size:	44.4 KB
ID:	16900  

Last edited by aashil16; 11-19-2014 at 02:27 PM.
 
Old 11-19-2014, 03:14 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
"link down" is the opposite of up.
 
Old 11-19-2014, 08:55 PM   #3
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
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.

Last edited by stoat; 11-19-2014 at 09:03 PM.
 
Old 11-20-2014, 12:27 AM   #4
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



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
ping: unknown host error when trying to connect 32 bit SME Server 8.1 to the internet kjell159 Linux - Server 13 05-20-2014 12:26 AM
[SOLVED] ping reply unknown host but dig and host return correct IP kathy_lo Linux - Networking 6 11-18-2012 07:12 PM
[SOLVED] ping www.google.co.in gives unknown host error ,ping to LAN address works fine aspiring_stellar Linux - Newbie 10 05-24-2011 03:26 PM
Debian 5 , after SysCp Installation and configure Ping Valure ( ping: unknown host ) brenner23 Linux - Networking 1 07-14-2010 09:01 PM
error unknown host given when trying to ping FQDN cnts-student Linux - Newbie 2 03-18-2007 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:04 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
Open Source Consulting | Domain Registration