Index: client/tests/kvm/scripts/qemu-ifup-ipv6 |
diff --git a/client/tests/kvm/scripts/qemu-ifup-ipv6 b/client/tests/kvm/scripts/qemu-ifup-ipv6 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d4b05929f291c46fafa7ec95b980d377679ddb67 |
--- /dev/null |
+++ b/client/tests/kvm/scripts/qemu-ifup-ipv6 |
@@ -0,0 +1,11 @@ |
+#!/bin/sh |
+ |
+# The following expression selects the first bridge listed by 'brctl show'. |
+# Modify it to suit your needs. |
+switch=$(/usr/sbin/brctl show | awk 'NR==2 { print $1 }') |
+ |
+/bin/echo 0 > /proc/sys/net/ipv6/conf/${switch}/disable_ipv6 |
+/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 |