mirror of https://github.com/apache/cloudstack.git
Use ifup/ifdown for redundant router
This commit is contained in:
parent
b63b3fcf05
commit
95cc2d6381
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
ifconfig eth2 down
|
||||
ifdown eth2
|
||||
service dnsmasq stop
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
ifconfig eth2 down && \
|
||||
ifdown eth2 && \
|
||||
ifconfig eth2 hw ether [ETH2MAC] && \
|
||||
ifconfig eth2 up && \
|
||||
ip route add 0/0 via [GATEWAY] && \
|
||||
ifup eth2 && \
|
||||
ip route add default via [GATEWAY] dev eth2 && \
|
||||
service dnsmasq restart
|
||||
|
|
|
|||
Loading…
Reference in New Issue