Add the scipts to build NFVbench VM
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / static / vpp / vm.conf
1 set int state {{INTF_1}} up
2 set int state {{INTF_2}} up
3 set interface ip address {{INTF_1}} {{VNF_GATEWAY1_CIDR}}
4 set interface ip address {{INTF_2}} {{VNF_GATEWAY2_CIDR}}
5 set ip arp {{INTF_1}} {{TG_GATEWAY1_IP}} {{TG_MAC1}} static
6 set ip arp {{INTF_2}} {{TG_GATEWAY2_IP}} {{TG_MAC2}} static
7 ip route add {{TG_NET1}} via {{TG_GATEWAY1_IP}}
8 ip route add {{TG_NET2}} via {{TG_GATEWAY2_IP}}