LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-25-2016, 02:22 PM   #1
cxd
LQ Newbie
 
Registered: Jul 2016
Location: USA
Distribution: Ubuntu 14.04
Posts: 2

Rep: Reputation: Disabled
LFS 7.9 Networking Issues, Ping: Unknown Host/Destination Unreachable


Hi I recently finished my LFS and am trying to get networking to work.

I followed steps in 7.5 for LFS 7.9, but I can't seem to get pinging to work.

My router's ip is 192.168.0.1
Here are some pictures:

* My Files: http://imgur.com/a/xjFFe
* Able to ping localhost: http://imgur.com/a/Ov5bl
* Unknown host: http://imgur.com/a/aUN92

Here are my files more clearly:

* http://imgur.com/a/j7kOt
* My /etc/udev/rules.d/70-persistent-net.rules: http://imgur.com/a/8f336
* My /etc/rc.d/init.d/network: http://imgur.com/a/2Hjxx

Thank you very much!

EDIT:

Problem was fixed by setting the correct values for the IP Address and Gateways in /etc/sysconfig/ifconfig.eth0

* I set the IFACE to my correct "ens3" device

* The Gateway to the correct QEMU SLIRP gateway

* The IP to the correct QEMU SLIRP ip

Last edited by cxd; 07-30-2016 at 03:34 PM. Reason: How to solve problem
 
Old 07-25-2016, 03:16 PM   #2
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Try
Code:
ping -c 3 google.com
Also you didn't show your /etc/init.d/network. Did you put your interfaces up?
 
Old 07-25-2016, 03:46 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
So your not connected to router.

Code:
cat > ifconfig.eth0 << "EOF"
ONBOOT=yes   <<<<<< this bit<<<<<<
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.2
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
also is your interface named eth0 did you check?

Last edited by spiky0011; 07-25-2016 at 03:49 PM.
 
Old 07-30-2016, 03:33 PM   #4
cxd
LQ Newbie
 
Registered: Jul 2016
Location: USA
Distribution: Ubuntu 14.04
Posts: 2

Original Poster
Rep: Reputation: Disabled
I fixed the Problem

Problem was fixed by setting the correct values for the IP Address and Gateways in /etc/sysconfig/ifconfig.eth0

* I set the IFACE to my correct "ens3" device

* The Gateway to the correct QEMU SLIRP gateway

* The IP to the correct QEMU SLIRP ip

Thank you spiky and Mitt for helping

Last edited by cxd; 07-30-2016 at 03:34 PM. Reason: Thanks
 
  


Reply

Tags
ethernet, lfs, networking, qemu



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 to Honeyd virtual host replying Destination Host Unreachable Doejohn Linux - Networking 2 12-22-2023 10:43 AM
Network is Unreachable/Unknown host/Destination Host Unreachable [Debian] denv Linux - Networking 4 03-27-2014 02:58 PM
Ping: Destination Host Unreachable parashuram2011 Linux - Networking 3 10-21-2011 03:27 PM
Destination HOST Unreachable - cannot ping gateway rpkosuri Linux - Networking 5 06-16-2008 11:38 PM
when ping I get Destination host unreachable Fuzia Linux - Networking 1 06-19-2006 01:22 AM

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

All times are GMT -5. The time now is 10:58 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