Step 1: Move vm scripts to the right place
[integration/test.git] / test / csit / suites / lacp / Lacp_Feature_OF13 / h2-bond0.sh
index cd40fedd9297bbd79c16a597f03ab983fc925404..5d8579ed02725da96d6ea286b3d18ea40627468a 100755 (executable)
@@ -1,19 +1,18 @@
-modprobe bonding
-ip link add bond0 type bond
-ip link set bond0 address 02:01:02:03:04:09
+sudo modprobe bonding
+sudo ip link add bond0 type bond
+sudo ip link set bond0 address 02:01:02:03:04:09
 
-ip link set h2-eth0 down
-ip link set h2-eth0 address 00:00:00:00:00:22
-ip link set h2-eth0 master bond0
-ip link set h2-eth1 down
-ip link set h2-eth1 address 00:00:00:00:00:23
-ip link set h2-eth1 master bond0
+sudo ip link set h2-eth0 down
+sudo ip link set h2-eth0 address 00:00:00:00:00:22
+sudo ip link set h2-eth0 master bond0
+sudo ip link set h2-eth1 down
+sudo ip link set h2-eth1 address 00:00:00:00:00:23
+sudo ip link set h2-eth1 master bond0
 
-ip addr add 10.1.1.2/8 dev bond0
-ip addr del 10.0.0.2/8 dev h2-eth0
-ip link set bond0 up
+sudo ip addr add 10.1.1.2/8 dev bond0
+sudo ip addr del 10.0.0.2/8 dev h2-eth0
+sudo ip link set bond0 up
 
-ifconfig
-
-cat /proc/net/bonding/bond0
+sudo ifconfig
 
+sudo cat /proc/net/bonding/bond0