[uml-user] Networking with UML

Im trying to setup a UML instance to act as a virtual machine on top of a
real host. What id like to do is be able to ssh to realhost:someport and
have it forwarded to the UML instance.
I tried to follow the howto with little luck. I was able to create a tap
device and setup a bridge but im not sure what to do with it, here are the
commands i executed where $REAL_IP, $BROADCAST and $GW_IP are the ip
addresses that the host server gets via dhcp on eth1.
/sbin/modprobe tun
/sbin/modprobe bridge
brctl addbr br0
/sbin/ifconfig eth1 0.0.0.0 promisc up
/sbin/ifconfig br0 $REAL_IP netmask 255.255.255.0 broadcast
$BROADCAST up
brctl stp br0 off
brctl setfd br0 1
brctl sethello br0 1
brctl addif br0 eth1
tunctl -u root
/sbin/ifconfig tap0 0.0.0.0 promisc up
brctl addif br0 tap0
route add default gw $GW_IP
What should i do after this point?
Thanks
Cheers
Kevin Conaway

Thread view

Im trying to setup a UML instance to act as a virtual machine on top of a
real host. What id like to do is be able to ssh to realhost:someport and
have it forwarded to the UML instance.
I tried to follow the howto with little luck. I was able to create a tap
device and setup a bridge but im not sure what to do with it, here are the
commands i executed where $REAL_IP, $BROADCAST and $GW_IP are the ip
addresses that the host server gets via dhcp on eth1.
/sbin/modprobe tun
/sbin/modprobe bridge
brctl addbr br0
/sbin/ifconfig eth1 0.0.0.0 promisc up
/sbin/ifconfig br0 $REAL_IP netmask 255.255.255.0 broadcast
$BROADCAST up
brctl stp br0 off
brctl setfd br0 1
brctl sethello br0 1
brctl addif br0 eth1
tunctl -u root
/sbin/ifconfig tap0 0.0.0.0 promisc up
brctl addif br0 tap0
route add default gw $GW_IP
What should i do after this point?
Thanks
Cheers
Kevin Conaway