[201811] [interfaces-config.sh] Flush the loopback interface addresses (#4234)
* [interfaces-config.sh] Flush the loopback interface before configure it Without this, you may end up with more and more ip addresses on loopback interface after you change the loopback ip and do config reload Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
This commit is contained in:
parent
b3ce209b7f
commit
19c1ad36a5
@ -20,4 +20,6 @@ fi
|
|||||||
|
|
||||||
systemctl restart networking
|
systemctl restart networking
|
||||||
|
|
||||||
ifdown --force lo && ifup lo
|
ifdown --force lo
|
||||||
|
ip addr flush dev lo
|
||||||
|
ifup lo
|
||||||
|
Reference in New Issue
Block a user