[Linux-vrf-general] Rout looping through local host.
Status: Beta
Brought to you by:
jleu
|
From: Grant T. <gt...@ri...> - 2007-08-30 06:40:25
|
I believe the following is possible to do using Linux-VRF, but I'd like
some confirmation if at all possible. I think that I can make what I'm
wanting to do work if I make each "Context" be a different VRF. Am I
any where close?
With out going in to too much detail, I am effectively wanting to do the
following.
I want to be able to take traffic in from a local LAN on eth0 and route
it out eth1 to a default gateway with a static IP. I want said default
gateway with the static IP to be assigned to eth2. I then want to route
and masquerade traffic that came in eth2 out eth3.
(Enter ASCII art)
--------------+
Context 0 |
+------+ +-----------+
+---+ eth0 |------+ Local LAN |
| +------+ +-----------+
| |
| +------+
+---+ eth1 +---+
+------+ |
| |
==============|===|===
Context 1 | |
+------+ |
+---+ eth2 +---+
| +------+
| |
| +------+ +----------+
+---+ eth3 +------+ Internet |
+------+ +----------+
|
--------------+
Note: eth1 and eth2 are not real ethernet interfaces. They are
effectively tunnel like and are NOARP interfaces.
I want the ""router in context 0 to effectively (for the sake of
discussion) do basic static NAT routing for the local LAN. This router
will have two static IP addresses, LAN facing and upstream router facing.
I want the ""router in context 1 to effectively (for the sake of
discussion) do basic MASQUERADing for the equipment behind it. This
router will have one static IP facing the LAN and one dynamic IP facing
its upstream provider.
Grant. . . .
|