172.20.113.137 for your uml would work, as it is in the same lan as your
host, but you need to bridge your host's interface to the tap you have
Then if this worked, both your host and your uml would be able to access
to your adsl router, BUT I have never been able to bridge (brctl from
bridge-utils) a wlan interface to a tap.
Last time I tried, the wifi interface could not be put in promiscious mode
and it did not work.
There are 2 alternatives to get the internet in an UML:
1 There should be an old software called slirp that can emulate an ip
interface for your UML:
Each TCP HTTP socket comes into the user world of your host, the data is
extracted and put into emulated IP packets that penetrate into your UML
machine as an IP flow with syn, synack and all TCP stuff.
2 There is cloonix, the slirp software (used also in qemu and in virtual
box) has been rewriten and machines connect to the internet just like qemu
But cloonix supports UML machines.
> Can someone help me with setting up networking in UML?
> I am running Ubuntu 10.10 over linux 188.8.131.52
> I am compiling from source
> Source build using commands
> make defconfig ARCH=um
> make mrproper ARCH=um
> make ARCH=um
> the UML is started using
> ./linux ubda=Debian-Squeeze-x86-root_fs umid=myuml mem=128m
> with this i am able to navigate directories and create files/folders.
> UML begins to work
> *For networking*
> - Ignored:
> my host networking is at
> wlan0 Link encap:Ethernet HWaddr 00:16:44:a8:bf:39
> inet addr:172.20.113.136 Bcast:172.20.113.255
> So to set up networking i use the commands at host
> host : uml_mconsole myuml config eth0=tuntap,,,172.20.113.137
> in my UML window i see
> root@...):~# Choosing a random ethernet address for device eth0
> Netdevice 0 (5a:66:7b:a0:86:d9) :
> TUN/TAP backend - IP = 172.20.113.137
> *and it is stuck at this point......*
> my final aim is to be able to access internet using UML.
> Please let me know if you need any other information.
> Any help would be appreciated.
> Saket Chawla
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> User-mode-linux-user mailing list