mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
if eth1 and eth2 in CP/SS VM are in same network, set default gateway on eth2,
This commit is contained in:
parent
51dd7d908f
commit
7882d2ad59
@ -50,6 +50,10 @@ setup_common() {
|
||||
if [ "$BOOTPROTO" == "static" ]
|
||||
then
|
||||
replace_in_file /etc/sysconfig/network GATEWAY $GW
|
||||
if [ "$ETH2_IP" != "0.0.0.0" ]
|
||||
then
|
||||
replace_in_file /etc/sysconfig/network GATEWAYDEV "eth2"
|
||||
fi
|
||||
else
|
||||
sed -i /GATEWAY/d /etc/sysconfig/network
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user