18971c
From 0259f1c246d3c5b7cf9cb234571e025e529e8716 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Mon, 7 Aug 2017 15:09:13 +0200
18971c
Subject: [PATCH] network/ifup: don't arping for point-to-point connections
18971c
18971c
https://bugzilla.redhat.com/show_bug.cgi?id=1477339
18971c
18971c
Cherry-picked from: 5abd692fe46215c38f564b59db50193daf745af5
18971c
Resolves: #1477339
18971c
---
18971c
 modules.d/40network/ifup.sh | 8 +++++---
18971c
 1 file changed, 5 insertions(+), 3 deletions(-)
18971c
18971c
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
18971c
index b3219fc1..9ed48155 100755
18971c
--- a/modules.d/40network/ifup.sh
18971c
+++ b/modules.d/40network/ifup.sh
18971c
@@ -118,9 +118,11 @@ do_static() {
18971c
         ip addr add $ip/$mask ${srv:+peer $srv} dev $netif
18971c
         wait_for_ipv6_dad $netif
18971c
     else
18971c
-        if ! arping -f -q -D -c 2 -I $netif $ip; then
18971c
-            warn "Duplicate address detected for $ip for interface $netif."
18971c
-            return 1
18971c
+        if [ -z "$srv" ]; then
18971c
+            if ! arping -f -q -D -c 2 -I $netif $ip; then
18971c
+                warn "Duplicate address detected for $ip for interface $netif."
18971c
+                return 1
18971c
+            fi
18971c
         fi
18971c
         ip -4 addr flush dev $netif
18971c
         ip addr add $ip/$mask ${srv:+peer $srv} brd + dev $netif