LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2005, 04:45 PM   #1
theduke0
LQ Newbie
 
Registered: Apr 2005
Location: Texas
Distribution: Fedora Core 4
Posts: 12

Rep: Reputation: 0
can't get outside home network


I have just installed FC4 on an Inspiron 8000 laptop and cann't get out of my network. I would like to get out into the wild world of the internet.

I can ping my router and make it to my router's connections setup page through firefox.

I can also ping that computer from the other computer on my network (running XP), but cannot ping the other computer from my FC4 box.

I am thinking there could be some problem with my localhost.localdomain stuff....but not sure.

Any suggestions?

Thanks in advance.
 
Old 11-20-2005, 06:51 PM   #2
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
Re: can't get outside home network

Quote:
Originally posted by theduke0
I have just installed FC4 on an Inspiron 8000 laptop and cann't get out of my network. I would like to get out into the wild world of the internet.

I can ping my router and make it to my router's connections setup page through firefox.

I can also ping that computer from the other computer on my network (running XP), but cannot ping the other computer from my FC4 box.

I am thinking there could be some problem with my localhost.localdomain stuff....but not sure.

Any suggestions?

Thanks in advance.
Do you have the router's IP address set as your gateway on your FC box?
 
Old 11-20-2005, 07:20 PM   #3
theduke0
LQ Newbie
 
Registered: Apr 2005
Location: Texas
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
I have tried to do that in the FC networking GUI, but can't get it to click. Is there a file or command that would tell me if I have the correct gateway?
 
Old 11-20-2005, 08:02 PM   #4
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
Route

Quote:
Originally posted by theduke0
I have tried to do that in the FC networking GUI, but can't get it to click. Is there a file or command that would tell me if I have the correct gateway?
What do you mean can't get it to click? Does FC4 ask you for the root password when you try to change these settings? I thought it did, but haven't used RH in a long time. As for a file, yes there is, but again, I don't know what the file name would be since FC uses a different configuration than my distro. The file would be located in /etc, though. Running the command "route" (without the quotes), will tell you what your gateway is. The IP address should be listed on the bottom line, under the column "Gateway". You will need to run this command as root. If you have never set the gateway, I am almost positive this is your problem.
 
Old 11-21-2005, 12:35 AM   #5
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
you can check /etc/sysconfig/networking/devices/ifcfg-eth0 file and see if you have setup your gateway properly.
 
Old 11-21-2005, 04:02 PM   #6
babysparrow
Member
 
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94

Rep: Reputation: 19
probably kernel routing tables

I have recently installed FC4 myself and found the same problem.

I determined the cause of _my_ problem was that the default route was missing from the kernel routing tables.

I added the default entry (as shown below) and now it works.

[root@hostname ~]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
 
Old 11-21-2005, 06:17 PM   #7
theduke0
LQ Newbie
 
Registered: Apr 2005
Location: Texas
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
babysparrow:
my route looks exactly like yours, except mine refers to eth0 (correct)

192.168.10.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.10.1 UG 0 0 0 eth0

sirkware:
ipv6init=no
onboot=yes
userstrl=yes
peerdns=yes
type=ethernet
device=eth0
hwaddr=00:00:86:5a:0a:44
bootproto=dhcp


sargetK:
yes i do have to enter the root password to make such changes. The "click" was in reference to the fact that there are different places where I can input gateway. There is a routing tab where i manually entered the default gateway, but there are also places for destination network and prefix (network). I left all blank except the gateway address. I get an error that says static routes file eth0 is invalid. ??

There is also a place in the GUI where I can input hostname, primary dns, secondary, and dns search path. I have left these blank.

My router assigns a proper IP address of 192.168.10.4, bcast is 192.168.10.255, mask 255.255.255.0



I also recieve an error when I boot up the computer that say " localhost is not defined, you may consider adding to etc/hosts" I have tried this, but nothing changed, so that file is blank.

Any suggestions are greatly appreciated. Thanks in advance.
 
Old 11-21-2005, 06:38 PM   #8
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by theduke0
:There is also a place in the GUI where I can input hostname, primary dns, secondary, and dns search path. I have left these blank.
You should not let these fields blank. The values on this fields determine your network settings. Find the proper values for the primary and secondary dns textfields. Enter your hostname on the hostname field. The dns search path can be left blank.

Quote:
Originally posted by theduke0
:I also recieve an error when I boot up the computer that say " localhost is not defined, you may consider adding to etc/hosts" I have tried this, but nothing changed, so that file is blank.
/etc/hosts file should always have values on it and thats the reason why your getting the error upon boot up. Modify the hosts file and add the following line:

127.0.0.1 localhost.localdomain localhost localhost.localdomain localhost

Then restart your computer after doing all of these. Hope that would solve your problem.
 
Old 11-21-2005, 07:32 PM   #9
theduke0
LQ Newbie
 
Registered: Apr 2005
Location: Texas
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
where can i find these primary and secondary dns names/numbers?
 
Old 11-21-2005, 07:40 PM   #10
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
On your windows machine, go to the command prompt and type:

ipconfig /all

Copy the DNS Servers that would be displayed.
 
Old 11-21-2005, 08:05 PM   #11
theduke0
LQ Newbie
 
Registered: Apr 2005
Location: Texas
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you!! I believe that he DNS was the ticket. I wonder why it didn't fix itself? Thanks for everything.
 
Old 11-22-2005, 10:04 AM   #12
babysparrow
Member
 
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94

Rep: Reputation: 19
DNS Proxy

I'm guessing that your home setup does not have any DNS proxy capability(?)

On most home systems you should expect the Gateway address to also act as the DNS proxy so that the isp can change the settings (if ever) without you having to update your config.

eg:
ifcfg-eth0:
GATEWAY=192.168.10.1
&
/etc/resolv.conf:
nameserver 192.168.10.1
 
Old 11-22-2005, 09:48 PM   #13
theduke0
LQ Newbie
 
Registered: Apr 2005
Location: Texas
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
my gateway address is the same as my DNS nameserver. I do not know why I had this problem, and don't know how I will ever know.

But at least it works.
 
  


Reply



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
home network mattjamal Linux - Networking 5 11-26-2005 06:54 PM
Home network setup with network firewall/router Gates1026 Linux - Networking 4 01-17-2005 08:26 PM
Home Network Similar to Work Network Boffy Linux - Networking 2 08-05-2004 06:52 PM
home network and work network PlatinumRik Linux - Wireless Networking 2 02-24-2004 07:12 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:41 AM.

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