33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 59e30a344df4b661f30c0a5c629dbd13e9d88e8f Mon Sep 17 00:00:00 2001
|
|
From: Teresa Ho <teresa.ho@windriver.com>
|
|
Date: Mon, 17 Dec 2018 17:47:18 -0500
|
|
Subject: [PATCH 1/1] WRS: Patch13: ifup-alias-scope.patch
|
|
|
|
---
|
|
sysconfig/network-scripts/ifup-aliases | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
|
|
index 52d43ea..9086763 100755
|
|
--- a/sysconfig/network-scripts/ifup-aliases
|
|
+++ b/sysconfig/network-scripts/ifup-aliases
|
|
@@ -277,8 +277,14 @@ function new_interface ()
|
|
fi
|
|
fi
|
|
|
|
+ if [ "${parent_device}" = "lo" ]; then
|
|
+ SCOPE="scope host"
|
|
+ else
|
|
+ SCOPE=${SCOPE:-}
|
|
+ fi
|
|
+
|
|
/sbin/ip addr add ${IPADDR}/${PREFIX} brd ${BROADCAST} \
|
|
- dev ${parent_device} label ${DEVICE}
|
|
+ dev ${parent_device} ${SCOPE} label ${DEVICE}
|
|
|
|
# update ARP cache of neighboring computers:
|
|
if ! is_false "${ARPUPDATE}" && [ "${REALDEVICE}" != "lo" ]; then
|
|
--
|
|
1.8.3.1
|
|
|