akaros/scripts/RUNTAP
<<
>>
Prefs
   1brctl addbr br0
   2tunctl -u rminnich -t tap0
   3ifconfig tap0 0.0.0.0 up
   4brctl addif br0 tap0
   5#    need to rebuild tap0 and br0 each time, ifconfig tap0 up, or give
   6#it an /etc/init (and config_tap0("null")) init.d br0, dnsmasq, iptables
   7#(currently in default RL) iptables is set to masq to either eth0 or
   8#wlan0. if you ever add wlan0 to br0, this probably needs changing echo
   9#1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/ip_dynaddr
  10
  11sudo qemu-system-x86_64 -s -cpu phenom -smp 8 -m 6024 -nographic  -net nic,model=rtl8139 -netdev tap,id=mynet0 mnt/hdd268mb.img -kernel mnt/hdd/kernel $*
  12
  13# -S -s -gdb tcp::1234
  14