aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-07-10 18:16:35 +0200
committerDee'Kej <deekej@linuxmail.org>2017-10-16 19:06:33 +0200
commita81b5e8ec984ca2a8ee7167eb87f6fc9db737843 (patch)
treef789f584928dcf8a3593d5f0a6fd29552c2a3763 /sysconfig/network-scripts/network-functions
parent07982db7f29ce2a9f56d5af90068dbc6a7e3f302 (diff)
downloadinitscripts-a81b5e8ec984ca2a8ee7167eb87f6fc9db737843.tar
initscripts-a81b5e8ec984ca2a8ee7167eb87f6fc9db737843.tar.gz
initscripts-a81b5e8ec984ca2a8ee7167eb87f6fc9db737843.tar.bz2
initscripts-a81b5e8ec984ca2a8ee7167eb87f6fc9db737843.tar.xz
initscripts-a81b5e8ec984ca2a8ee7167eb87f6fc9db737843.zip
ARPUPDATE introduced
The ARPUPDATE option has been introduced. It defaults to 'yes'. By setting the ARPUPDATE to 'no', administrator can disable updating neighbouring computers with ARP information about current NIC. This is especially needed when using LVS Load Balancing with Direct routing enabled.
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 1867c38a..7f5dfb0a 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -222,6 +222,7 @@ expand_config ()
netmask[$i]=$(eval echo '$'NETMASK$idx)
broadcast[$i]=$(eval echo '$'BROADCAST$idx)
arpcheck[$i]=$(eval echo '$'ARPCHECK$idx)
+ arpupdate[$i]=$(eval echo '$'ARPUPDATE$idx)
if [ "${prefix[$i]}x" != "x" ]; then
val=$(/bin/ipcalc --netmask "${ipaddr[$i]}/${prefix[$i]}")
@@ -248,6 +249,11 @@ expand_config ()
arpcheck[$i]=${arpcheck[$i],,*}
fi
+ if [ "${arpupdate[$i]}x" != "x" ]; then
+ arpupdate[$i]=${arpupdate[$i]##ARPUPDATE=}
+ arpupdate[$i]=${arpupdate[$i],,*}
+ fi
+
i=$((i+1))
done