When you set up a static route, you are really telling the Linux box where the
next hop is must send packets to reach its destination.  This next hop is a
router (or such) that must exist on your network.

In your scenario, your Linux box must send the packets to the 108.62.62.137
address.  Once the packets get there, the router must also know a route to
forward the data.  The router can also have a static route or use a dynamic
routing protocol like OSPF.

Simply use the 108.62.62.137 as your gateway.

Best of luck.

Brian Lalor wrote:

> I'm trying to add a static route to a remote network, but I keep getting
> "network is unreachable".  The topography looks like this:
>
>      +--------+   +--------+   +--------+   +-------+   +-----------+
>      | linux  |   | router |   | router |   | host  |   | other net |
>      | 108.10 |---|108.62  |---|62.254  |---|42.26  |---|x.x.2.2    |
>      |        |   |  62.137|   |  42.254|   |x.x.2.1|   |    x.x.2.0|
>      +--------+   +--------+   +--------+   +-------+   +-----------+
>
> Basically, I want to add a route on the Linux box pointing to "host" for
> any packets intended for the x.x.2.0 net.  If I do a 'route add -net
> x.x.2.0 gw 158.187.42.26 metric #' with any metric value for '#', I get
> "SIOCADDRT: Network is unreachable"
>
> The "x.x.2.0" net is not officially assigned within our enterprise and its
> not really feasible to make it so.
>
> Is there a way to do this routing?
>
> Thanks,
> Brian
> _____________________________________________________________________________
> B r i a n  L a l o r                         [EMAIL PROTECTED]
> http://hcirisc.cs.binghamton.edu/~blalor     Spam me not.
>    To get my pgp key, put "get pgp key" in the subject of your message
>
> Woody:  What's your pleasure, Mr. Peterson?
> Norm:   Boxer shorts and loose shoes.  But I'll settle for a beer.
>                 -- Cheers, The Bar Stoolie
>
> --
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
>          To unsubscribe: mail [EMAIL PROTECTED] with
>                        "unsubscribe" as the Subject.



--

| Bryan Swann ([EMAIL PROTECTED])  803/566-0086   803/554-0015 (Fax)
| Eagan McAllister Associates, Inc.
|
| "Everything must be working perfectly, cause I don't smell any smoke"



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to