Added Put file to put scripts onto the mininet vm & also added sudo command to handle...
[integration/test.git] / test / csit / suites / lacp / Lacp_Feature_OF13 / h1-bond0.sh
index 92d3bd87c82471189e8508f4423f025a77023e30..281f7fa1246080e1394fdd37e8c2061261a33931 100755 (executable)
@@ -1,19 +1,18 @@
-modprobe bonding
-ip link add bond0 type bond
-ip link set bond0 address 02:01:02:03:04:08
+sudo modprobe bonding
+sudo ip link add bond0 type bond
+sudo ip link set bond0 address 02:01:02:03:04:08
 
-ip link set h1-eth0 down
-ip link set h1-eth0 address 00:00:00:00:00:11
-ip link set h1-eth0 master bond0
-ip link set h1-eth1 down
-ip link set h1-eth1 address 00:00:00:00:00:12
-ip link set h1-eth1 master bond0
+sudo ip link set h1-eth0 down
+sudo ip link set h1-eth0 address 00:00:00:00:00:11
+sudo ip link set h1-eth0 master bond0
+sudo ip link set h1-eth1 down
+sudo ip link set h1-eth1 address 00:00:00:00:00:12
+sudo ip link set h1-eth1 master bond0
 
-ip addr add 10.1.1.1/8 dev bond0
-ip addr del 10.0.0.1/8 dev h1-eth0
-ip link set bond0 up
+sudo ip addr add 10.1.1.1/8 dev bond0
+sudo ip addr del 10.0.0.1/8 dev h1-eth0
+sudo ip link set bond0 up
 
-ifconfig
-
-cat /proc/net/bonding/bond0
+sudo ifconfig
 
+sudo cat /proc/net/bonding/bond0