diff --git a/systemvm/debian/opt/cloud/bin/setup/init.sh b/systemvm/debian/opt/cloud/bin/setup/init.sh index 8b78e5807da..4795acf9cc3 100644 --- a/systemvm/debian/opt/cloud/bin/setup/init.sh +++ b/systemvm/debian/opt/cloud/bin/setup/init.sh @@ -188,6 +188,7 @@ setup_interface_sshd() { setup_sshd $ETH1_IP "eth1" elif [ "$TYPE" == "vpcrouter" ]; then + init_interfaces "eth0" setup_interface "0" $ETH0_IP $ETH0_MASK $GW setup_sshd $ETH0_IP "eth0" diff --git a/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh b/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh index bfb06218825..7b224d9c73f 100755 --- a/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh +++ b/systemvm/debian/opt/cloud/bin/setup/vpcrouter.sh @@ -25,11 +25,6 @@ setup_vpcrouter() { grep -q $NAME /etc/hosts || echo "127.0.0.1 $NAME" >> /etc/hosts; fi - cat > /etc/network/interfaces << EOF -auto lo eth0 -iface lo inet loopback -EOF - echo $NAME > /etc/hostname echo 'AVAHI_DAEMON_DETECT_LOCAL=0' > /etc/default/avahi-daemon hostnamectl set-hostname $NAME