diff options
author | Amos Kong <kongjianjun@gmail.com> | 2011-04-14 12:37:55 +0800 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 16:39:42 +0100 |
commit | b04d53ac4284ad96dd4f19b353031dbf89297383 (patch) | |
tree | 5911694add39a56372309128a9f2fc59acfc2736 /util | |
parent | 1c87dc459e97a17ea81c9e4f60b9c338a66bffd9 (diff) | |
download | kvmtool-b04d53ac4284ad96dd4f19b353031dbf89297383.tar.gz |
kvm tools: Add a script to setup tap device
# ./kvm-ifup-vbr0 $tap_name
Signed-off-by: Amos Kong <kongjianjun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/kvm-ifup-vbr0 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/kvm-ifup-vbr0 b/util/kvm-ifup-vbr0 new file mode 100755 index 00000000..a91c37f7 --- /dev/null +++ b/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 |