[PATCH 2/3] kvm tools: Add a script to setup tap device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# ./kvm-ifup-vbr0 $tap_name

Signed-off-by: Amos Kong <kongjianjun@xxxxxxxxx>
---
 tools/kvm/util/kvm-ifup-vbr0 |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100755 tools/kvm/util/kvm-ifup-vbr0

diff --git a/tools/kvm/util/kvm-ifup-vbr0 b/tools/kvm/util/kvm-ifup-vbr0
new file mode 100755
index 0000000..a91c37f
--- /dev/null
+++ b/tools/kvm/util/kvm-ifup-vbr0
@@ -0,0 +1,6 @@
+#!/bin/sh
+switch=vbr0
+/sbin/ifconfig $1 0.0.0.0 up
+/usr/sbin/brctl addif ${switch} $1
+/usr/sbin/brctl setfd ${switch} 0
+/usr/sbin/brctl stp ${switch} off

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux