Advertisement
peetaur

qemu dual network 2

Dec 13th, 2013
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. qemu-system-x86_64
  2. -enable-kvm
  3. -M q35
  4. -m 512
  5. -smp 2,sockets=1,cores=2,threads=1
  6. -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1
  7. -device ahci,bus=pcie.0,id=ahci
  8. -drive file=/dev/data/openstack-controller,id=disk,format=raw
  9. -device ide-hd,bus=ahci.0,drive=disk
  10. -drive file=/home/peter/archive/software/openSUSE/openSUSE-12.3-DVD-x86_64.iso,id=isocd
  11. -device ide-cd,bus=ahci.1,drive=isocd
  12. -net nic,macaddr=00:16:3e:4e:c5:20,model=virtio,name=nic1,vlan=0
  13. -net bridge,name=nic1,br=br1,vlan=0
  14. -net nic,macaddr=00:16:3e:4e:c5:23,model=virtio,name=nic2,vlan=1
  15. -net bridge,name=nic2,br=br0,vlan=1
  16. -boot menu=on
  17. -monitor stdio
  18. QEMU 1.5.0 monitor - type 'help' for more information
  19. (qemu) info network
  20. hub 1
  21. \ nic2: index=0,type=tap,helper=/usr/lib/qemu-bridge-helper,br=br0
  22. \ virtio-net-pci.1: index=0,type=nic,model=virtio-net-pci,macaddr=00:16:3e:4e:c5:23
  23. hub 0
  24. \ nic1: index=0,type=tap,helper=/usr/lib/qemu-bridge-helper,br=br1
  25. \ virtio-net-pci.0: index=0,type=nic,model=virtio-net-pci,macaddr=00:16:3e:4e:c5:20
  26.  
  27.  
  28.  
  29. # brctl show
  30. bridge name bridge id STP enabled interfaces
  31. br0 8000.902b34307a16 yes eth0
  32. tap0
  33. tap3
  34. br1 8000.fe1cc01ae2fd yes tap2
  35.  
  36.  
  37.  
  38. eth0 = lan interface
  39. tap0 = some other vm
  40. tap3 = this vm's eth1
  41. tap2 = this vm's eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement