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
    193.173.210.192 * 255.255.255.192 U 0 0 0 eth0
    default * 0.0.0.0 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
    193.173.210.192.

    FWIW here is /etc/network/interfaces:

    iface lo inet loopback
    auto lo eth0
    iface eth0 inet static
    address 193.173.210.205
    netmask 255.255.255.192
    broadcast 193.173.210.255
    network 193.173.210.0

    up route add default eth0
    down route del default eth0



    How might I fix this?

    Thanks

    Eric Smith
     
    Eric Smith, Sep 9, 2003
    #1
    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 193.173.210.192 (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
    #2
    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.