-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Robert P. J. Day wrote:
| On Wed, 5 Mar 2008, Antoine Martin wrote:
|
|> Well, the problem is that if you don't want to use dhcp, you either have
|> to edit some config files on the guest or you have to login and bring
|> the network up by hand...
|> IMO, that's more complicated (and less flexible) than just starting a
|> dhcp server instance.
|>
|> Antoine
|
|   i know what you're talking about here -- at least, let me make sure
| i do.
|
|   at the moment, my host system is 192.168.1.2 on the local home
| network (router/gateway at 192.168.1.1).  if i was setting up UML
| networking *properly*, i'd allocate a new network exclusively for all
| of my UML guests -- say 10.0.0.0.  and i'd set up a DHCP server on my
| host that would hand out 10.x.x.x addresses to my UML sessions.  i'd
| also have to have the host doing NAT to allow those UML sessions
| access to the internet, etc, etc.  i believe that's what you're
| describing at the bottom of the page here, yes?
|
|   http://uml.nagafix.co.uk/
|
|   however, if i have just the one UML session and i just want some
| quick networking, i can do something much faster and uglier, and steal
| IP addresses from my current physical network so that i'll have the
| following tuntap connection between my host and guest:
|
|     host   <---------->  UML
|
| 192.168.1.254       192.168.1.253
|
| then, in the UML session, i can make 192.168.1.254 my default gateway,
| and i can set up my host to forward IP packets.  (all of that requires
| manually configuring the UML session, including hard-coding the DNS
| server, which would be 192.168.1.1, my router.)
|
|   the above hack does work, but it's admittedly, you know, hacky.  and
| it certainly doesn't scale well if i want to start supporting multiple
| guest UML sessions.
|
|   so, just to make sure i understand, yes, DHCP would clearly be a
| cleaner approach, but it *would* involve allocating a new network to
| my UML sessions
No it does not.
You can bind the dhcp server to a specific network interface and make it
serve any IP address you like.

Using dhcp, you can do all this *without* logging into the guest via the
console - no interaction needed. So you can even have the guest start
ssh and connect via the network.

Cheers
Antoine



| -- i wouldn't want to have my local network with an
| address of 192.168.1.0 and also be giving out DHCP addresses of the
| same form to my UML sessions, would i?  (it's possible to do that, of
| course, but it would be ugly.)
|
|   do i understand this even remotely?
|
| rday
|
| p.s.  this *appears* to be what you're doing in your setup at the
| bottom of that web page again.  i note that, when you start a UML
| session, you assign the host eth0 an address of 192.168.1.254, which
| suggests your local (physical) network is 192.168.1.0 (which is pretty
| standard).
|
| but your DHCP server is handing out addresses of the form 192.168.0.x,
| so that seems to agree with what i wrote above -- you've assigned an
| entirely separate class C net for your UML sessions; hence the need
| for NAT and MASQUERADE and so on on the host side.
| --
|
| ========================================================================
| Robert P. J. Day
| Linux Consulting, Training and Annoying Kernel Pedantry:
|     Have classroom, will lecture.
|
| http://crashcourse.ca                          Waterloo, Ontario, CANADA
| ========================================================================
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH0HmLGK2zHPGK1rsRCp4lAJ95ql0JgLrL6DQ200RobNrl6RJstwCfR4el
xl4nL0mf78jW3+EGutIKqo0=
=w5r6
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to