I'm trying to test out UML on my laptop, and I want to have uml on a different net than my host. I currently am using 192.168.1.25 on my host and i want to be using 192.168.0.xxx on my uml guests.
I have been playing around with bridges, and was doing this :
Code: Select all
ifconfig eth0 0.0.0.0 promisc up
brctl addbr br0
brctl addif br0 eth0
brctl setfd br0 0
brctl sethello br0 0
brctl stp br0 off
brctl addbr umlbr0
brctl setfd umlbr0 0
brctl sethello umlbr0 0
brctl stp umlbr0 0
tunctl -u root -t umlc0
ifconfig umlc0 0.0.0.0 promisc up
brctl addif umlbr0 umlc0
ifconfig umlbr0 192.168.0.1 netmask 255.255.255.0
Code: Select all
./uml ubda=rootfs ubdb=swapfs umid=$NAME mem=128M eth0=tuntap,umlc0,00:00:00:00:00:01 con=null con0=null,fd:1 con1=fd:0,fd:1
Code: Select all
ifconfig eth0 192.168.0.2 netmask 255.255.255.0
route add default gw 192.168.0.1
I have tried to enable ip_forward but no luck..
So I'm probably missing something obvious.. Just can't see it
Any suggestions?
Thanks!
Morten

