lfs-dev(rc1)-book network connection

Bruce Dubbs bruce.dubbs at gmail.com
Sun Feb 7 11:53:36 PST 2010


Dmitry Sokolov wrote:
> Hello.
> 
> I installed wget 1.12 for test my netconn...but i can't download any files,
> i configured it like as in the lfs-book, only i changed network-parametres,
> ip,gateway, and more, and my connection name is not eth0, it's sit0,
> i configured /etc/resolv.conf by setting dns-ip-addresses, and wget tells me
> Unable to resolve host address http://xxx.com/dir/file.xxx, it's for example.

The problem solving process for connection issues is generally something 
like the following:

1.  Find the router.

$ ip route list
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.6
default via 192.168.0.1 dev eth0

2. Talk to the router

$ ping -c1 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 48 data bytes
56 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=1.856 ms
--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.856/1.856/1.856/0.000 ms

3.  Check /etc/resolv.conf

$ cat /etc/resolv.conf
search linuxfromscratch.org
nameserver 24.93.41.128

4. Check that the nameserver is working

$ ping -c1 24.93.41.128
PING 24.93.41.128 (24.93.41.128): 48 data bytes
56 bytes from 24.93.41.128: icmp_seq=0 ttl=49 time=21.044 ms
--- 24.93.41.128 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 21.044/21.044/21.044/0.000 ms

At this point, assuming the ip number in resolv.conf is a valid 
nameserver, wget should work.  Any problems from there are probably the 
remote host being down.

   -- Bruce



More information about the lfs-support mailing list