pastebin - collaborative debugging tool
rovema.kpaste.net RSS


qemu macvtap demo #002
Posted by Anonymous on Tue 20th Dec 2022 15:12
raw | new post

  1. #
  2. # qemu macvtap config
  3. #
  4.  
  5. # root@host:
  6. ip link add link enp2s0 name macvtap0 address 52:54:00:b8:9c:58 type macvtap mode bridge
  7. ip link set macvtap0 up
  8. chmod go=u /dev/tap3
  9.  
  10. # user@host:
  11. qemu-system-x86_64 -smp 4 -m 8192 debian1.img -net nic,model=virtio,macaddr=$(cat /sys/class/net/macvtap0/address) -net tap,fd=80 80<>/dev/tap$(cat /sys/class/net/macvtap0/ifindex)

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at