[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

routing routable IPs over non-routable IPs



I know this isn't Debian specific.  But I'm just wondering if it's fine
to route routable IP addresses over non-routable IP addresess.

For example:
(in this example assume that 10.0.0.0/8 is a routable range).

+----------------------------+
| 10.1.1.4 (internet)        |
|                            |
| gateway                    |
|                            |
| 172.16.5.1                 |
+----------------------------+
    |
    |
    |
+----------------------------+
| 172.16.5.2                 |
|                            |
| DSLAM/NAS                  |
|                            |
| 10.1.2.0/24 routed to a    |
| client                     |
+----------------------------+

So is it just a matter of setting up something like
/sbin/route -net 10.1.2.0/24 gw 172.16.5.2
on the gateway?

I would assume this would work but I've never tested it.  I didn't use a
real routable subnet in this example because we haven't been allocated
any yet and I wopuldn't use someone else's IPs in an example :)

-- 
Jeremy Lunn
Melbourne, Australia



Reply to: