summaryrefslogtreecommitdiffstats
path: root/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf
diff options
context:
space:
mode:
authorYichen Wang <yicwang@cisco.com>2017-08-04 17:06:18 -0700
committerYichen Wang <yicwang@cisco.com>2017-08-04 17:07:25 -0700
commit0036098e46e16c9ae5b795b108a5b9566c02906b (patch)
tree005463f0fa4f7a37dead0fa0c0f35c212a551ae7 /nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf
parentba423e2c7f322871507835341d8265074d747781 (diff)
Add the scipts to build NFVbench VM
Change-Id: I9632333777260468d6f07cf0149c789626f20145 Signed-off-by: Yichen Wang <yicwang@cisco.com>
Diffstat (limited to 'nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf')
-rw-r--r--nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf b/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf
new file mode 100644
index 0000000..f52a045
--- /dev/null
+++ b/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf
@@ -0,0 +1,8 @@
+set int state {{INTF_1}} up
+set int state {{INTF_2}} up
+set interface ip address {{INTF_1}} {{VNF_GATEWAY1_CIDR}}
+set interface ip address {{INTF_2}} {{VNF_GATEWAY2_CIDR}}
+set ip arp {{INTF_1}} {{TG_GATEWAY1_IP}} {{TG_MAC1}} static
+set ip arp {{INTF_2}} {{TG_GATEWAY2_IP}} {{TG_MAC2}} static
+ip route add {{TG_NET1}} via {{TG_GATEWAY1_IP}}
+ip route add {{TG_NET2}} via {{TG_GATEWAY2_IP}}