")
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

The challenge has been sorted.

I've got a config that works really well (again, I'm not sure whether
to put this on the UML wiki or not... should I?)


I use debian so I've got this in my interfaces file:

  auto umltap

  iface umltap inet static
        pre-up tunctl -t $IFACE
        address 192.168.1.1
        netmask 255.255.255.0
        up echo "1" > /proc/sys/net/ipv4/ip_forward
        up /etc/init.d/udhcpd start
        down /etc/init.d/udhcpd stop
        down tunctl -d $IFACE

Some things to note:

- the interface comes up on laptop boot
- it auto creates the tuntap device
- it turns on forwarding (so the UMLs can see the host)
- it starts and stops udhcpd appropriately

udhcpd is a good choice for a laptop because it's very light and
simple.

My udhcpd config allows for a small range of dhcp handled addresses
and sets the router as 192.168.1.1 and the DNS as the host's (the
laptop's) local DNS server (the laptop runs dnsmasq as a caching DNS
server).

I then start my UML like this:

    umlkernel ubd0=... con0=... eth0=tuntap,umltap 

inside the UML I use dhcp to get an address and bob's your uncle. Or
Jeff's your uncle. I'm not sure which.


Thanks Blaisorblade for pointing out that a fixed tuntap needn't be in
a bridge to bridge to the local machine.

I'm still not sure why, when you can forward from the UML to the host,
you can't reach other hosts on the host's network; in other words "why
do you need a bridge?". Certainly, my UMLs don't seem to be able to do
that.


Nic


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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