aboutsummaryrefslogtreecommitdiffstats
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:09 +0200
commit1a4607f60668a489633a982f6a12b44e8df33868 (patch)
tree4c335e7d7c8fcae8649c6366302e6185a8349be7
parent1c17940c3425e698b59a6d8a2ceaa5212a9c0530 (diff)
downloadinitscripts-1a4607f60668a489633a982f6a12b44e8df33868.tar
initscripts-1a4607f60668a489633a982f6a12b44e8df33868.tar.gz
initscripts-1a4607f60668a489633a982f6a12b44e8df33868.tar.bz2
initscripts-1a4607f60668a489633a982f6a12b44e8df33868.tar.xz
initscripts-1a4607f60668a489633a982f6a12b44e8df33868.zip
ifup: set valid_lft and preferred_lft to forever for static ip
-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 88a4beba..0a46076b 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.