From: Grant Taylor <gtaylor@riverviewtech.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Mulitple VLANs containing the same ip subnet NATed on
Date: Sat, 08 Jul 2006 21:39:58 +0000 [thread overview]
Message-ID: <44B0262E.3010307@riverviewtech.net> (raw)
In-Reply-To: <78f747be0607081414i5ad45c8cqe07c309bd080d0@mail.gmail.com>
Geoff Karl wrote:
> I know this is not a normal request, but I would like to connect two
> vlans into the same box that have the same subnet on them, and then
> NAT them out to the Internet.
>
> We don't need to make any connections inbound to them, but only
> provide outbound access.
>
> Any suggestions on how to do this?
Bridge the two VLAN interfaces together and assign your internal IP to the bridge interface. Then you will do standard NATing between your external interface and your bridge interface. By the way, inbound access will be just as easy as outbound.
> If I can't do it with routing then I could use something like
> user-mode Linux, or other virtualization software.
I don't think you need any thing as complicated as UML.
You could even do this with 1 network interface with everything being VLANs.
I.e.
eth0.0001 VLAN for workstations
eth0.0002 VLAN for workstations
eth0.0003 VLAN for internet access
eth0.0001 and eth0.0002 are bridge together yielding bri0
bri0 internal interface
eth0.0003 external interface
NAT between bri0 and eth0.0003.
If you ever added a second internet service provider, put them on eth0.0004 and update your routing.
Grant. . . .
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2006-07-08 21:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-08 21:14 [LARTC] Mulitple VLANs containing the same ip subnet NATed on same Geoff Karl
2006-07-08 21:39 ` [LARTC] Mulitple VLANs containing the same ip subnet NATed on Geoff Karl
2006-07-08 21:39 ` Grant Taylor [this message]
2006-07-08 21:49 ` Grant Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B0262E.3010307@riverviewtech.net \
--to=gtaylor@riverviewtech.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.