LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-22-2004, 04:47 AM   #1
cseanburns
Member
 
Registered: Nov 2003
Distribution: Fedora, Debian, Ubuntu, FreeBSD
Posts: 129

Rep: Reputation: 23
no internet connection


Tonight I installed FC3 seemingly without a hitch until once installed I found I couldn't connect to the internet. Firefox will not access any pages, so I went to terminal and tried to ping, but after a few minutes I cancelled that because I wasn't getting a response (tried pinging google).

Normally, I have DHCP (which is how I set it up during installation), but I tried running the internet connection wizard and to set the IP, subnet, and gateway numbers manually with the numbers I know to be correct (from setting this up before on a different distro), but still no connection.

Eth0 is active. The card is recognized. I tried ifconfig from terminal as root but it seems the root password works in the GUI but not in terminal (which is weird????). So I can't gain root access in the terminal which I tried to do the two ways I know how---straight login and sudo.

I have a little experience with Linux and Unix, but I'm definitely no expert (I'm just a measly cook at some restaurant), so please feel free to talk to me as simply as you can.

Thanks for anyone's help.
 
Old 12-22-2004, 04:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
su will always let you eneter the root password, but either way you can run ifconfig as non root, it just won't be on your path... /sbin/ifconfig. also show the output of /sbin/route. also see if you can ping by ip address, if not by name. if that's the case then you need to add dns servers to /etc/resolv.conf
 
Old 12-22-2004, 05:00 AM   #3
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
do you try to connect to the internet via a router?
 
Old 12-22-2004, 05:34 AM   #4
cseanburns
Member
 
Registered: Nov 2003
Distribution: Fedora, Debian, Ubuntu, FreeBSD
Posts: 129

Original Poster
Rep: Reputation: 23
Thanks for your help.

First, I do connect via a router with two computers attached: one with FC3 and one OS X.

Both files /sbin/ifconfig and /sbin/route are binary files and so the output wasn't very clear. (editing this: I typed in cat ifconfig and realized that these were not text files. what command should i enter to provide you with the information you need? also, when I typed in ifconfig and route as commands, bash tells me 'command not found').

I pinged an ip number and it was successful. The IP is a friend's computer which he uses to host a small family website. So I went back to firefox and typed in his IP number and his website loaded perfectly. But actual domain names do not work, like www.google.com or any other, doesn't work: I get timed out responses in firefox and am unable to ping them in terminal.

The result of /etc/resolv.conf is

search company.com
nameserver 192.168.1.1

How do I add DNS to that? Not familiar with DNS at all.

Last edited by cseanburns; 12-22-2004 at 05:46 AM.
 
Old 12-22-2004, 05:37 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just add another nameserver a.b.c.d entry... these really should be being supplied by your ISP though, is your router dishing you out dhcp? if so that will normally also relay your dns requests to the isp's name servers, which might explain why 192.168.1.1 is in there.. is that your router address? if so you'd do better to get the name servers inserted into your router, and then everything on the internal systems will get configured right automatically.
 
Old 12-22-2004, 05:44 AM   #6
cseanburns
Member
 
Registered: Nov 2003
Distribution: Fedora, Debian, Ubuntu, FreeBSD
Posts: 129

Original Poster
Rep: Reputation: 23
not sure i understand, but i will try and post back tomorrow, thanks

Last edited by cseanburns; 12-22-2004 at 05:48 AM.
 
Old 12-22-2004, 05:51 AM   #7
cseanburns
Member
 
Registered: Nov 2003
Distribution: Fedora, Debian, Ubuntu, FreeBSD
Posts: 129

Original Poster
Rep: Reputation: 23
sorry about my ignorance, but, I should call up my isp, ask them what the nameserver is, then edit the file typing in after nameserver the info my isp gives me? also, is that what you mean by inserting the nameserver in the router, by editing that file? and do I replace whatever nameserver the isp gives me with the ip 192... that's in there?
 
Old 12-22-2004, 06:07 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, you CAN replace the 192.168.1.1 but i would guess that that is actually the address of the router you have. you should be able to configure your router via some sort of http interface to it...

your ISP's name servers would be the fastest, so the most desirable. if you are using windows too, just run ipconfig in windows and it will show what your DNS IP's are.

now if you do edit those IP addresses directly, you may well find that next time you boot your router has told your linux box to over write those details. in which case i'd suggest spending a little time adding those details to your router instead.
 
Old 12-22-2004, 11:33 AM   #9
cseanburns
Member
 
Registered: Nov 2003
Distribution: Fedora, Debian, Ubuntu, FreeBSD
Posts: 129

Original Poster
Rep: Reputation: 23
acid_kewpie, thank you so much for your help. i'm writing this from the linux box, which means i am connected to the internet. I went into the router via firefox http like you suggested, called the isp, got necessary info, and am connected. you are awesome. thank you.
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
Messed up my internet settings (NO internet connection) :( Almazick Linux - Networking 2 09-08-2004 12:05 PM
My internet apps cannot detect my internet connection esthon_wood Mandriva 5 08-30-2004 08:38 PM
i can get internet connection in windows but in LINUX there is no connection ruzvay Linux - Networking 2 06-08-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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