mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CS-15175: Fix public interfaces of redundant router
We need to use ifup/ifdown to bring up the interfaces, because ifconfig don't know the ip of the interface after we modify cloud-early-config to avoid first start up of public interface. Reviewed-by: Edison
This commit is contained in:
parent
985757ffe6
commit
96e7e3d1ca
@ -5,8 +5,8 @@ set -e
|
|||||||
ip link|grep BROADCAST|grep -v eth0|grep -v eth1|cut -d ":" -f 2 > /tmp/iflist
|
ip link|grep BROADCAST|grep -v eth0|grep -v eth1|cut -d ":" -f 2 > /tmp/iflist
|
||||||
while read i
|
while read i
|
||||||
do
|
do
|
||||||
ifconfig $i down
|
ifdown $i
|
||||||
ifconfig $i up
|
ifup $i
|
||||||
done < /tmp/iflist
|
done < /tmp/iflist
|
||||||
ip route add default via [GATEWAY] dev eth2 && \
|
ip route add default via [GATEWAY] dev eth2 && \
|
||||||
service dnsmasq restart
|
service dnsmasq restart
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user