Can't access internet from my LAN. Any clues please ?

Andrew Lord andrewlord at internode.on.net
Tue Dec 19 10:15:01 CST 2006


Hi,

I have a computer connected to the internet via a dial-up connection 
(internode).  That computer is on an LAN, to which I also have a network 
storage unit (NSLU2) connected.  I can of course access the internet from the 
desktop, but I can't get access from the network storage unit (nor from any 
other computer I put on the LAN). I'm wondering if anyone can shine some 
light on this for me please. To assist in diagnosing the problem, I've 
provided as much information about my setup as I know how, below:

My setup is:

Desktop (ip address 192.168.0.1) ----- 5 Port Switch ----- NSLU2 (192.168.0.2)
                              |
                              |
      Internet connection via dial-up modem

OS is Mandriva 2006, kernel 2.6.12-27

For my Desktop (ip 192.168.0.1), the output of ifconfig is:

      br0       Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19299 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:819577 (800.3 KiB)

      eth0      Link encap:Ethernet  HWaddr 00:07:95:08:80:5C
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::207:95ff:fe08:805c/64 Scope:Link
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:210 errors:1 dropped:0 overruns:0 frame:1
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:71974 (70.2 KiB)  TX bytes:20382 (19.9 KiB)
          Interrupt:5 Base address:0xc800

      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:231465 errors:0 dropped:0 overruns:0 frame:0
          TX packets:231465 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:39534495 (37.7 MiB)  TX bytes:39534495 (37.7 MiB)

      ppp0      Link encap:Point-to-Point Protocol
          inet addr:150.101.64.54  P-t-P:203.34.115.129  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:75073 errors:22 dropped:0 overruns:0 frame:0
          TX packets:69142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:94913672 (90.5 MiB)  TX bytes:4235538 (4.0 MiB)

and the output of route -n is

        [root at localhost andrew]# route -n
        Kernel IP routing table
        Destination   Gateway   Genmask     Flags Metric Ref    Use Iface
        203.34.115.129  0.0.0.0   255.255.255.255 UH    0      0        0 ppp0
        192.168.0.0     0.0.0.0   255.255.255.0   U     10     0        0 eth0
        192.168.0.0     0.0.0.0    255.255.255.0   U     10     0        0 br0
        0.0.0.0       203.34.115.129  0.0.0.0     UG    0      0        0 ppp0

If I telnet into the NSLU2, I can ping the NSLU2 (192.168.0.2), the broadcast 
address (192.168.0.255) but not the desktop (192.168.0.1) nor any web site 
outside the LAN ( eg. www.google.com.au or 66.102.7.104).

        # ping 192.168.0.255
        PING 192.168.0.255 (192.168.0.255): 56 data bytes
        64 bytes from 192.168.0.2: icmp_seq=0 ttl=64 time=0.7 ms

        # ping 192.168.0.1
        PING 192.168.0.1 (192.168.0.1): 56 data bytes
        --- 192.168.0.1 ping statistics ---
        5 packets transmitted, 0 packets received, 100% packet loss

        # ping 192.168.0.2
        PING 192.168.0.2 (192.168.0.2): 56 data bytes
        64 bytes from 192.168.0.2: icmp_seq=0 ttl=64 time=429496723.6 ms
        64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.3 ms

        # ping www.google.com.au
        ping: www.google.com.au: Host name lookup failure

       # ping 66.102.7.104
       PING 66.102.7.104 (66.102.7.104): 56 data bytes
       --- 66.102.7.104 ping statistics ---
       46 packets transmitted, 0 packets received, 100% packet loss


I can of course ping the NSLU2 and any web site, from the desktop. 

If in the NSLU2 i do 'ifconfig', I get:

    # ifconfig
   ixp0      Link encap:Ethernet  HWaddr 00:04:5A:0F:DE:0B
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1132 errors:0 dropped:0 overruns:0 frame:0
          TX packets:808 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:256
          RX bytes:78660 (76.8 kiB)  TX bytes:252012 (246.1 kiB)

   lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:54 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5253 (5.1 kiB)  TX bytes:5253 (5.1 kiB)

and route -n for the NSLU2 gives me:

# route -n

      Kernel IP routing table
      Destination   Gateway    Genmask      Flags Metric Ref    Use Iface
      192.168.0.0     0.0.0.0    255.255.255.0   U     0      0        0 ixp0
      127.0.0.0       0.0.0.0     255.255.255.0   U     0      0        0 lo
      239.0.0.0       0.0.0.0     255.0.0.0       U     0      0        0 ixp0
      127.0.0.0       0.0.0.0     255.0.0.0       U     0      0        0 lo
      0.0.0.0      192.168.0.1   0.0.0.0         UG    1      0        0 ixp0

I've very little networking experience and would be most grateful for any 
useful suggestions about how to fix this issue ?

Cheers,

Andrew


More information about the linuxsa mailing list