LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2006, 03:51 AM   #1
a4arpan
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Rep: Reputation: 0
Unable to browser internet on linux box


Hi

I have just installed fc4 on one machine, i was trying to configure it as a local server in my office, when i did they every thing is working fine, Samba, Httpd, sendmail, dovcort....

but i am unable to browse internet on my linux box. and that is why my yum install is also not working....

Please help, what could be the problem... i dont have a linux admin in my office.

thanks in advance
Arpan
 
Old 10-12-2006, 03:57 AM   #2
mblames
Member
 
Registered: Apr 2006
Location: Place for all OpenSource
Distribution: OpenBSD 4.1, FC5
Posts: 50

Rep: Reputation: 15
what do u want to do with ur fc4, make an internet service server or just want to surf at ur linux box ?
 
Old 10-12-2006, 04:02 AM   #3
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
What type of internet connection are you using?
If you have a cable or DSL connection, have you tried enableing or activating your network?

(In Gnome: System > Network)
 
Old 10-13-2006, 12:30 AM   #4
a4arpan
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Well thanks you both first of all that you could find to answer me...

Well in my office we have a firewall PC on which we have DSL conenction and that is our default gateway 192.168.1.1, we already have a linux machine but it is very old so we decided to make a new faster PC for linux. so i installed fc4 on a new PC, and setup smb, dovcort, httpd, etc, and everything is working and hopefully we will be shifting our work to this new PC soon. but the problem is i can not access net on this PC dont know why.... but because of that i can update my yum repository. i have to install some external php libraries but whenever i try yum install... it stops.

Please help!!!!
 
Old 10-13-2006, 11:13 AM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
please print the exact output and command with which you run yum.

Have you tried pinging the other machines in the network?
 
Old 10-13-2006, 01:54 PM   #6
silkenphoenixx
Member
 
Registered: Aug 2006
Location: Pretoria, South Africa
Distribution: Linux Mint 13 Cinnamon
Posts: 66

Rep: Reputation: 16
hmmm... the exact details would be useful. I also recommend printing the output from
ifconfig (-a for all I think? can't check right away...)
and
ping 192.168.1.1
and perhaps also a ping of whatever dns you're using. It sounds like something isn't properly configured, which could possibly also be a proxy.
 
Old 10-13-2006, 02:06 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
also post your DNS server settings and default gateway information..

route

cat /etc/resolv.conf

No default route or no working DNS server and you won't be surfing the net.. silkenphoenixx already coverd the network card settings.
 
Old 10-15-2006, 11:49 PM   #8
a4arpan
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Hi

This is the output of cat /etc/resolv.conf

Quote:
; generated by NetworkManager, do not edit!

; Use a local caching nameserver controlled by NetworkManager



nameserver 127.0.0.1
I tried to ping 192.168.1.1 and other machines too and it worked. and we are not using any proxy in out network. dont know why i can not access internet on this server.

And this is i get when i try yum
Quote:
[root@spandan tools]# yum install jabberd-2.0s11-1.fc4.i386.rpm Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: updates-released
 
Old 10-15-2006, 11:51 PM   #9
a4arpan
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Original Poster
Rep: Reputation: 0
here is ifconfig

Quote:
[root@spandan tools]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:76:6D:83:5F
inet addr:192.168.1.197 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1769 errors:0 dropped:0 overruns:0 frame:0
TX packets:3132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:195424 (190.8 KiB) TX bytes:217607 (212.5 KiB)
Interrupt:169 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1770 errors:0 dropped:0 overruns:0 frame:0
TX packets:1770 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1404030 (1.3 MiB) TX bytes:1404030 (1.3 MiB)
 
Old 10-16-2006, 04:33 AM   #10
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
You have not set up your nameserver. The entry that you see in /etc/resolv.conf is the default entry during installation.

Pinging your local network machines will work perfectly. But when you try to connect to the outside world it will show name resolution error.

--
Prasanta
 
Old 10-16-2006, 06:15 AM   #11
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
My /etc/resolv.conf is set to the router address...(and it works)
 
Old 10-16-2006, 10:04 AM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
You will definately need to edit that file /etc/resolv.conf
You do not have an IP address in there for a DNS server so your machine cannot resolve names.

To test this theory you could try browsing to a website via IP address...
Yahoo.com http://209.73.186.238
Google.com http://72.14.203.99

If those work then your Only problem is your DNS server settings.
You can try entering the IP address of your Broadband router as linmix suggested
Check what the DNS settings on your Windows machine are
Quote:
START -> RUN -> cmd -> <OK>
ipconfig /all
Or You can directly enter the IP Addressess of your ISP's DNS Servers..

nano /etc/resolv.conf
 
Old 10-16-2006, 11:23 PM   #13
a4arpan
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Original Poster
Rep: Reputation: 0
This is the output of my ipconfig /all

Quote:
C:\Documents and Settings\Administrator>ipconfig /all

Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : ArpanR
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Eth
ernet NIC
Physical Address. . . . . . . . . : 00-16-76-92-1C-80
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration IP Address. . . : 192.168.1.151
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 202.149.208.92
202.149.208.11
 
Old 10-17-2006, 07:36 AM   #14
a4arpan
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I edited my /etc/resolv.conf and now its

Quote:
[root@spandan ~]# cat /etc/resolv.conf
nameserver 202.149.208.92
nameserver 202.149.208.11

[root@spandan ~]#
 
Old 10-17-2006, 07:40 AM   #15
a4arpan
LQ Newbie
 
Registered: Oct 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I tried to browse net using IP addresses too as suggested by farslayer but my browser gave "The connecting was refussed when attempting to connect 72.14.203.99"
 
  


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
xp-box to share internet connection with linux-box CrazyHorse Linux - Networking 7 09-28-2006 11:05 PM
help with testing a website on a linux box from a standerd pc in a browser tittosimu Linux - General 1 10-24-2005 01:37 AM
Connecting Linux box to Internet through Windowx XP box over LAN pcd007 Linux - Networking 1 03-14-2004 09:02 AM
what IRC client and Browser are you using in your linux box? kublador Linux - General 23 02-25-2003 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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