diff options
author | iap10@firebug.cl.cam.ac.uk <iap10@firebug.cl.cam.ac.uk> | 2005-08-15 21:47:44 +0000 |
---|---|---|
committer | iap10@firebug.cl.cam.ac.uk <iap10@firebug.cl.cam.ac.uk> | 2005-08-15 21:47:44 +0000 |
commit | 1aa3b010b9a90a19629566478ddc3a877af2e4c4 (patch) | |
tree | f300cfdd054f070eb82b2fce316a090760b8eaa4 | |
parent | a9499e2a7ffc9dd26b12b4d33d96e13144f21fd9 (diff) | |
download | xen-1aa3b010b9a90a19629566478ddc3a877af2e4c4.tar.gz xen-1aa3b010b9a90a19629566478ddc3a877af2e4c4.tar.bz2 xen-1aa3b010b9a90a19629566478ddc3a877af2e4c4.zip |
Tweaks to network-bridge script.
Signed-off-by: ian@xensource.com
-rwxr-xr-x | tools/examples/network-bridge | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/examples/network-bridge b/tools/examples/network-bridge index d9fc2d855f..24df59809a 100755 --- a/tools/examples/network-bridge +++ b/tools/examples/network-bridge @@ -188,12 +188,13 @@ op_start () { fi fi ip link set ${netdev} name p${netdev} - ip link set veth0 name eth0 + ip link set veth0 name ${netdev} ifconfig p${netdev} -arp down ifconfig p${netdev} hw ether fe:ff:ff:ff:ff:ff ifconfig ${netdev} hw ether ${mac} add_to_bridge ${bridge} vif0.0 add_to_bridge ${bridge} p${netdev} + ip link set ${bridge} up ip link set vif0.0 up ip link set p${netdev} up if ! ifup ${netdev} ; then |