hi, Am Sonntag, 1. Januar 2006 20:59 schrieb David Cannings: [..] > If any of you use your distributions init scripts to create a bridge for > use with UML, please could you drop me an email and let me know how you did > it. I'd need to know which files need to be edited and a brief description > of how you'd accomplish > http://edeca.net/articles/bridging/create-bridge.html without a custom > script. Sample files would be great also.
the Debian way: bash# apt-get install bridge-utils uml-utilities # bridge-utils provides bridge tools like brctl # uml-utilities provides tun/tap tools like tunctl bash# adduser umluser0 uml-net bash# adduser umluser1 uml-net bash# adduser umluser2 uml-net # adduser umluserX to group uml-net ist needed so that the uml user has # access to /dev/net/tun And here my /etc/network/interfaces --------8<------------------------------------------------- auto br0 iface br0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 # interfaces to bind to bridge br0 # eth0 is the real network card of this machine # tapX are virtual network cards used in each uml as eth0 bridge_ports eth0 tap0 tap1 tap2 bridge_hello 1 bridge_fd 1 bridge_stp on # set up tapX interfaces pre-up /usr/sbin/tunctl -u umluser0 -t tap0 pre-up /usr/sbin/tunctl -u umluser1 -t tap1 pre-up /usr/sbin/tunctl -u umluser2 -t tap2 # end of tapX interfaces -------->8------------------------------------------------- # hint: dont't do this remote over the network unless you know what you do! bash# /etc/init.d/networking restart More is not needed with Debian. eMHa
pgp1B9Ud5ORGN.pgp
Description: PGP signature