aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBlake Caldwell <blakec@ornl.gov>2016-05-30 12:58:09 +0200
committerLukas Nykryn <lnykryn@redhat.com>2016-05-30 12:58:33 +0200
commiteacf0e68acd1f0da0ff1c789da411bb815e1c032 (patch)
treefaa8575caaeb69133882ce8c206dbc77145e2f36 /sysconfig/network-scripts
parentc7d25db27dbab853c4ccda8c984d84a7ceaf881d (diff)
downloadinitscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar
initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar.gz
initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar.bz2
initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.tar.xz
initscripts-eacf0e68acd1f0da0ff1c789da411bb815e1c032.zip
ifup: set valid_lft and preferred_lft to forever for static ip
Cherry-picked from: 1a4607f Resolves: #1240775
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 3638a6ee..d1828820 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -274,6 +274,9 @@ else
( sleep 2;
/sbin/arping -q -U -c 1 -I ${REALDEVICE} ${ipaddr[$idx]} ) > /dev/null 2>&1 < /dev/null &
fi
+
+ # set lifetime of address to forever
+ ip addr change ${ipaddr[$idx]} dev ${REALDEVICE} valid_lft forever preferred_lft forever
done
# Set a default route.