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

RE: [Xen-devel] [PATCH] example and default IP addresses

Dan Magenheimer writes ("RE: [Xen-devel] [PATCH] example and default IP 
> In the patch to network-nat, I see that you are replacing the
> usage with  Actually, vif-nat has a dependency on it
> being!), at least if more than 256 domains are launched (not
> necessarily simultaneously, just sequentially created and destroyed).
> In vif-nat ip_from_dom, IP's are created as 10.x.y.z for vifw.z, where
> x*256+y==w.

Firstly, I think it's important to note that network-nat and vif-nat
are pretty ropey.  Anyone who is using them will almost certainly have
had to adjust them to local conditions anyway.  For example, these
scripts attempt to find and edit your local dhcp server configuration
file !

> I'm not sure what the right answer is, but definitely
> doesn't have enough bits.  And regardless of the answer, vif-nat will
> need to be patched also.

Having said that, I think you're right.  vif-nat does indeed have to
use 10/8 for static hosts for the reason you give.  Although really I
think this is a poor approach.  So my change to network-nat ought not
to be applied.

In practice many people using this code in any real setting are likely
to fall foul of address clashes anyway as it's very likely that they
have at least some use of 10/8 ...


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.