You are not logged in.

#1 2008-12-23 20:26:02

DJMaxx
Member
Registered: 2008-12-23
Posts: 6

Can ping but can't view web pages

I am trying to get wireless working on arch linux.  When I connect with ethernet everything works perfectly.  But when I connect over wifi I can successfully ping other hosts, but firefox says I'm offline,  Does anyone know why that might be?

If it matters, I'm using xfce.

Offline

#2 2008-12-23 20:37:23

jryarch
Member
Registered: 2008-06-09
Posts: 45

Re: Can ping but can't view web pages

Hi, are you able to ping ip's only, or does google.com also work?

If it's not a DNS problem, post more info first, ifconfig iwconfig /etc/resolv.conf

Offline

#3 2008-12-24 06:15:34

Jaejae
Member
Registered: 2008-05-17
Posts: 80

Re: Can ping but can't view web pages

What do your domains resolve to?
Try using wget, if they resolve to 1.0.0.0, you have a DNS problem.
What router do you have?
Modem?

Offline

#4 2008-12-26 17:36:45

DJMaxx
Member
Registered: 2008-12-23
Posts: 6

Re: Can ping but can't view web pages

Yes, I can ping IPs as well as sites like www.google.com

This is the output of wget www.google.com

bash-3.2# wget www.google.com
--2008-12-26 11:25:21--  http://www.google.com/
Resolving www.google.com... 74.125.45.99, 74.125.45.103, 74.125.45.104, ...
Connecting to www.google.com|74.125.45.99|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.1'

    [ <=>                                   ] 5,838       --.-K/s   in 0.03s   

2008-12-26 11:25:21 (225 KB/s) - `index.html.1' saved [5838]

I'm assuming this means it is not a DNS error?  This is the output of ifconfig iwconfig /etc/resolv.conf

bash-3.2# ifconfig iwconfig /etc/resolv.conf
Usage:
  ifconfig [-a] [-i] [-v] [-s] <interface> [[<AF>] <address>]
  [add <address>[/<prefixlen>]]
  [del <address>[/<prefixlen>]]
  [[-]broadcast [<address>]]  [[-]pointopoint [<address>]]
  [netmask <address>]  [dstaddr <address>]  [tunnel <address>]
  [outfill <NN>] [keepalive <NN>]
  [hw <HW> <address>]  [metric <NN>]  [mtu <NN>]
  [[-]trailers]  [[-]arp]  [[-]allmulti]
  [multicast]  [[-]promisc]
  [mem_start <NN>]  [io_addr <NN>]  [irq <NN>]  [media <type>]
  [txqueuelen <NN>]
  [[-]dynamic]
  [up|down] ...

  <HW>=Hardware Type.
  List of possible hardware types:
    loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
    slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP)
    strip (Metricom Starmode IP) ether (Ethernet) tr (16/4 Mbps Token Ring)
    tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25) netrom (AMPR NET/ROM)
    tunnel (IPIP Tunnel) ppp (Point-to-Point Protocol) arcnet (ARCnet)
    dlci (Frame Relay DLCI) frad (Frame Relay Access Device) irda (IrLAP)
    x25 (generic X.25)
  <AF>=Address family. Default: inet
  List of possible address families:
    unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
    ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX)
    ddp (Appletalk DDP) x25 (CCITT X.25)

I'm using a Motorola SB5100 Surfboard Cable Modem, a Netgear WGR614 v7 wireless router, and a Broadcom 4311 wireless card.

Offline

#5 2008-12-26 17:57:02

string
Member
Registered: 2008-11-03
Posts: 286

Re: Can ping but can't view web pages

In firefox: File->Work offline (uncheck it)

Offline

#6 2008-12-27 15:17:33

jryarch
Member
Registered: 2008-06-09
Posts: 45

Re: Can ping but can't view web pages

ifconfig and iwconfig are seperate commands, since it doesn't seem to be a DNS problem you can forget about /etc/resolv.conf. Also, how are you connecting to wireless?

Offline

#7 2008-12-27 17:17:28

kjon
Member
From: Temuco, Chile
Registered: 2008-04-16
Posts: 398

Re: Can ping but can't view web pages

ping but no major network traffic? looks like a scaling issue. Try adding net.ipv4.tcp_window_scaling=0 to your /etc/sysctl.conf and force sysctl to re-read its configuration (sysctl -p).


They say that if you play a Win cd backward you hear satanic messages. That's nothing! 'cause if you play it forwards, it installs windows.

Offline

#8 2008-12-28 19:01:40

DJMaxx
Member
Registered: 2008-12-23
Posts: 6

Re: Can ping but can't view web pages

Editing /etc/sysctl.conf didn't work- I guess it's not a scaling problem.

jryarch, I don't exactly know what you mean by "how are you connecting to wireless," so I'll answer you by saying that I'm using iwconfig wlan0 essid "insert unsecured router name" and then dhcpcd wlan0

still no work

Offline

#9 2008-12-28 19:07:10

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: Can ping but can't view web pages

Did you try string's suggestion?

string wrote:

In firefox: File->Work offline (uncheck it)

It could be as simple as that. I would also try another web browser to make sure it's a Firefox issue.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#10 2008-12-28 19:12:00

DJMaxx
Member
Registered: 2008-12-23
Posts: 6

Re: Can ping but can't view web pages

Is it possible that this is a gran paradiso issue?

Offline

#11 2008-12-28 19:24:31

string
Member
Registered: 2008-11-03
Posts: 286

Re: Can ping but can't view web pages

Well .. he can "wget http://www.google.com" and this pretty much proves that: 1. DNS works; 2. he can connect, send, receive data to/from remote (internet) servers listening on port 80. + looking in the original post: "firefox says I'm offline".

DjMaxx: is it *actually* saying: Firefox is currently in offline mode and can't browse the Web. ?

Last edited by string (2008-12-28 19:25:20)

Offline

#12 2008-12-28 21:16:01

DJMaxx
Member
Registered: 2008-12-23
Posts: 6

Re: Can ping but can't view web pages

Yes it is, and now it works.  Problem solved.  What's sad is:  I looked for a setting on firefox and couldnt find it- obviously because I was lazy, tired, or just too dumb.  Thanks everyone, and sorry to put you through this.

Offline

Board footer

Powered by FluxBB