route issue? machine is accessible but cannot access outside local network

Discussion in 'Linux Networking' started by Eric Smith, Sep 9, 2003.

  1. Eric Smith

    Eric Smith Guest

    I have a route as follows:

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0
    default * U 0 0 0 eth0

    This is identical to a live functionaing server on another network.

    The above machine can be accessed on a number of ports but it is unable
    to ping or telnet to any address other than the router on

    FWIW here is /etc/network/interfaces:

    iface lo inet loopback
    auto lo eth0
    iface eth0 inet static

    up route add default eth0
    down route del default eth0

    How might I fix this?


    Eric Smith
    Eric Smith, Sep 9, 2003
    1. Advertisements

  2. You have no route to anything but your local network. Your default route
    has a bogus gw (loops back to yourself).
    That "network" should be (based on ip/netmask). Although,
    your routing (1st route) shows the correct network.
    Add a real default route with a gw that points to the remote IP of your
    gateway. If that gw IP is not within your network, you would first need a
    -host route to it.
    David Efflandt, Sep 9, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.