From: Amos Kong <kongjianjun@gmail.com>
To: kvm@vger.kernel.org
Cc: penberg@kernel.org, asias.hejun@gmail.com, sirouni@gmail.com
Subject: [PATCH 2/3] kvm tools: Add a script to setup tap device
Date: Thu, 14 Apr 2011 12:37:55 +0800 [thread overview]
Message-ID: <20110414043755.9279.35674.stgit@localhost6.localdomain6> (raw)
In-Reply-To: <20110414043745.9279.89159.stgit@localhost6.localdomain6>
# ./kvm-ifup-vbr0 $tap_name
Signed-off-by: Amos Kong <kongjianjun@gmail.com>
---
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
next prev parent reply other threads:[~2011-04-14 4:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-14 4:37 [PATCH 1/3] kvm tools: Add a script to setup private bridge Amos Kong
2011-04-14 4:37 ` Amos Kong [this message]
2011-04-14 4:38 ` [PATCH 3/3] kvm tools: Setup bridged network by a script Amos Kong
2011-04-15 10:19 ` [PATCH 3/3 v2] " Amos Kong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110414043755.9279.35674.stgit@localhost6.localdomain6 \
--to=kongjianjun@gmail.com \
--cc=asias.hejun@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=penberg@kernel.org \
--cc=sirouni@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox