configure hosts
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/ Thanks! |
What happens when you do this:
Code:
ping 8.8.8.8 |
Nothing happens :(
here is the output of google: Code:
ping: unknown host Code:
PING 8.8.8.8 (8.8.8.8): 56 data bytes |
Your not connected to a network. Are you using eth0 or wireless?
Output Code:
ip link Any other revelent info? |
1 Attachment(s)
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). Attachment 24032 Thanks! |
Ok you never said if you were using eth0 or wireless?
wireless is not found eth0 is enp0s3 you should have a "ifconfig.eth0" from this page http://www.linuxfromscratch.org/lfs/...7/network.html post that file. If you have a wireless you are trying to use, more needs to be done. FYI to direct a terminal command to a file you could Code:
ip link > /home/user/ip-link.txt |
I am using eth0. Here is ifconfig.eth0 file:
Code:
ONBOOT=yes Code:
# Begin /etc/resolv.conf Code:
# Begin /etc/hosts (network card version) |
ok eth0 is called enp0s3, so you need to change the name in your ifconf.eth0
Code:
ONBOOT=yes 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. Edit the file as necessary |
Sorry if this question is obvious, but what part do I need to replace?
|
change the eth0 part as indicated. Ip addr just change the ip addr in the config file to what yours is
example IP=192.168.1.2 > 192.168.0.10 GATEWAY=192.168.1.1 > 192.168.0.1 BROADCAST=192.168.1.255 > 192.168.0.255 |
I do not know what is going wrong. I changed the ifconfig for my lfs system. here is my host system ifconfig:
Code:
enxa0cec80353b0 Link encap:Ethernet HWaddr a0:ce:c8:03:53:b0 Code:
enp0s3 Link encap:Ethernet HWaddr 08:00:27:56:61:F0 |
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) |
It does not work. I have given you all the info I have. I will continue to play with it and see if I can get anything working.
Thanks for your help! |
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. |
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!
|
All times are GMT -5. The time now is 12:08 PM. |