TX packets:327 errors:0 dropped:0 overruns:0 carrier:1 RX packets:426 errors:32 dropped:32 overruns:0 frame:0 TX packets:82 errors:0 dropped:0 overruns:0 carrier:0 RX packets:106 errors:0 dropped:0 overruns:0 frame:0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 $ sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEįollowing is how various interfaces look like after finishing this setup.īridge name bridge id STP enabled interfacesīr0 Link encap:Ethernet HWaddr 6E:EA:39:83:8C:D4 # echo "1" > /proc/sys/net/ipv4/ip_forward Now add the tap1 interface to the bridge and bring it up.Įnable IP forwarding on the host machine and setup MASQUERADING: This br0 interface will work as the gateway for the virtual machines. Next configure the br0 interface with an ip address. Next I started the VDE Switch connected to the tap0 interface and make the control file world writeable:Īll interfaces which are connected to network segments to be bridged are to be put into promiscuous mode.Īdd the tap0 interface to the bridge and start the DNSMASQ server to listen on br0 interface. Then I created couple of persistent tap interfaces owned by an ordinary user: Next I wanted to make the “tun” device writeable by the users, so I out myself into the “vboxusers” group and gave the group write permission on the device. I need to load the tun/tap module and the kqemu module for QEMU $ sudo apt-get install uml-utilities bridge-utils
0 Comments
Leave a Reply. |