Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I am still pretty new to lfs and I am having some trouble configuring the networking. I attempted all of chapter 7.5. However whenever I run wget (from BLFS) I get an error:
Code:
--2017-01-21 23:29:06-- http://google.com/
Resolving google.com ... failed: Temporary failure in name resolution.
wget: unable to resolve host address
I think this is because the network is not correctly configured but I do not know for sure.
If you can hit 8.8.8.8, but cannot hit google.com, you have an issue with your DNS. If you can't hit either, post the results here and we'll puzzle it out.
Here is the output of ifconfig and ip link:
(I am using screenshots because it is in a vm and that is a lot easeyer than having to type everything out. if you want me to type everything out just let me know and I would be happy to).
ok eth0 is called enp0s3, so you need to change the name in your ifconf.eth0
Code:
ONBOOT=yes
IFACE=eth0 to IFACE=enp0s3
SERVICE=ipv4-static
IP=192.168.1.2
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
Also I presume you copied the file from lfs book?
That is an example file.
your ip address might not be the same, You will need to get the details from your host system.
ifconfig will help you with that. Look for the part inet addr and the numbers after it.
So dose it work you didn't say? ip link will show some info
You might have to change the name of the file ifconfig.eth0 > ifconfig.enp0s3 cant remember, but it wont hurt. Just read the note in the book on network page.
can you ping the router ping -c3 192.168.1.2 << presume thats your router ip If not change "GATEWAY=192.168.1.x" to correct
if yes
can you ping google ping -c3 www.google.com or ping -c3 8.8.8.8
When you reply back add any info to what is happening (we cant see)
Is it "UP ... RUNNING" like your ..1.191 computer is?
I'm not sure what the ?service? command is to start networking on LFS.
Yes, you *MUST* name the file ifconfig.enp0s3 (NOT .eth0!)
SERVICE=dhcp might be what you want (remove next/last 4 IP# lines)
Another idea: run a NuTyX (it's from LFS), to compare things with.
Last edited by GentleThotSeaMonkey; 01-23-2017 at 09:25 PM.
Thank you all for your help! I finally got it to work (I was so happy that I actually stood up from my desk and did a victory dance)! The problem was that virtualbox uses 10.0.x.x instead of 192.168.x.x so that was messing it up. thanks again for all of your help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.