Advertisement
zcutlip

Interfaces file for QEMU bridging

May 31st, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. auto lo
  2. iface lo inet loopback
  3.  
  4. auto eth0
  5. iface eth0 inet dhcp
  6.  
  7. #auto br0
  8. iface br0 inet dhcp
  9. pre-up tunctl -t tap0 -g tuntap
  10. pre-up tunctl -t tap1 -g tuntap
  11. pre-up ip link set tap0 up
  12. pre-up ip link set tap1 up
  13. bridge_ports eth0 tap0 tap1
  14. bridge_stp off
  15. bridge_maxwait 0
  16. bridge_fd 0
  17. post-down ip link set tap0 down
  18. post-down ip link set tap1 down
  19. post-down tunctl -d tap0
  20. post-down tunctl -d tap1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement