On Mon, Jul 28, 2003 at 11:56:34PM +0100, Millis Miller wrote:
| From: Millis Miller <millis@...>
| To: user-mode-linux-user@...
| X-Mailer: Ximian Evolution 1.2.4=20
| Subject: [uml-user] Routing problems UML -> Host -> Exterior
| Date: 28 Jul 2003 23:56:34 +0100
| I am trying to set up a UML system, with its own local address but can
| route externally to other machines via the hosts card.
| I think I've followed the steps to set this up correctly, but packets do
| not route from addresses away from my host.
You should not need to use your host machine as a gateway. I used the
setup listed on http://uml.openconsultancy.com/ except I used a second
ethernet card for all of my UMLs and the host itself has its own
With this setup, the tun/tap devices are configured with normal IPs on
your network, and they would hit the same gateway as the host machine.
For example, I have a UML-host machine with the IP 192.168.1.5 on eth0.
eth1 is brought up in promiscuous mode with no IP address. I then create
a bridge called uml-ext0 and add eth1 to the bridge.
Then as you run UMLs on the system, create a tun/tap device for the UML
and add it to the bridge uml-ext0. Add "eth0=3D<tun/tap device name>" to
your UML kernel's parameters. Inside of the UML, you will then treat eth0
as a normal NIC and assign IPs appropriately. The gateway would then be
the same as any other machine on the same network, which looks like it
should be 10.10.10.3 in your case. In your script for starting the
kernel, you should put commands to remove the device from the bridge and
disable it after the kernel finishes executing.
Brian T Glenn
delink.net Internet Services