From bf3bb2e3d96c321d3ef8f0ed32b0600cf0736408 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Thu, 18 May 2017 09:39:59 -0400 Subject: Assign public IP to vLB VM Change-Id: I30d2a21b24e2c5b3985307444408c30319886f9d Signed-off-by: Marco Platania --- vnfs/vLB/scripts/v_dns_install.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vnfs/vLB') diff --git a/vnfs/vLB/scripts/v_dns_install.sh b/vnfs/vLB/scripts/v_dns_install.sh index 5e1d55bf..78c992f8 100644 --- a/vnfs/vLB/scripts/v_dns_install.sh +++ b/vnfs/vLB/scripts/v_dns_install.sh @@ -17,7 +17,14 @@ then echo " address $VDNS_PRIVATE_IP_O" >> /etc/network/interfaces echo " netmask 255.255.255.0" >> /etc/network/interfaces + VDNS_PRIVATE_IP_1=$(cat /opt/config/oam_private_ipaddr.txt) + echo "auto eth2" >> /etc/network/interfaces + echo "iface eth2 inet static" >> /etc/network/interfaces + echo " address $VDNS_PRIVATE_IP_1" >> /etc/network/interfaces + echo " netmask 255.255.255.0" >> /etc/network/interfaces + ifup eth1 + ifup eth2 fi # Download required dependencies -- cgit 1.2.3-korg