I have thought about doing this but giving each guest a /30 seams to my like
a waist of ip space. I could use private addresses like in your example but
my customers will want to see a public ip on there end and not a private ip.
Thanks though.
~Shaun
"Lars Kellogg-Stedman" <lars@...> wrote in message
news:lars-22D9CC.08474122102004@......
> > Basically what I'm looking to do (if possible) is to make each uml look
as
> > if they are on there own vlan/subnet. Thanks, back to reading the
ebtables
> > manual.
>
> Why not go for the simplest solution and just put each guest on its own
> subnet? Create a tap interface for each guest, and make it a /30
> network:
>
> tunctl guest0
> ifconfig guest0 192.168.2.1 netmask 255.255.255.252 up
>
> The guest attached to this interface becomes 192.168.2.2, with a default
> route of 192.168.2.1.
>
> Your next tap interface would be 192.168.2.5, and the associated guest
> would be 192.168.2.6.
>
> A /30 subnet allows for 4 IP addresses:
>
> (1) The "network" address (host part all zeroes)
> (2) Two IP addresses, which we're using for the host tap interface and
> the guest, and
> (3) The broadcast address (host part all ones)
>
> There's an IP calculator here that can help with this sort of thing:
>
> http://jodies.de/ipcalc
>
> -- Lars
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
|