summaryrefslogtreecommitdiffstats
path: root/vagrant-demo/scripts/host1-cfg.sh
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2016-02-10 07:53:21 -0500
committerDave Wallace <dwallacelf@gmail.com>2016-02-10 08:49:50 -0500
commit787aa52413444e4c985a73f89fdb7c34436a3849 (patch)
treeb965c888682d6a37ef36134cbd529bed6a9b2a27 /vagrant-demo/scripts/host1-cfg.sh
parent765e4716032083f5d702ed1f5a942d6d03f70e19 (diff)
Add scripts to reset / configure VDB application and VPP Honeycomb Agents
Change-Id: I01abc34d43795d183a3b9e6441883f530b456e6b Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'vagrant-demo/scripts/host1-cfg.sh')
-rwxr-xr-xvagrant-demo/scripts/host1-cfg.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/vagrant-demo/scripts/host1-cfg.sh b/vagrant-demo/scripts/host1-cfg.sh
new file mode 100755
index 000000000..14ee1022f
--- /dev/null
+++ b/vagrant-demo/scripts/host1-cfg.sh
@@ -0,0 +1,23 @@
+#! /bin/bash
+#
+# Script to configure host1.
+#
+# Copyright (c) 2016 Cisco Systems, Inc. and/or others. All rights reserved.
+
+if [ "$(id -un)" != "vagrant" ] || [ "$VM_NAME" != "(host1)" ]; then
+ echo "ERROR: Must be run inside the vpp1 vagrant VM!"
+ exit 1
+fi
+
+HOST1_IP_ADDR="172.16.10.11"
+HOST2_IP_ADDR="172.16.10.12"
+echo
+echo "Configuring eth1 with $HOST1_IP_ADDR"
+sudo ifconfig eth1 $HOST1_IP_ADDR/24 up
+echo
+echo "ifconfig eth1:"
+ifconfig eth1
+echo
+echo "Run the following command to ping host2:"
+echo " ping $HOST2_IP_ADDR"
+echo