# ./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