Re: Newbie - access internet via LAN and router



In article <434cba7b$1$17839$cc9e4d1f@xxxxxxxxxxxxxxxxxxx>,
davout <davoutXXXYYYWWWZZZ@xxxxxxxxxxxxx> wrote:
>I've just installed Suse 10 on an old PC, and am having problems getting
>FireFox to work.
>
>I have a home LAN with a router configured to address 192.168.1.1. Three
>Windows XP PC's on this LAN use DHCP to get their IP address, whilst the
>Linux PC is set to the fixed IP address of 192.168.1.55. I can
>successfully ping the router from the Linux PC.
>
>However, when I open Firefox it fails to access the internet. I've tried all
>the options from the 'Edit/Preferences/Connection settings' dialog and none
>of them seem to work.
>
>Any ideas?
>
>(I'm a Linux newbie so please phrase all answers in words of one syllable!)

Do you have a default route setup? What does
netstat -rn
show?

If theres no default route, try this:

route add default gw 192.168.1.1

then try to ping something. It's always best to ping before trying a
web page to see if you have basic connectivity. And if possible, try it
by numbers if you know some IP addresses (although these can change)

Eg. at present, www.linx.net is 195.66.232.45

If you can ping that by number but not name, then you have a DNS problem.
Try putting

nameserver 192.168.1.1

into /etc/resolv.conf.

DHCP usually does all this for you which is why it's so popular! If you've no
real reason to not use it, then just turn it on on the Linux box.

But if you are going to stick with a static IP address, make sure it's not
in the range allocated by the router! Some routes just DHCP the
whole subnet (eg. from .2 to .254) and if it were to allocate .55 to a
different PC then you'll have all sorts of fun and games..

Gordon
.



Relevant Pages

  • Re: Debian Install help
    ... I CAN ping other machines on my local lan. ... The output of 'route' looks ... also redhad 7.0 through the same router and dsl modem and same network ...
    (Debian-User)
  • Re: Why Linux is blind to this ARP reply ?
    ... Make sure it's not a firewall issue with Linux. ... > I placed ethereal in windows and tcpdump in linux. ... > Ethereal sees the ARP reply when the router is ping from ... What are you trying to ping? ...
    (comp.os.linux.misc)
  • Re: Cant ping windows network card, but can ping the linux card..
    ... can the linux box ping to the outside world and can the Win32 box ... IP address of the router and can that be pinged ... ensure the NIC is working (/sbin/ifconfig eth0 ...
    (Fedora)
  • Re: Help w/iptables & masquerade, I looked everywhere
    ... > linux box to actually route traffic. ... Problem is I can't actually access or ping the ... Do I need to do a route command? ... IP connectivity before futzing with the RH9/XP firewalls. ...
    (comp.os.linux.networking)
  • Re: traceroute & ping
    ... If you ping support -R [Record Route] you can see what interfaces ... the packets are returning on. ... But I'd be concernced about your router at this point since ...
    (comp.unix.sco.misc)