> I'd like to  run the uml machine on the second external ip, with eth0
> inside the uml has one of  the available external ips.

I solved that with NAT in iptables on the host machine:

hydra:~# iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       all  --  0.0.0.0/0            195.230.xxx.yyy    to:10.0.0.10

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  10.0.0.10            0.0.0.0/0          to:195.230.xxx.yyy

where 10.0.0.10 is the IP inside the uml machine (tap0 has 10.0.0.1)
and 195.230.xxx.yyy is the second external IP. The disadvantage is,
that inside the uml machine you see a different IP than outside.  It
also works for several uml machines on the host (even talking with
each other) where everyone has its own external IP. You also can
access the host with its IP without any interferences from the umls...


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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