mirror of
https://github.com/apache/cloudstack
synced 2026-08-28 00:29:39 +00:00
Ifdown may not bring interface down if ifup not run
Use ifconfig to bring it down
This commit is contained in:
parent
45a927b3d5
commit
a935e52b62
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
ifdown eth2
|
||||
ifconfig eth2 down
|
||||
service dnsmasq stop
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
ifdown eth2 && \
|
||||
ifconfig eth2 down && \
|
||||
ifconfig eth2 hw ether [ETH2MAC] && \
|
||||
ifup eth2 && \
|
||||
ip route add default via [GATEWAY] dev eth2 && \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user