setup a static route

Discussion in 'Linux & BSD' started by Steevo, Nov 15, 2004.

  1. Steevo

    Steevo Spammer representing. Political User Folding Team


    I have a AS/400 on our network at the main store. IP address Subnet
    My computer has 2 ethernet cards and a modem.
    ISP IP subnet gateway
    LAN side subnet gateway
    Modem subnet gateway
    Remote server Lan side subnet gateway
    Remote server Modem subnet

    From my computer I can ping teh AS/400 .199 and a tracert reveals that the remote server is acting invisable so it appears
    bla bla bla
    bla bla bla

    I want to be sure I am doing this right, I have RIP enabled on my XP machine, and Remote routing. Debian can ping the modem locally, but not any remote PC's or teh AS/400.

    So I setup a route on my XP machine (route add mask so that any quierys would be directed through the modem.

    I cannot setup or do mot understand how to setup a static route in Debain. I have read help more tiems than I care to think about.

    route add

    but it returns

    inet_route add|del|show {-host|-net} Target bla bla bla

    so I tried

    inet_route add -host -net

    still no joy...

    I have already whacked teh keyboard on teh tower. Any thoughts?
  2. X-Istence

    X-Istence * Political User

    man inet_route

    But route should work just fine.
  3. Geffy

    Geffy Moderator Folding Team

    United Kingdom
    are you trying to setup the default route? so that all unknown destination traffic go through the modem?

    would be something like this then I would think
    route add default <ip of modem>