mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 11:04:00 +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
@ -49,7 +49,11 @@ setup_common() {
|
|||||||
|
|
||||||
if [ "$BOOTPROTO" == "static" ]
|
if [ "$BOOTPROTO" == "static" ]
|
||||||
then
|
then
|
||||||
replace_in_file /etc/sysconfig/network GATEWAY $GW
|
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
|
else
|
||||||
sed -i /GATEWAY/d /etc/sysconfig/network
|
sed -i /GATEWAY/d /etc/sysconfig/network
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user