Announcement

Collapse
No announcement yet.

Kubuntu can access LAN, but cannot access outside network

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kubuntu can access LAN, but cannot access outside network

    I have a strange problem -- I have set up an installation of Kubuntu 8.10 with a manual ip address:

    # cat /etc/network/interfaces
    auto lo
    iface lo inet loopback
    iface eth0 inet static
    address 192.168.0.100
    netmask 255.255.255.0
    gateway 192.168.0.1
    broadcast 192.168.0.255

    and I can ssh into the computer from the LAN (That's how it is primarily used). However, once I'm in, things start getting weird:

    Pinging other computers on the LAN works ok:
    user@user-laptop:~$ ping 192.168.0.103
    PING 192.168.0.103 (192.168.0.103) 56(84) bytes of data.
    64 bytes from 192.168.0.103: icmp_seq=1 ttl=64 time=1.37 ms
    64 bytes from 192.168.0.103: icmp_seq=2 ttl=64 time=1.26 ms
    --- 192.168.0.103 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1004ms
    rtt min/avg/max/mdev = 1.265/1.318/1.371/0.053 ms
    user@user-laptop:~$ ping 192.168.0.102
    PING 192.168.0.102 (192.168.0.102) 56(84) bytes of data.
    64 bytes from 192.168.0.102: icmp_seq=1 ttl=64 time=0.176 ms
    64 bytes from 192.168.0.102: icmp_seq=2 ttl=64 time=0.332 ms
    --- 192.168.0.102 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.176/0.254/0.332/0.078 ms

    Pinging the router fails?
    user@user-laptop:~$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    ^C
    --- 192.168.0.1 ping statistics ---
    4 packets transmitted, 0 received, 100% packet loss, time 2999ms

    Ping can't even resolve google:
    user@user-laptop:~$ ping www.google.com # External network
    ^C

    I can't figure out why I can see the other computers connected to the router, but not the router itself or the external network. It's not just ping, btw -- I noticed the problem trying to commit to my svn server as well. It was working fine from when I installed it about 2 weeks ago until yesterday. Nothing changed yesterday, it was just sitting, happily crunching numbers for my research all day.

    Any ideas?

    Dave

    Any ideas

    #2
    Re: Kubuntu can access LAN, but cannot access outside network

    It's a DNS issue. When you connect to your router with DHCP, the DNS entries in the router are automatically detected and saved on your computer in a file named /etc/resolv.conf.

    When you connect with a fixed IP address this does not happen. See my post here about setting up you system to use a fixed IP and how to set up your resolv.conf file.

    http://kubuntuforums.net/forums/inde...opic=3100052.0

    Comment


      #3
      Re: Kubuntu can access LAN, but cannot access outside network

      Cool -- there was a mismatch between the router's DNS servers and those in resolv.conf. All's working now. Thanks!

      Comment

      Working...
      X