LinuxQuestions.org
Help answer threads with 0 replies.
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-30-2018, 02:41 PM   #1
rithinskaria
LQ Newbie
 
Registered: Sep 2018
Location: India
Posts: 17

Rep: Reputation: Disabled
Unhappy wget issue -LFSCan't connect to internet


I booted up LFS and trying to add more packages but wget is not working stuck at connecting.

I am able to ping IPs, get DNS resolved and even traceroute to dest IP is possible but wget is not working. As a workaround, I am SCPing packages from Ubuntu to LFS and installing them.

But I would still like to troubleshoot this issue.

Output:


root [ /sources/wget-1.19.5 ]# traceroute 149.20.1.49 -I
traceroute to 149.20.1.49 (149.20.1.49), 64 hops max
1 10.192.16.1 2.843ms 1.711ms 1.807ms
2 10.192.2.5 0.862ms 0.881ms 1.114ms
3 14.140.176.209 9.574ms 20.206ms 2.778ms
4 172.31.167.46 21.879ms 26.077ms 21.894ms
5 115.114.71.134 28.020ms 26.102ms 25.569ms
6 180.87.36.9 27.332ms 25.716ms 18.279ms
7 180.87.36.83 216.499ms 217.647ms 217.644ms
8 180.87.67.33 126.933ms 122.679ms 122.329ms
9 120.29.211.2 122.002ms 118.680ms 118.797ms
10 209.58.86.142 233.464ms 234.872ms 233.653ms
11 209.58.86.74 224.392ms 225.352ms 224.669ms
12 149.20.65.29 226.807ms 227.725ms 227.317ms
13 149.20.1.49 217.872ms 218.222ms 218.160ms
root [ /sources/wget-1.19.5 ]# wget ftp://ftp.isc.org/isc/dhcp/4.4.1/dhcp-4.4.1.tar.gz
--2018-09-30 19:33:18-- ftp://ftp.isc.org/isc/dhcp/4.4.1/dhcp-4.4.1.tar.gz
=> 'dhcp-4.4.1.tar.gz'
Resolving ftp.isc.org... 149.20.1.49, 2001:4f8:1:f::49
Connecting to ftp.isc.org|149.20.1.49|:21... ^C
root [ /sources/wget-1.19.5 ]#
root [ /sources/wget-1.19.5 ]# ifconfig
enp0s3 Link encap:Ethernet HWaddr 08:00:27:55:6E:BF
inet addr:10.192.16.220 Bcast:10.192.16.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12069 errors:0 dropped:0 overruns:0 frame:0
TX packets:3372 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:902369 TX bytes:663396

lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0

root [ /sources/wget-1.19.5 ]# wget ftp://ftp.isc.org/isc/dhcp/4.4.1/dhcp-4.4.1.tar.gz
--2018-09-30 19:33:34-- ftp://ftp.isc.org/isc/dhcp/4.4.1/dhcp-4.4.1.tar.gz
=> 'dhcp-4.4.1.tar.gz'
Resolving ftp.isc.org... 149.20.1.49, 2001:4f8:1:f::49
Connecting to ftp.isc.org|149.20.1.49|:21...






root [ /sources/wget-1.19.5 ]# ifconfig
enp0s3 Link encap:Ethernet HWaddr 08:00:27:55:6E:BF
inet addr:10.192.16.220 Bcast:10.192.16.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12119 errors:0 dropped:0 overruns:0 frame:0
TX packets:3398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:906971 TX bytes:667858

lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0

root [ /sources/wget-1.19.5 ]# cat /etc/sysconfig/ifconfig.enp0s3
ONBOOT=yes
IFACE=enp0s3
SERVICE=ipv4-static
IP=10.192.16.220
GATEWAY=10.192.16.1
PREFIX=24
BROADCAST=10.192.16.255

root [ /sources/wget-1.19.5 ]# cat /etc/resolv.conf
domain localdomain
nameserver 10.192.3.10
nameserver 8.8.8.8
nameserver 8.8.4.4

This is running as a VM in VirtBox with adaptor bridged to Ethernet.

Could someone please verify this and see what is happening

Let me know if any other output is required.
 
Old 09-30-2018, 02:50 PM   #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
Did you install http://www.linuxfromscratch.org/blfs...s/make-ca.html
Although that normally gives another error.
Have you tried wget something else? is it just that site?

