LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-09-2016, 10:52 AM   #1
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Rep: Reputation: 0
ping:unknown host ?


hello there,

i just completed xorg section in BLFS 7.10 when i try to ping www.google.com it returns unknown host my /etc/resolv.conf file is
Code:
# Begin /etc/resolv.conf

domain google.com
nameserver 8.8.8.8
nameserver 8.8.4.4

# End /etc/resolv.conf
my /etc/sysconfig/ifconfig.etch0 file is
Code:
ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.2
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
any suggestions?
 
Old 09-09-2016, 11:26 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Are you connected to the router? ping -c 3 router. If not out put of ip link
 
Old 09-09-2016, 12:07 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Are they the correct settings for your set up? or have you just copied from book?
 
Old 09-09-2016, 12:14 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I'm pretty sure your network interface is not etch0.
 
Old 09-11-2016, 04:25 AM   #5
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spiky0011 View Post
Are they the correct settings for your set up? or have you just copied from book?
sorry for the very late reply,

i just copied from the book,i am using net from WiFi router not eth0could you tell me how to change settings according to my needs ? thanks in advance.
 
Old 09-11-2016, 04:31 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Well 1st you need to get the settings "ip address" of router, then you need to post output of
Code:
ip link
or just use the info you get from those to adjust your ifconfig file
 
Old 09-12-2016, 09:57 AM   #7
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spiky0011 View Post
Well 1st you need to get the settings "ip address" of router, then you need to post output of
Code:
ip link
or just use the info you get from those to adjust your ifconfig file
thanks for the reply,

i am attaching the output when i run ip linkClick image for larger version

Name:	14302464_1385497724812986_1525639860_n.jpg
Views:	68
Size:	53.9 KB
ID:	22985
 
Old 09-12-2016, 12:27 PM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
There are no devices found, missing drivers or firmware
 
Old 09-12-2016, 12:36 PM   #9
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spiky0011 View Post
There are no devices found, missing drivers or firmware
Hello thanks for the reply,

can you suggest me what i need to set and install?
 
Old 09-12-2016, 12:56 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
No as I dont know what hardware you have it will need building in the kernel and you need to find out if it needs firmware and install it into /lib/firmware, You must start looking and doing some of this yourself, or show what you have tried.
 
Old 09-12-2016, 08:09 PM   #11
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spiky0011 View Post
No as I dont know what hardware you have it will need building in the kernel and you need to find out if it needs firmware and install it into /lib/firmware, You must start looking and doing some of this yourself, or show what you have tried.
when i run ip link in host the host also displays a same output as my LFS system.
Quote:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
link/ether e0:69:95:35:b5:1f brd ff:ff:ff:ff:ff:ff
3: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 1000
link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
4: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 1000
link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
 
Old 09-13-2016, 02:28 AM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
That image you posted dosn't show eth0. only lo and sit0
 
Old 09-14-2016, 11:40 AM   #13
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spiky0011 View Post
That image you posted dosn't show eth0. only lo and sit0
Thanks for the reply,

yes it doesn't show etho install some network manager tools there also it can't show could you suggest me what can i install for this? thanks in advance.
 
Old 09-14-2016, 11:52 AM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
You need to know what internet device you want to use, ethernet or wireless. You then need to know what the device is. You will then need to build the drivers for it into the kernel, and find out if firmware is required for your device,

2 tools to help you find out the info are
Code:
lspci
Code:
lsusb
and google
 
Old 09-14-2016, 01:06 PM   #15
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spiky0011 View Post
You need to know what internet device you want to use, ethernet or wireless. You then need to know what the device is. You will then need to build the drivers for it into the kernel, and find out if firmware is required for your device,

2 tools to help you find out the info are
Code:
lspci
Code:
lsusb
and google
Here is the snapshot of output Click image for larger version

Name:	14348846_1387601074602651_857017133_n.jpg
Views:	65
Size:	17.3 KB
ID:	23013
 
  


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
[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
Bind9 ,host does reslove a dns name but ping says unknown host Byenary Linux - Networking 10 01-12-2011 01:33 AM
Debian 5 , after SysCp Installation and configure Ping Valure ( ping: unknown host ) brenner23 Linux - Networking 1 07-14-2010 09:01 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM

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

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