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 06-29-2005, 11:37 AM   #1
chatterbug89
Member
 
Registered: Jun 2004
Distribution: TopologiLinux 4.0.0, Slackware 10.0, LFS 6.0
Posts: 53

Rep: Reputation: 15
Networking Problems


well, I just recently got my LFS system up and running and so far have only added OpenSSL, OpenSSH, Lynx, and nano.

For some reason i'm not able to see the "outside world". Any computer on my network can access the LFS box and the LFS box can ping and access any computer on the network except the outside world and the router.

If I try pinging 192.168.0.1 (my router) somethign realy strange happens...

Quote:
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.105: icmp_seq=0 ttl=64 time=1.623 ms
64 bytes from 192.168.0.105: icmp_seq=1 ttl=64 time=0.271 ms
64 bytes from 192.168.0.105: icmp_seq=2 ttl=64 time=0.258 ms
64 bytes from 192.168.0.105: icmp_seq=3 ttl=64 time=0.243 ms
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.243/0.599/1.623/0.591 ms
As you can see I ping the router and get a reply from the same box I am pinging from. Me and someone on the LFS IRC channel were trying to figure this out, but ended up completely stumped. He verfied my hosts and resolv.conf file and at the moment it appears that those fiels are fine. Anyways, any help woudl be appareciated, and in the meantime i'll keep looking for an answere. Below is the contents of variouse files that may be usefull for troubleshooting this problem.

hosts
Code:
127.0.0.1            localhost     loopback
192.168.0.105        chrisbox.192.168.0.105 chrisbox
resolv.conf
Code:
nameserver 192.168.0.1
ipv4
Code:
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.0.105
#GATEWAY=192.168.0.1
PREFIX=24
BROADCAST=192.168.0.1
NOTE: Enabling Gateway causes problems ;-)

I also personaly added a host.conf file just in case with the following contents...
Code:
order hosts,bind
multi on
Anyways, thanks in advanced.
 
Old 06-29-2005, 01:35 PM   #2
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
Have you tried:

onBOOT=yes
SERVICE=ipv4-static
IP=192.168.0.105
GATEWAY=192.168.0.1
PREFIX=24
BROADCAST=192.168.0.255

Also, is your nameserver really at 192.168.0.1 ?
I get my nameservers from my ISP.
 
Old 06-29-2005, 02:30 PM   #3
chatterbug89
Member
 
Registered: Jun 2004
Distribution: TopologiLinux 4.0.0, Slackware 10.0, LFS 6.0
Posts: 53

Original Poster
Rep: Reputation: 15
Well, changing boradcast to 192.168.0.255 fixed the mysteriouse problem.

I can ping my router, 192.168.0.1, and get a reply from the router and not from the computer i'm pinging from. Also, if I try to ping something like yahoo.com it dosent' just say Uknown Host

However, it will attempt to ping something like yahoo.com, but will just keep saying Network Unreachable. However, it did resolve the domain into a IP correctly. So, for example...

Code:
root--/etc > ping yahoo.com
PING yahoo.com (66.94.234.13): 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
--- yahoo.com ping statistics ---
0 packets transmitted, 0 packets received,
So, it is resolving the hostname, but can't access the "outside world"

As for the nameserver stuff. the answere is no...a router does the work for you...it knows the nameservers and it redirects all the requests...atleast i'm pretty sure. Anyways, just to eliminate a posible cause, I tried using both of my ISP's nameservers...I just got Uknown Host while pinging. Plus, all my other computers are set up where 192.168.0.1 is the nameserver. Also, I will soon be setting up my own nameserver.

So, any ideas?

EDIT: By the way, once again there is no gateway :-P If I put a gateway it just results in anoying errors

Last edited by chatterbug89; 06-29-2005 at 02:31 PM.
 
Old 06-29-2005, 03:47 PM   #4
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
You say you have other computers on the network?
Are they going thru the same router?
Are they communicating with the outside world?
What annoying errors are you getting when you put
in the gateway? There may be some useful info in the
error messages which may point to the solution to your
problem.
 
Old 06-29-2005, 05:20 PM   #5
chatterbug89
Member
 
Registered: Jun 2004
Distribution: TopologiLinux 4.0.0, Slackware 10.0, LFS 6.0
Posts: 53

Original Poster
Rep: Reputation: 15
Problem solved.

After correcting my other mistakes and uncommenting the gateway everything works fine. Can surf the web with lynx and ping the outside world.

By the way....the gateway, nameserver, etc. all points to 192.168.0.1, my router. ;-) With the exception of the Broadcast IP.

Anyways, thanks a lot for your help.
 
Old 06-29-2005, 06:22 PM   #6
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
I'm glad you got it going.
 
  


Reply


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
networking problems nacha Debian 3 06-18-2004 11:01 AM
Networking Problems jade Linux - Newbie 6 12-04-2003 10:41 PM
networking problems deezay Linux - Networking 4 03-20-2002 04:47 PM
Networking Problems -Please Help Anime_Ry Linux - Networking 1 08-07-2001 11:02 PM
Networking problems Shil Linux - Newbie 2 12-11-2000 11:04 PM

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

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