Last edited by spiky0011; 09-30-2018 at 02:51 PM.
 
Old 09-30-2018, 04:24 PM   #3
rithinskaria
LQ Newbie
 
Registered: Sep 2018
Location: India
Posts: 17

Original Poster
Rep: Reputation: Disabled
Nope nothing is working :/
 
Old 09-30-2018, 04:29 PM   #4
rithinskaria
LQ Newbie
 
Registered: Sep 2018
Location: India
Posts: 17

Original Poster
Rep: Reputation: Disabled
After installing make-ca rest of the packages are getting downloaded, still can't download dhcpd. Lemme see if I can find another link
 
Old 09-30-2018, 04:46 PM   #5
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
try here

http://ftp.lfs-matrix.net/pub/blfs/8.3/d/
 
Old 10-01-2018, 07:00 PM   #6
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
Can you ping your router (gateway) GATEWAY=10.192.16.1 ?
max nameservers allowed is 2 not 3. You also have a mismatch in your config that will stop it from working.

nameserver 10.192.3.10 GATEWAY=10.192.16.1 these are typically the same IP on a home LAN.
 
Old 10-01-2018, 07:39 PM   #7
rithinskaria
LQ Newbie
 
Registered: Sep 2018
Location: India
Posts: 17

Original Poster
Rep: Reputation: Disabled
Well 10.192.16.1 has a route to 10.192.3.10, if you look at the tracert you can see that.

Also there is not problem with DNS resolution as the box is able to resolve the FTP.isc to an IP address.

Anyways I figured it out VBox has some issues with Intel AC WiFi adaptor !! So I purchased an external TP Link wireless adaptor and it fixed the issue

Thanks guys

Last edited by rithinskaria; 10-01-2018 at 07:41 PM. Reason: Info add
 
Old 10-01-2018, 09:22 PM   #8
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
Throwing $ at a config issue isn't troubleshooting but that's certainly a choice. We didnt get too far since you say that's a good config. Your traceroute doesnt give me any useful info. Using a wireless nic for a VM host is not wise, etc. If you're happy I'll consider it solved. (Might have needed a simple install of the wl nic's firmware as a solution)
 
Old 10-02-2018, 12:31 AM   #9
rithinskaria
LQ Newbie
 
Registered: Sep 2018
Location: India
Posts: 17

Original Poster
Rep: Reputation: Disabled
Yeah that’s true !! I found that bug from vBox forum so with the new NIC it'sworking.

Could you please let me know what exactly is the config issue ?? I mean it is working now so not sure ��
 
Old 10-02-2018, 08:23 AM   #10
arch-linq
Member
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,BLFS
Posts: 110

Rep: Reputation: Disabled
Sure. The config issue I see is you are using a separate DNS server from your gateway. I've only seen that done in a corporate LAN not a home LAN. It is possible to do that so if it works that way for you so be it. Example of most home LAN's is ISP IP >Router WAN ip >LAN IP > Client DHCP IP which is received from the router.
 
Old 10-02-2018, 08:52 AM   #11
rithinskaria
LQ Newbie
 
Registered: Sep 2018
Location: India
Posts: 17

Original Poster
Rep: Reputation: Disabled
Yes, that is the reason I have 8.8.8.8.

I have different setup in my lab where my queries are getting forwarded to cloud for resolution and back to on PrEm. This is just a trial setup. I have Four routers running in my lab all behind a core router.

So two of them are more like host only and they would only fall to the Internal view of the Infoblox DNS while two of them have recursion enabled and will fall to the External view. So this is just a lab setup.

10.192.3.10 is the primary Infoblox DNS and 10.192.4.10 is the MS DC.

Anyways it is all messed up ��

Appreciate your help.
 
  


Reply

Tags
blfs, lfs, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] wget issue drManhattan Linux - Newbie 2 02-28-2011 05:57 AM
My issue is that I can't seem to connect to the internet during the install uberlinuxguy Debian 9 12-03-2008 06:08 PM
wget works but telnet [host] 80 does not connect ttonteri Linux - Networking 6 12-28-2004 09:57 AM
wget issue Equin Linux - General 0 10-17-2004 06:28 PM
Wget and cURL can't connect umberleigh Linux - Newbie 0 09-21-2004 05:59 PM

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

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