From 0036098e46e16c9ae5b795b108a5b9566c02906b Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Fri, 4 Aug 2017 17:06:18 -0700 Subject: Add the scipts to build NFVbench VM Change-Id: I9632333777260468d6f07cf0149c789626f20145 Signed-off-by: Yichen Wang --- nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf (limited to 'nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf') 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}} -- cgit 1.2.3-korg