Please cherry-pick following commit from MASTER for fixing CLOUDSTACK-4199.
Thanks! --Sheng commit 2a26823ec19524051dd3cc11a338b36e2cecf437 Author: Sheng Yang <sheng.y...@citrix.com> Date: Thu Aug 22 17:45:12 2013 -0700 CLOUDSTACK-4199: Only use ifdown/ifup for the un-configured eth2 Seems the behavior of ifdown/ifup changed in new version, that it would only enable the default IP of eth2, regardless we can configure additional ips for it. So we would always use ifconfig for interface control whenever possible(a.k.a eth2 already got ip addresses). When VR is booting up, ipassoc command hasn't been delivered, it's possible that eth2 doesn't have any ip address, then ifconfig would fail because it doesn't know how to find the ip for eth2. So in this only case, we would use ifdown/ifup to set the ip address according to /etc/network/interfaces. It can potentially racy againest ipassoc command, but biglock should prevent racy condition from happening.