Results 1 to 3 of 3

Thread: Gateway Problem

  1. #1
    Join Date
    Dec 2008
    Beans
    18

    Gateway Problem

    System Configuration:
    Two Dual boot computers Windows XP and Ubuntu 9.04

    Symptoms:
    Ubuntu gets valid IP from DHCP.
    Ubuntu can browse local computers and network drives.
    Ubuntu can not browse the web.
    Ubuntu can only ping computers in local network.
    Ubuntu Default gateway 10.0.0.2
    Windows has no issues.
    Windows gets valid IP from DHCP
    Windows can browse local computers and network drives.
    Windows can browse the web.
    Windows Default gateway 10.0.0.2


    Solution:
    Windows would time out when tracert www.google.com (start run cmd then type tracert www.google.com ) Then Windows would go out through 10.0.0.1.
    Ubuntu never went out 10.0.0.1 and just waited for ever to time out.
    In terminal run
    Code:
    route
    It will print out a table like this one:
    Code:
    Kernel IP routing table 
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 
    10.0.0.0        *               255.255.255.0   U     1      0        0 eth0 
    link-local      *               255.255.0.0     U     1000   0        0 eth0 
    default         10.0.0.2        0.0.0.0         UG    0      0        0 eth0
    Then run
    Code:
    sudo route del default gw 10.0.0.2
    sudo route add default gw 10.0.0.1
    This solved the problem. Ubuntu needed the correct default route.

  2. #2
    Join Date
    Jun 2009
    Location
    Dublin, IRL
    Beans
    130
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Gateway Problem

    Quote Originally Posted by mikehenson View Post
    System Configuration:

    Symptoms:
    Ubuntu gets valid IP from DHCP.
    Ubuntu can browse local computers and network drives.
    Ubuntu can not browse the web.
    Ubuntu can only ping computers in local network.
    Ubuntu Default gateway 10.0.0.2
    Windows has no issues.
    Windows gets valid IP from DHCP
    Windows can browse local computers and network drives.
    Windows can browse the web.
    Windows Default gateway 10.0.0.2

    Then run
    Code:
    sudo route del default gw 10.0.0.2
    sudo route add default gw 10.0.0.1
    This solved the problem. Ubuntu needed the correct default route.
    So now Ubuntu has default Gate 10.0.0.1 as a result of the "route add" command and Windows still has 10.0.0.2 as listed above, am I understanding right?
    Default gate is always the i.p. address of the device you are using for the internet connection.(In this case your router) If you don't enter the default gate address you can only see other computers that are in the same subnet mask as you on the LAN. You will have no router to route you threw to other networks. i.e. The WAN!
    Code:
    /etc/resolv.conf
    Another handy file..

  3. #3
    Join Date
    Dec 2008
    Beans
    18

    Re: Gateway Problem

    Quote Originally Posted by VipX1 View Post
    So now Ubuntu has default Gate 10.0.0.1 as a result of the "route add" command and Windows still has 10.0.0.2 as listed above, am I understanding right?
    Yes, until I changed the default gateway in Windows. I don't know why but Windows would find the way out after timing out on 10.0.0.2. The timing out caused Firefox to pause for a second before loading a web page.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •