From 19c1ad36a52cddbf24096ceb8e16096a509cb100 Mon Sep 17 00:00:00 2001 From: zhenggen-xu Date: Mon, 9 Mar 2020 16:14:59 -0700 Subject: [PATCH] [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 --- files/image_config/interfaces/interfaces-config.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/image_config/interfaces/interfaces-config.sh b/files/image_config/interfaces/interfaces-config.sh index a625753e36..86e30786bf 100755 --- a/files/image_config/interfaces/interfaces-config.sh +++ b/files/image_config/interfaces/interfaces-config.sh @@ -20,4 +20,6 @@ fi systemctl restart networking -ifdown --force lo && ifup lo +ifdown --force lo +ip addr flush dev lo +ifup lo