diff options
author | Blake Caldwell <blakec@ornl.gov> | 2016-05-30 12:58:09 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2016-05-30 12:58:09 +0200 |
commit | 1a4607f60668a489633a982f6a12b44e8df33868 (patch) | |
tree | 4c335e7d7c8fcae8649c6366302e6185a8349be7 /sysconfig | |
parent | 1c17940c3425e698b59a6d8a2ceaa5212a9c0530 (diff) | |
download | initscripts-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
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 3 |
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. |