Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet Troubled
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Sep 06, 2004 9:45 pm    Post subject: Internet Troubled Reply with quote

Hi All

I finally got my installtion working after few attempts but now it seems I am on the internet but I can't access pages or do something else. I can ping any site/page with no loss and i can get to www.google.com and do searches on google but cannot go anywhere apart from that

help me please!!
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Mon Sep 06, 2004 9:52 pm    Post subject: Reply with quote

that sounds like the DNS is not set correctly, but what worries me is that you are able to get to google 8O
or did you setup google in your /etc/hosts?

anyway, what message do you get in your browser if you enter any url apart from google?
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Sep 06, 2004 11:14 pm    Post subject: Reply with quote

I get no error messages, but in status bar it says page connected and it seems the browser is trying to download but nothing happens after that and I haven't set google in my /etc/hosts

Last edited by rojanu on Mon Sep 06, 2004 11:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Mon Sep 06, 2004 11:17 pm    Post subject: Reply with quote

So you can ping www.google.com? I'd imagine you had Google cached so it displays in your browser. Do you have a proxy server that you need to tell the browser about maybe?
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Sep 06, 2004 11:39 pm    Post subject: Reply with quote

here is my /etc/hosts
Quote:

127.0.0.1 localhost
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


I haven't got any proxies and google is not in the cache because I can do searches.

Even I can't get into my router using its IP...
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Sep 07, 2004 8:33 am    Post subject: Reply with quote

aliustek wrote:
here is my /etc/hosts
I haven't got any proxies and google is not in the cache because I can do searches.
Even I can't get into my router using its IP...

sorry for makeing a joke, but are you working at google and it is in your LAN?? :lol: :lol: :lol:

seriously.. if you cant get on your router, how do you connect to google 8O
anyway, fix the problem with your router first. can you ping the router? is it listed in /etc/resolv.conf?
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Tue Sep 07, 2004 9:30 am    Post subject: Reply with quote

Sorry by saying I can't get to my router I meant I can't open routers configuration page in a browser by entering its IP address e.g. my routers local IP is 192.168.1.1!!! on the other hand I can ping any working IP problem is I can't browse other than google and I do not know what is so special && different about Google

thank you


Last edited by rojanu on Tue Sep 07, 2004 9:46 am; edited 1 time in total
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Sep 07, 2004 9:36 am    Post subject: Reply with quote

well, lets see:
is this a home lan? is this your router?

go to konqueror settings -> proxy server. do you have "direct connection" or anything else enabled?

have you setup a firewall on gentoo? does your router have a firewall and denying several ports, for example port80 for outgoing?

is another machine connected to the router (probably this one you are posting with)?
Back to top
View user's profile Send private message
SuperSheep
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2004
Posts: 133
Location: South London, England

PostPosted: Tue Sep 07, 2004 9:48 am    Post subject: Reply with quote

Might be that you're not in the same subnet as the router, and the mask is stopping you from seeing it - i.e. make sure your IP looks of the form 192.168.1.x. Use ifconfig to see your IP, under the eth0 entry.

To set a new IP address, use (where x = your chosen number)
Code:
ifconfig eth0 192.168.1.x netmask 255.255.255.0 broadcast 192.168.1.255 up


If you're changing this for good, you'll probably need to edit /etc/net.eth0, or wherever that file actually is.

Seems very weird you can ping anything but pages don't come up.
_________________
http://www.bash.org/?65749
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Sep 07, 2004 10:09 am    Post subject: Reply with quote

SuperSheep wrote:
Might be that you're not in the same subnet as the router

he wouldnt be able to ping anything then, except his own localhost.
Back to top
View user's profile Send private message
SuperSheep
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2004
Posts: 133
Location: South London, England

PostPosted: Tue Sep 07, 2004 10:24 am    Post subject: Reply with quote

Actually, you're right.

Note to self: read post carefully before replying.
_________________
http://www.bash.org/?65749
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Sep 07, 2004 10:30 am    Post subject: Reply with quote

SuperSheep wrote:
Actually, you're right.
Note to self: read post carefully before replying.

though, i agree his problem is strange :lol:
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Tue Sep 07, 2004 12:41 pm    Post subject: Reply with quote

I haven't set any firewalls in gentoo, however my router has firewall but I can surf internet in XP on the same machine (dual-boot).

Quote:

go to konqueror settings -> proxy server. do you have "direct connection" or anything else enabled?


I have got "direct connection"

Heeeeeeeeeeelp!!
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Sep 07, 2004 2:12 pm    Post subject: Reply with quote

aliustek wrote:
I haven't set any firewalls in gentoo, however my router has firewall but I can surf internet in XP on the same machine (dual-boot).

do you have the same IP in XP as you have in gentoo? and where is the content of your resolv.conf i asked for?

also, what gives "route -v"?
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Tue Sep 07, 2004 5:24 pm    Post subject: Reply with quote

I have the same IP in both OS's which is assigned by the router;
192.168.1.3

Here is resolv.conf
Quote:

nameserver 192.168.1.1


output from "route -v"
Quote:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback 127.0.0.1 255.0.0.0 UG 0 0 0 lo
default localhost 0.0.0.0 UG 0 0 0 eth0
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Sep 07, 2004 5:32 pm    Post subject: Reply with quote

aliustek wrote:

default localhost 0.0.0.0 UG 0 0 0 eth0

the default gateway should be your router, not the localhost.

su to root and type
route add default gw 192.168.1.1
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Tue Sep 07, 2004 9:53 pm    Post subject: Reply with quote

hds wrote:

the default gateway should be your router, not the localhost.

su to root and type
route add default gw 192.168.1.1


Ok but when I do that I get
Quote:
SIOCADDRT: File exists

and nothing happens
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Tue Sep 07, 2004 9:59 pm    Post subject: Reply with quote

well doode, what about a "man route" inbetween?

delete your current default gateway first.
"route del default gw localhost" or something like that it is.
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Thu Sep 09, 2004 6:51 am    Post subject: Reply with quote

sorry for being such hassle I have used the man but could not change it I can remove the localhost but cannot add my gateway the localhost comes back again and again.

Anyway, I reinstalled everyting, thought that might help. Until I emerged kde I can use the net e.g. emerge ebuilds but after kde is emerged with about 80 dependencies then the same story again, one of those packages must be causing a conflict how can I find out that package

Quote:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum