Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IMAGE=/home/northpole/openwrt/trunk/bin/x86/openwrt-x86-generic-combined-jffs2-128k.img
- sudo killall -q qemu
- sudo killall -q wirefilter
- sudo killall -q vde_switch
- vde_switch -d --hub --sock num1.ctl -f colourful.rc
- vde_switch -d --hub --sock num2.ctl -f colourful.rc
- cp ${IMAGE} num1.image
- cp ${IMAGE} num2.image
- qemu \
- -no-acpi -m 32M \
- -net vde,sock=num1.ctl,port=1 -net nic,macaddr=fe:fe:00:00:01:01 \
- -net nic -net tap,ifname=tapwrt1,script=no \
- num1.image&
- qemu \
- -no-acpi -m 32M \
- -net vde,sock=num2.ctl,port=2 -net nic,macaddr=fe:fe:00:00:02:01 \
- -net nic -net tap,ifname=tapwrt2,script=no \
- num2.image&
- sudo ifconfig tapwrt1 inet 192.168.2.1 up
- sudo ifconfig tapwrt2 inet 192.168.3.1 up
- wirefilter --daemon -v num1.ctl:num2.ctl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement